web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit c775eb1d96cae3735a915003e1c6c17ad8290ce6
parent 079120c349b6c48350654345f3caa92c8290d7dd
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Fri,  8 Aug 2025 22:33:56 +0000

utils: update tsconfig

Diffstat:
Mutils/package.json | 3++-
Dutils/tsconfig.base.json | 11-----------
Mutils/tsconfig.cjs.json | 11+++++------
Dutils/tsconfig.esm.json | 12------------
Autils/tsconfig.json | 9+++++++++
5 files changed, 16 insertions(+), 30 deletions(-)

diff --git a/utils/package.json b/utils/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/ngeohash": "0.6.8", "@types/node": "^22.13.1", "@types/uuid": "^10.0.0", diff --git a/utils/tsconfig.base.json b/utils/tsconfig.base.json @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2019", - "strict": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true, - "sourceMap": false, - "rootDir": "src" - } -} diff --git a/utils/tsconfig.cjs.json b/utils/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/utils/tsconfig.esm.json b/utils/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/utils/tsconfig.json b/utils/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"] +}