Skip to content

Commit 403d3be

Browse files
Merge pull request #1 from nakanoasaservice/feature/fix-lib
Setting the correct lib prevents @types/node from being bundled
2 parents 07db88f + a6cd148 commit 403d3be

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ await build({
1616
entryPoints: ["./index.ts"],
1717
outDir: "./dist",
1818
shims: {
19-
deno: true,
19+
deno: false,
2020
},
2121

2222
test: false,
2323
compilerOptions: {
2424
...config.compilerOptions,
2525
target: "Latest",
26+
lib: ["ES2022"],
2627
},
2728

2829
package: {

deno.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.6",
2+
"version": "0.1.7",
33
"name": "@nakanoaas/tagged-error",
44
"license": "MIT",
55
"exports": "./index.ts",
@@ -17,7 +17,8 @@
1717
"strictPropertyInitialization": false,
1818
"noUncheckedIndexedAccess": true,
1919
"noImplicitReturns": true,
20-
"noFallthroughCasesInSwitch": true
20+
"noFallthroughCasesInSwitch": true,
21+
"lib": ["deno.ns", "es2022"]
2122
},
2223
"imports": {
2324
"@deno/dnt": "jsr:@deno/dnt@^0.42.1"

0 commit comments

Comments
 (0)