Skip to content

Commit

Permalink
chore: fix up tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
spence-s committed Nov 15, 2024
1 parent 8d74fa7 commit 88e5585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
18 changes: 2 additions & 16 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
/**
* Minimal TypeScript configuration for Node.js
* - To choose between native ESM or CJS modules, simply change the "type" option in package.json.
* ESM is the default option for the spence-s-starter-template, but the tscofig is set up to use commonjs when the package.json field is changed to "type": "commonjs", or removed.
*/
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"target": "ES2022",
"module": "Node16",
"rootDir": "./lib",
"strict": true,
"declaration": true,
"sourceMap": true,
"paths": {
"koa-compose": ["./lib/types/koa-compose.d.ts"],
"cache-content-type": ["./lib/types/cache-content-type.d.ts"],
"delegates": ["./lib/types/delegates.d.ts"]
}
"rootDir": "./lib"
},
"include": ["**/*"]
}
10 changes: 2 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
/**
* Minimal TypeScript configuration for Node.js
* - To choose between native ESM or CJS modules, simply change the "type" option in package.json.
* ESM is the default option for the spence-s-starter-template, but the tscofig is set up to use commonjs when the package.json field is changed to "type": "commonjs", or removed.
*/
{
"compilerOptions": {
"outDir": "./dist",
"target": "ES2022",
"target": "ES2023",
"module": "Node16",
"rootDir": ".",
"strict": true,
"declaration": true,
"sourceMap": true,
"paths": {
"koa-compose": ["./lib/types/koa-compose.d.ts"],
"cache-content-type": ["./lib/types/cache-content-type.d.ts"],
"delegates": ["./lib/types/delegates.d.ts"]
"cache-content-type": ["./lib/types/cache-content-type.d.ts"]
}
}
}

0 comments on commit 88e5585

Please sign in to comment.