ms-vite-plugin 1.0.1 → 1.0.2

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 +5 -5
package/dist/build.js CHANGED
@@ -42,7 +42,6 @@ const child_process_1 = require("child_process");
42
42
  const fsExtra = __importStar(require("fs-extra"));
43
43
  const os = __importStar(require("os"));
44
44
  const path = __importStar(require("path"));
45
- const vite_1 = require("vite");
46
45
  const vite_plugin_bundle_obfuscator_1 = __importDefault(require("vite-plugin-bundle-obfuscator"));
47
46
  async function zipDirectory(source, out) {
48
47
  const archive = (0, archiver_1.default)("zip", { zlib: { level: 9 } });
@@ -167,6 +166,7 @@ const buildAll = async (isDev = true, workspacePath) => {
167
166
  const isPy = await fsExtra.pathExists(path.join(workspacePath, "scripts", "main.py"));
168
167
  if (isJs) {
169
168
  console.log("🚀 开始构建JavaScript项目...");
169
+ const { build } = await import("vite");
170
170
  const obfuscatorConfigPath = path.join(workspacePath, "obfuscator.json");
171
171
  if (!(await fsExtra.pathExists(obfuscatorConfigPath))) {
172
172
  console.error("❌ 错误: 当前目录不是有效的 快点JS 项目");
@@ -180,7 +180,7 @@ const buildAll = async (isDev = true, workspacePath) => {
180
180
  const entryFiles = await findEntryFiles(baseDir, baseDir);
181
181
  await fsExtra.remove(outputDir);
182
182
  for (const entry of entryFiles) {
183
- await (0, vite_1.build)({
183
+ await build({
184
184
  root: workspacePath,
185
185
  build: {
186
186
  lib: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "commander": "^14.0.3",
23
23
  "fs-extra": "^11.3.4",
24
- "vite": "^7.3.1",
25
- "vite-plugin-bundle-obfuscator": "^1.10.0",
24
+ "vite": "^8.0.9",
25
+ "vite-plugin-bundle-obfuscator": "^1.11.0",
26
26
  "archiver": "^7.0.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/fs-extra": "^11.0.4",
30
- "@types/node": "^25.5.0",
30
+ "@types/node": "^25.6.0",
31
31
  "@types/archiver": "^7.0.0",
32
- "typescript": "~5.9.3"
32
+ "typescript": "~6.0.3"
33
33
  }
34
34
  }