Skip to content

Commit

Permalink
chore: improve tsc setup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxholman committed Jun 11, 2024
1 parent 4ca5e54 commit 867f9f4
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 61 deletions.
9 changes: 4 additions & 5 deletions tsconfig-src.json → examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./tsconfig-base.json",
"outDir": "./dist/src",
"extends": "../tsconfig-base.json",
"compilerOptions": {
"noEmit": true,
"lib": [],
"types": []
},
"include": ["./src"],
"exclude": ["./dist", "node_modules"],
"include": ["."],
"exclude": ["./dist"],
"references": [
{
"path": "./tsconfig-lib.json"
"path": "../lib"
}
]
}
2 changes: 0 additions & 2 deletions lib/isomorphic-crypto.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/// <reference lib="dom" />
/// <reference lib="webworker" />
/// <reference types="node" />
/// <reference types="@cloudflare/workers-types" />

const impl = await (typeof globalThis !== 'undefined' && globalThis.crypto
? globalThis.crypto
Expand Down
2 changes: 1 addition & 1 deletion tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"target": "es2022",
"lib": ["es2022"],
"types": [],
"module": "es2022",
"module": "node16",
"incremental": true,
"strict": true,
"declaration": true,
Expand Down
10 changes: 0 additions & 10 deletions tsconfig-eslint.json

This file was deleted.

10 changes: 0 additions & 10 deletions tsconfig-lib.json

This file was deleted.

21 changes: 0 additions & 21 deletions tsconfig-test.json

This file was deleted.

16 changes: 4 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
{
"extends": "./tsconfig-base.json",
"files": [],
"references": [
{
"path": "./tsconfig-lib.json"
},
{
"path": "./tsconfig-src.json"
},
{
"path": "./tsconfig-test.json"
}
]
"compilerOptions": {
"noEmit": true
},
"files": ["./vitest.config.ts"]
}

0 comments on commit 867f9f4

Please sign in to comment.