jizy-packer 2.1.13 → 2.1.15

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/README.md CHANGED
@@ -9,6 +9,7 @@ A CLI tool and Node.js library to generate optimized builds for your projects. I
9
9
  - Configurable via JSON and programmatic API
10
10
  - Utilities for cleaning build folders and managing configs
11
11
  - Rollup-based build process with plugin support
12
+ - When the name of the build is "example", moves the content of the build/example folder to the root example folder
12
13
 
13
14
  ## Create a jPacker
14
15
 
package/lib/utils.js CHANGED
@@ -109,10 +109,10 @@ export function moveFolderFiles(src, dest) {
109
109
  } else {
110
110
  fs.copyFileSync(srcPath, destPath);
111
111
  }
112
- fs.unlinkSync(srcPath);
112
+ //fs.unlinkSync(srcPath);
113
113
  });
114
114
 
115
- fs.rmdirSync(src);
115
+ fs.rmdirSync(src, { recursive: true });
116
116
  };
117
117
 
118
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jizy-packer",
3
- "version": "2.1.13",
3
+ "version": "2.1.15",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib/*.js"