Skip to content

Commit

Permalink
add dist/esm/node
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 3, 2024
1 parent 84355e0 commit 8b2c202
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 23 deletions.
9 changes: 0 additions & 9 deletions telefunc/client/tsconfig.json

This file was deleted.

8 changes: 0 additions & 8 deletions telefunc/node/tsconfig.json

This file was deleted.

6 changes: 3 additions & 3 deletions telefunc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"dev": "pnpm run dev:fast",
"// `dev:fast` and `dev:slow` achieve the same, but `dev:fast` is much faster": "",
"dev:slow": "tsc --build --watch",
"dev:fast": "pnpm run tsc:watch:node & pnpm run tsc:watch:client",
"tsc:watch:node": "tsc --incremental --watch --project ./node/tsconfig.json",
"tsc:watch:client": "tsc --incremental --watch --project ./client/tsconfig.json",
"dev:fast": "pnpm run tsc:watch:cjs & pnpm run tsc:watch:esm",
"tsc:watch:cjs": "tsc --incremental --watch --project ./tsconfig.cjs.json",
"tsc:watch:esm": "tsc --incremental --watch --project ./tsconfig.esm.json",
"release": "release-me patch",
"release:commit": "release-me commit"
},
Expand Down
3 changes: 1 addition & 2 deletions telefunc/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"noUnusedParameters": true,
"esModuleInterop": true,
"noUncheckedIndexedAccess": true,
"rootDir": "./",
"lib": ["DOM", "ESNext"]
},
"exclude": ["./node_modules/", "./dist/", "**/*.spec.ts"]
"exclude": ["**/*.spec.ts"]
}
9 changes: 9 additions & 0 deletions telefunc/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/cjs/",
"target": "ES2017",
"module": "CommonJS"
},
"include": ["node/**/*"]
}
10 changes: 10 additions & 0 deletions telefunc/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/esm/",
"target": "ES2019",
"module": "ES2020",
"moduleResolution": "Node"
},
"include": ["client/**/*", "node/**/*"]
}
2 changes: 1 addition & 1 deletion telefunc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"files": [],
"references": [{ "path": "./client/" }, { "path": "./node/" }]
"references": [{ "path": "./tsconfig.cjs.json" }, { "path": "./tsconfig.esm.json" }]
}

0 comments on commit 8b2c202

Please sign in to comment.