ms-vite-plugin 0.0.18 → 0.0.20

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/dist/build.js +2 -2
  2. package/package.json +10 -10
package/dist/build.js CHANGED
@@ -37,7 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.buildAll = void 0;
40
- const _7zip_min_1 = require("7zip-min");
40
+ const zip_a_folder_1 = require("zip-a-folder");
41
41
  const fsExtra = __importStar(require("fs-extra"));
42
42
  const path = __importStar(require("path"));
43
43
  const vite_1 = require("vite");
@@ -118,7 +118,7 @@ const buildAll = async (isDev = true, workspacePath) => {
118
118
  await fsExtra.emptyDir(distPath);
119
119
  const zipPath = path.join(distPath, "ms.zip");
120
120
  const msbundlePath = path.join(distPath, "ms.msbundle");
121
- await (0, _7zip_min_1.pack)(outPath + "/*", zipPath);
121
+ await (0, zip_a_folder_1.zip)(outPath, zipPath);
122
122
  await fsExtra.rename(zipPath, msbundlePath);
123
123
  await fsExtra.remove(outPath);
124
124
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -19,15 +19,15 @@
19
19
  "prepublishOnly": "npm run build"
20
20
  },
21
21
  "dependencies": {
22
- "7zip-min": "^2.1.0",
23
- "@types/fs-extra": "^11.0.4",
24
- "commander": "^14.0.0",
25
- "fs-extra": "^11.3.1",
26
- "vite": "^7.1.4",
27
- "vite-plugin-bundle-obfuscator": "^1.8.0"
22
+ "commander": "^14.0.1",
23
+ "fs-extra": "^11.3.2",
24
+ "vite": "^7.1.9",
25
+ "vite-plugin-bundle-obfuscator": "^1.8.0",
26
+ "zip-a-folder": "^3.1.9"
28
27
  },
29
28
  "devDependencies": {
30
- "@types/node": "^24.3.1",
31
- "typescript": "~5.9.2"
29
+ "@types/fs-extra": "^11.0.4",
30
+ "@types/node": "^24.7.0",
31
+ "typescript": "~5.9.3"
32
32
  }
33
- }
33
+ }