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.
- package/lib/Rollup.js +7 -1
- 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
|
-
|
|
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');
|