commit 18f058675f415de4e7f017aed8b1fc24a56103cf
parent 12a9b4509d29e7f0ccde357cf8328648d8e01e82
Author: triesap <137732411+triesap@users.noreply.github.com>
Date: Fri, 8 Aug 2025 21:45:06 +0000
locales: update tsconfig
Diffstat:
5 files changed, 16 insertions(+), 31 deletions(-)
diff --git a/locales/package.json b/locales/package.json
@@ -15,7 +15,7 @@
}
},
"scripts": {
- "build:esm": "tsc -p tsconfig.esm.json",
+ "build:esm": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"prebuild": "npm run clean",
@@ -24,6 +24,7 @@
"watch": "tsc -w"
},
"devDependencies": {
+ "@radroots/tsconfig": "*",
"@types/node": "^22.15.3",
"typescript": "5.8.3"
},
diff --git a/locales/tsconfig.base.json b/locales/tsconfig.base.json
@@ -1,12 +0,0 @@
-{
- "compilerOptions": {
- "target": "ES2019",
- "strict": true,
- "esModuleInterop": true,
- "forceConsistentCasingInFileNames": true,
- "skipLibCheck": true,
- "sourceMap": false,
- "rootDir": "src",
- "resolveJsonModule": true
- }
-}
diff --git a/locales/tsconfig.cjs.json b/locales/tsconfig.cjs.json
@@ -1,10 +1,9 @@
{
- "extends": "./tsconfig.base.json",
+ "extends": "@radroots/internal-tsconfig/tsconfig.cjs.json",
"compilerOptions": {
- "outDir": "./dist/cjs",
- "module": "CommonJS",
- "declaration": false,
- "moduleResolution": "Node"
+ "rootDir": "./src",
+ "outDir": "dist/cjs"
},
- "include": ["src"]
+ "include": ["src"],
+ "exclude": ["node_modules", "dist"]
}
diff --git a/locales/tsconfig.esm.json b/locales/tsconfig.esm.json
@@ -1,12 +0,0 @@
-{
- "extends": "./tsconfig.base.json",
- "compilerOptions": {
- "outDir": "./dist/esm",
- "module": "NodeNext",
- "declaration": true,
- "declarationDir": "./dist/types",
- "moduleResolution": "NodeNext",
- "emitDeclarationOnly": false
- },
- "include": ["src"]
-}
diff --git a/locales/tsconfig.json b/locales/tsconfig.json
@@ -0,0 +1,9 @@
+{
+ "extends": "@radroots/internal-tsconfig/tsconfig.esm.json",
+ "compilerOptions": {
+ "rootDir": "./src",
+ "outDir": "dist/esm"
+ },
+ "include": ["src"],
+ "exclude": ["node_modules", "dist"]
+}