diff --git a/tsconfig-src.json b/examples/tsconfig.json similarity index 51% rename from tsconfig-src.json rename to examples/tsconfig.json index e901d90..8399c57 100644 --- a/tsconfig-src.json +++ b/examples/tsconfig.json @@ -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" } ] } diff --git a/lib/isomorphic-crypto.ts b/lib/isomorphic-crypto.ts index c3d180a..2529cad 100644 --- a/lib/isomorphic-crypto.ts +++ b/lib/isomorphic-crypto.ts @@ -1,7 +1,5 @@ -/// /// /// -/// const impl = await (typeof globalThis !== 'undefined' && globalThis.crypto ? globalThis.crypto diff --git a/tsconfig-base.json b/tsconfig-base.json index 711fb32..7cdefc4 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -6,7 +6,7 @@ "target": "es2022", "lib": ["es2022"], "types": [], - "module": "es2022", + "module": "node16", "incremental": true, "strict": true, "declaration": true, diff --git a/tsconfig-eslint.json b/tsconfig-eslint.json deleted file mode 100644 index 71ca937..0000000 --- a/tsconfig-eslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "./tsconfig-base.json", - "compilerOptions": { - "noEmit": true, - "types": ["vitest-environment-miniflare/globals"] - }, - "include": ["."], - "exclude": ["./dist", "node_modules"] -} diff --git a/tsconfig-lib.json b/tsconfig-lib.json deleted file mode 100644 index 3353ba5..0000000 --- a/tsconfig-lib.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "./tsconfig-base.json", - "outDir": "./dist/lib", - "compilerOptions": { - "types": ["@cloudflare/workers-types"] - }, - "include": ["./lib"], - "exclude": ["./dist", "node_modules"] -} diff --git a/tsconfig-test.json b/tsconfig-test.json deleted file mode 100644 index a8ff773..0000000 --- a/tsconfig-test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "./tsconfig-base.json", - "outDir": "./dist/test", - "compilerOptions": { - "noEmit": true, - "jsx": "react-jsxdev", - "lib": ["esnext", "dom", "webworker"], - "types": [ - "vitest-environment-miniflare/globals", - "@cloudflare/workers-types", - "@types/node" - ] - }, - "include": ["./test"], - "exclude": ["./dist", "node_modules"], - "references": [ - { - "path": "./tsconfig-lib.json" - } - ] -} diff --git a/tsconfig.json b/tsconfig.json index 34c51d3..472bb3b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }