ms-vite-plugin 0.8.3 → 0.8.5

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.
File without changes
File without changes
package/dist/build.js CHANGED
@@ -37,12 +37,13 @@ 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 archiver_1 = __importDefault(require("archiver"));
40
41
  const child_process_1 = require("child_process");
41
42
  const fsExtra = __importStar(require("fs-extra"));
43
+ const os = __importStar(require("os"));
42
44
  const path = __importStar(require("path"));
43
45
  const vite_1 = require("vite");
44
46
  const vite_plugin_bundle_obfuscator_1 = __importDefault(require("vite-plugin-bundle-obfuscator"));
45
- const archiver_1 = __importDefault(require("archiver"));
46
47
  async function zipDirectory(source, out) {
47
48
  const archive = (0, archiver_1.default)("zip", { zlib: { level: 9 } });
48
49
  const stream = fsExtra.createWriteStream(out);
@@ -89,6 +90,14 @@ async function findEntryFiles(src, baseDir) {
89
90
  */
90
91
  function detectPython314() {
91
92
  const candidates = [
93
+ {
94
+ cmd: path.join(os.homedir(), ".KuaiJSDevloper", "python", "python.exe"),
95
+ args: ["--version"],
96
+ },
97
+ {
98
+ cmd: path.join(os.homedir(), ".KuaiJSDevloper", "python", "python"),
99
+ args: ["--version"],
100
+ },
92
101
  { cmd: "python", args: ["--version"] },
93
102
  { cmd: "python3", args: ["--version"] },
94
103
  { cmd: "python3.14", args: ["--version"] },
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
- {
2
- "name": "ms-vite-plugin",
3
- "version": "0.8.3",
4
- "type": "commonjs",
5
- "license": "MIT",
6
- "publishConfig": {
7
- "access": "public"
8
- },
9
- "files": [
10
- "dist",
11
- "bin"
12
- ],
13
- "bin": {
14
- "ms-cli": "dist/cli.js",
15
- "ms": "dist/cli.js"
16
- },
17
- "scripts": {
18
- "build": "tsc",
19
- "prepublishOnly": "npm run build"
20
- },
21
- "dependencies": {
22
- "commander": "^14.0.2",
23
- "fs-extra": "^11.3.3",
24
- "vite": "^7.3.0",
25
- "vite-plugin-bundle-obfuscator": "^1.10.0",
26
- "archiver": "^7.0.1"
27
- },
28
- "devDependencies": {
29
- "@types/fs-extra": "^11.0.4",
30
- "@types/node": "^25.0.3",
31
- "@types/archiver": "^7.0.0",
32
- "typescript": "~5.9.3"
33
- }
1
+ {
2
+ "name": "ms-vite-plugin",
3
+ "version": "0.8.5",
4
+ "type": "commonjs",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "bin"
12
+ ],
13
+ "bin": {
14
+ "ms-cli": "dist/cli.js",
15
+ "ms": "dist/cli.js"
16
+ },
17
+ "scripts": {
18
+ "build": "tsc",
19
+ "prepublishOnly": "npm run build"
20
+ },
21
+ "dependencies": {
22
+ "commander": "^14.0.3",
23
+ "fs-extra": "^11.3.3",
24
+ "vite": "^7.3.1",
25
+ "vite-plugin-bundle-obfuscator": "^1.10.0",
26
+ "archiver": "^7.0.1"
27
+ },
28
+ "devDependencies": {
29
+ "@types/fs-extra": "^11.0.4",
30
+ "@types/node": "^25.2.3",
31
+ "@types/archiver": "^7.0.0",
32
+ "typescript": "~5.9.3"
33
+ }
34
34
  }