Skip to content

Commit

Permalink
feat: full esm support
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfla1 committed Nov 7, 2023
1 parent 64b6eb5 commit 10d277b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"name": "Flavio (nickfla1) Lanternini Strippoli"
},
"scripts": {
"test": "vitest",
"test": "vitest run",
"build": "tsc"
},
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./result";
export * from "./result.js";
18 changes: 15 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
{
"compilerOptions": {
"module": "CommonJS",
"target": "ES2020",
"allowJs": true,
"declaration": true,
"outDir": "./dist"
"esModuleInterop": true,
"lib": [
"es2022"
],
"module": "NodeNext",
"moduleDetection": "force",
"moduleResolution": "NodeNext",
"outDir": "dist",
"resolveJsonModule": true,
"rootDir": "src",
"skipLibCheck": true,
"strict": true,
"target": "es2022",
"verbatimModuleSyntax": true,
},
"include": [
"src/**/*"
Expand Down

0 comments on commit 10d277b

Please sign in to comment.