@wenyan-md/cli 2.0.2 → 2.0.3
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/dist/cli.js +1 -2
- package/package.json +4 -1
package/dist/cli.js
CHANGED
|
@@ -127,7 +127,6 @@ async function runCommandWrapper(action) {
|
|
|
127
127
|
}
|
|
128
128
|
export const program = createProgram();
|
|
129
129
|
// 仅在作为主模块运行时执行 parse,防止测试文件 import 时意外触发
|
|
130
|
-
import
|
|
131
|
-
if (import.meta.url === url.pathToFileURL(process.argv[1]).href) {
|
|
130
|
+
if (import.meta.main) {
|
|
132
131
|
program.parse(process.argv);
|
|
133
132
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wenyan-md/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "A CLI tool for Wenyan markdown rendering & publishing",
|
|
5
5
|
"author": "Lei <caol64@gmail.com> (https://github.com/caol64)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
"typescript": "^5.9.2",
|
|
51
51
|
"typescript-eslint": "^8.58.0"
|
|
52
52
|
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"registry": "https://registry.npmjs.org/"
|
|
55
|
+
},
|
|
53
56
|
"scripts": {
|
|
54
57
|
"build": "tsc",
|
|
55
58
|
"upgrade:core": "pnpm update @wenyan-md/core",
|