project-translator-cli 0.20.1 → 0.21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-translator-cli",
3
- "version": "0.20.1",
3
+ "version": "0.21.3",
4
4
  "description": "Project Translator CLI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,11 +19,11 @@
19
19
  "scripts": {
20
20
  "build": "npm run compile-tsc && node ./esbuild.cli.config.js --production",
21
21
  "compile": "npm run compile-tsc && node ./esbuild.cli.config.js",
22
- "compile-tsc": "tsc -p ./tsconfig.json",
23
- "watch-tsc": "tsc -watch -p ./tsconfig.json",
22
+ "compile-tsc": "node ../../node_modules/@typescript/native/bin/tsc -p ./tsconfig.json",
23
+ "watch-tsc": "node ../../node_modules/@typescript/native/bin/tsc -watch -p ./tsconfig.json",
24
24
  "watch": "node ./esbuild.cli.config.js --watch",
25
25
  "lint": "eslint src --ext ts",
26
- "test": "npm run compile-tsc && node ./out/test/simpleRunner.js",
26
+ "test": "npm run compile-tsc && node ./out/test/simpleRunner.js && node --test scripts/npm-publish-args.test.mjs",
27
27
  "pack:npm": "npm run build && npm pack",
28
28
  "publish:npm": "node scripts/npm-publish.mjs"
29
29
  },
File without changes
File without changes
@@ -10,6 +10,7 @@ You must strictly preserve the original format while translating, including but
10
10
  - XML: keep tags, attributes, and indentation unchanged
11
11
  - Markdown: keep heading levels, lists, code blocks, links, and tables unchanged
12
12
  - Code: keep syntax, variable names, and function names unchanged
13
+ - YAML front matter: when a value contains an ASCII colon `:`, wrap it in double quotes (e.g. `title: "Foo: bar"`) to prevent YAML parse errors
13
14
 
14
15
  ## Triple Backticks Rules (Important)
15
16
  Triple backticks are the critical marker for Markdown code blocks. You must strictly follow:
@@ -10,6 +10,7 @@
10
10
  - XML:保持标签、属性、缩进不变
11
11
  - Markdown:保持标题层级、列表、代码块、链接、表格格式
12
12
  - 代码:保持代码语法、变量名、函数名不变
13
+ - YAML front matter:当值包含 ASCII 冒号 `:` 时必须使用双引号包裹(如 `title: "Foo: bar"`),避免 YAML 解析错误
13
14
 
14
15
  ## 三重反引号处理规则(重要)
15
16
  三重反引号是Markdown代码块的关键标记,必须严格遵循:
File without changes
File without changes