@gesslar/muddy 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Muddy.js +6 -0
package/package.json
CHANGED
package/src/Muddy.js
CHANGED
|
@@ -512,6 +512,12 @@ export default class Muddy {
|
|
|
512
512
|
|
|
513
513
|
xmlFragments.forEach(e => root.import(e))
|
|
514
514
|
const output = root.end({prettyPrint: true})
|
|
515
|
+
.replaceAll(/(@PKGNAME@|__PKGNAME__)/g, mfile.package)
|
|
516
|
+
.replaceAll(/(@VERSION@|__VERSION__)/g, mfile.version)
|
|
517
|
+
|
|
518
|
+
glog.info(`Substituted all instances of '(@PKGNAME@|__PKGNAME__)' with '${mfile.package}'`)
|
|
519
|
+
glog.info(`Substituted all instances of '(@VERSION@|__VERSION__)' with '${mfile.version}'`)
|
|
520
|
+
|
|
515
521
|
const outputFile = workDirectory.getFile(`${mfile.package}.xml`)
|
|
516
522
|
|
|
517
523
|
glog.info(`XML created successfully, writing it to disk`)
|