@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Muddy.js +6 -0
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "gesslar",
6
6
  "url": "https://gesslar.dev"
7
7
  },
8
- "version": "0.1.0",
8
+ "version": "0.2.0",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/gesslar/muddy.git"
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`)