befly-vscode 1.6.0 → 1.8.0
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/configs/tsdown.config.js +2 -4
- package/package.json +1 -2
- package/scripts/release.mjs +13 -3
package/configs/tsdown.config.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as path from "node:path";
|
|
2
2
|
|
|
3
|
-
import { defineConfig } from "tsdown";
|
|
4
|
-
|
|
5
3
|
const pkgDir = process.cwd();
|
|
6
4
|
|
|
7
|
-
export default
|
|
5
|
+
export default {
|
|
8
6
|
platform: "node",
|
|
9
7
|
target: "node22",
|
|
10
8
|
format: "esm",
|
|
@@ -20,4 +18,4 @@ export default defineConfig(() => ({
|
|
|
20
18
|
extension: path.join(pkgDir, "extension", "extension.js")
|
|
21
19
|
},
|
|
22
20
|
outDir: path.join(pkgDir, "dist")
|
|
23
|
-
}
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-vscode",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Befly VSCode - VSCode 扩展构建工具集",
|
|
6
6
|
"bin": {
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
28
28
|
"@vscode/vsce": "^3.9.2",
|
|
29
29
|
"javascript-obfuscator": "^5.4.3",
|
|
30
|
-
"tsdown": "^0.22.2",
|
|
31
30
|
"vite-bundle-analyzer": "^1.3.8"
|
|
32
31
|
},
|
|
33
32
|
"engines": {
|
package/scripts/release.mjs
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/* eslint-disable no-console */
|
|
3
2
|
import { spawn } from "node:child_process";
|
|
3
|
+
/* eslint-disable no-console */
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
import { dirname, resolve } from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
|
|
8
|
+
const dirname2 = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const require = createRequire(import.meta.url);
|
|
10
|
+
|
|
11
|
+
const obfuscatorBin = resolve(require.resolve("javascript-obfuscator/package.json"), "../bin/javascript-obfuscator");
|
|
12
|
+
const obfuscatorConfig = resolve(dirname2, "../configs/obfuscator.config.json");
|
|
13
|
+
const vsceBin = resolve(require.resolve("@vscode/vsce/package.json"), "../vsce");
|
|
4
14
|
|
|
5
15
|
const type = process.argv[2];
|
|
6
16
|
const allowed = ["major", "minor", "patch"];
|
|
@@ -27,6 +37,6 @@ function run(cmd, args) {
|
|
|
27
37
|
});
|
|
28
38
|
}
|
|
29
39
|
|
|
30
|
-
await run("
|
|
40
|
+
await run("node", [obfuscatorBin, "./dist/extension.mjs", "--output", "./dist/extension.mjs", "--config", obfuscatorConfig]);
|
|
31
41
|
|
|
32
|
-
await run("
|
|
42
|
+
await run("node", [vsceBin, "publish", type, "--no-dependencies", "--no-git-tag-version", "--allow-missing-repository", "--allow-unused-files-pattern", "--skip-license", "--skip-duplicate", "--baseImagesUrl", ".", "--baseContentUrl", "."]);
|