Change all import specifiers from ".js" to ".ts" in TypeScript source files. Add allowImportingTsExtensions and rewriteRelativeImportExtensions to tsconfig so tsc strips them to ".js" in the dist output — no build pipeline changes needed. Update CLAUDE.md to reflect the new extension policy.
21 lines
523 B
JSON
21 lines
523 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ESNext",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"isolatedModules": true,
|
|
"allowImportingTsExtensions": true,
|
|
"rewriteRelativeImportExtensions": true,
|
|
},
|
|
"include": ["src/**/*"]
|
|
}
|