lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit 18f29e814d29a9ef8d815346813c6215b390944f
parent c05f01e338d182adbd4a4ec7a5aee179cf58cc31
Author: triesap <tyson@radroots.org>
Date:   Fri,  8 Aug 2025 21:37:42 +0000

workspace: update `ts` bindings tsconfig

Diffstat:
Mbindings/ts/package.json | 14++++++++------
Dbindings/ts/tsconfig.esm.json | 9---------
Dbindings/ts/tsconfig.json | 17-----------------
Abindings/tsconfig.cjs.json | 9+++++++++
Abindings/tsconfig.json | 9+++++++++
5 files changed, 26 insertions(+), 32 deletions(-)

diff --git a/bindings/ts/package.json b/bindings/ts/package.json @@ -21,15 +21,17 @@ ], "sideEffects": false, "scripts": { + "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", + "clean": "rimraf dist", + "dev": "npm run watch", + "watch": "tsc -w", "gen:index": "echo \"// Generated @radroots/radroots-common-bindings\" > src/index.ts && for f in src/*.ts; do fn=$(basename \"$f\" .ts); [ \"$fn\" != \"index\" ] && echo \"export * from './$fn';\" >> src/index.ts; done", "gen:schema": "ts-to-zod src/types.ts src/schema.ts", "gen:types": "typeshare --lang typescript --output-file=src/types.ts ../../src", - "gen": "npm run gen:types && npm run gen:schema && npm run gen:index", - "prebuild": "npm run clean", - "clean": "rimraf dist", - "build:cjs": "tsc -p tsconfig.json", - "build:esm": "tsc -p tsconfig.esm.json", - "build": "npm run build:cjs && npm run build:esm" + "gen": "npm run gen:types && npm run gen:schema && npm run gen:index" }, "devDependencies": { "rimraf": "^6.0.1", diff --git a/bindings/ts/tsconfig.esm.json b/bindings/ts/tsconfig.esm.json @@ -1,9 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "nodenext", - "outDir": "dist/esm", - "declaration": false, - "declarationMap": false - } -} diff --git a/bindings/ts/tsconfig.json b/bindings/ts/tsconfig.json @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "nodenext", - "moduleResolution": "nodenext", - "rootDir": "src", - "outDir": "dist/cjs", - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "strict": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true - }, - "include": ["src"] -} diff --git a/bindings/tsconfig.cjs.json b/bindings/tsconfig.cjs.json @@ -0,0 +1,9 @@ +{ + "extends": "@radroots/internal-tsconfig/tsconfig.cjs.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "dist/cjs" + }, + "include": ["src"], + "exclude": ["node_modules", "dist"] +} diff --git a/bindings/tsconfig.json b/bindings/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"] +}