{ "compilerOptions": { "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "outDir": "./dist", "rootDir": "./src", "strict": true, // resource-rule.mjs 是共用規則的副本(純 JS + JSDoc,零依賴,見該檔開頭)。 // allowJs 讓 tsc 把它一起編進 dist(否則 npm 套件裡會缺這支 → 執行期 MODULE_NOT_FOUND); // checkJs 讓它的 JSDoc 型別真的被檢查,而不是靜靜地當 any。 "allowJs": true, "checkJs": true, "esModuleInterop": true, "skipLibCheck": true, "declaration": true, "declarationMap": true, "sourceMap": true }, "include": ["src/**/*"], "exclude": ["node_modules", "dist"] }