jizy-packer 2.1.38 → 2.1.40

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/lib/Rollup.js +7 -1
  2. package/package.json +1 -1
package/lib/Rollup.js CHANGED
@@ -191,7 +191,13 @@ function onComplete() {
191
191
  const src = path.join(jPackConfig.get('basePath'), 'build/example');
192
192
  const dest = path.join(jPackConfig.get('basePath'), 'example');
193
193
  moveFolderFiles(src, dest);
194
- mirrorExampleFiles(dest, jPackConfig.get('alias'), jPackConfig.get('name'));
194
+
195
+ const replacements = {
196
+ '%MODULE_ALIAS%': jPackConfig.get('alias'),
197
+ '%MODULE_NAME%': jPackConfig.get('name'),
198
+ '%VERSION%': jPackConfig.get('version'),
199
+ };
200
+ mirrorExampleFiles(dest, replacements);
195
201
  }
196
202
 
197
203
  const onComplete = jPackConfig.get('onComplete');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jizy-packer",
3
- "version": "2.1.38",
3
+ "version": "2.1.40",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "_example",