Fixed pomRaw reference

This commit is contained in:
Jonas Bovin 2022-11-23 12:56:03 +01:00
parent cc9cbe651c
commit c8f9315e0c
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View file

@ -13692,9 +13692,9 @@ class se_Helper {
meta['mavenGroupId'] = groupId.trim(); meta['mavenGroupId'] = groupId.trim();
meta['mavenArtifactId'] = artifactId.trim(); meta['mavenArtifactId'] = artifactId.trim();
console.log(JSON.stringify(meta)); console.log(JSON.stringify(meta));
ret.push(pomEntity['pomRaw'].replace('/pom.xml', '/meta.json').substring(1)); ret.push(pomEntity['raw'].replace('/pom.xml', '/meta.json').substring(1));
Object(external_fs_.writeFileSync)(root + Object(external_fs_.writeFileSync)(root +
pomEntity['pomRaw'].replace('/pom.xml', '/meta.json').substring(1), JSON.stringify(meta)); pomEntity['raw'].replace('/pom.xml', '/meta.json').substring(1), JSON.stringify(meta));
} }
} }
return ret; return ret;

View file

@ -111,11 +111,11 @@ export class Helper {
meta['mavenArtifactId'] = artifactId.trim() meta['mavenArtifactId'] = artifactId.trim()
console.log(JSON.stringify(meta)) console.log(JSON.stringify(meta))
ret.push( ret.push(
pomEntity['pomRaw'].replace('/pom.xml', '/meta.json').substring(1) pomEntity['raw'].replace('/pom.xml', '/meta.json').substring(1)
) )
fs.writeFileSync( fs.writeFileSync(
root + root +
pomEntity['pomRaw'].replace('/pom.xml', '/meta.json').substring(1), pomEntity['raw'].replace('/pom.xml', '/meta.json').substring(1),
JSON.stringify(meta) JSON.stringify(meta)
) )
} }