@secret-momo/toolchain-config 1.0.0 → 2.0.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/README.md CHANGED
@@ -35,6 +35,8 @@ Node、工具和打包场景统一使用 `ESNext` 的编译目标与标准库类
35
35
 
36
36
  基础预设启用 `noEmitOnError`,编译报错时跳过 JavaScript 和声明文件输出。
37
37
 
38
+ 基础预设启用 `noPropertyAccessFromIndexSignature`。仅由索引签名提供的键须用方括号访问,例如 `process.env['RUN_URL']`。类型中显式声明的属性仍可用点语法。迁移期间可在项目的 `compilerOptions` 中将该选项设为 `false`。
39
+
38
40
  `node-check.json`、`node-native.json`、`bundler.json`、`node-bundler.json` 和 `tool.json` 默认只做类型检查。除通用的 `bundler.json` 外,这些入口和 `node-library.json` 都从消费项目加载 `@types/node`。
39
41
 
40
42
  单独继承 `node.json` 时,TypeScript 6 使用包含 DOM 的默认标准库,并由项目显式设置所需的 `types`。需要一套完整的 Node 类型检查配置时,使用 `node-check.json`。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secret-momo/toolchain-config",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "跨项目共享的 TypeScript 配置。",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "./tsconfig/declarations.json": "./tsconfig/declarations.json"
25
25
  },
26
26
  "files": [
27
- "tsconfig"
27
+ "tsconfig/**/*.json"
28
28
  ],
29
29
  "engines": {
30
30
  "node": ">=26"
@@ -4,6 +4,7 @@
4
4
  "skipLibCheck": true,
5
5
  "noEmitOnError": true,
6
6
  "noFallthroughCasesInSwitch": true,
7
+ "noPropertyAccessFromIndexSignature": true,
7
8
  "noUnusedLocals": true,
8
9
  "noUnusedParameters": true,
9
10
  "verbatimModuleSyntax": true