Skip to content

Commit

Permalink
refactor: adjust typescript output
Browse files Browse the repository at this point in the history
  • Loading branch information
intrnl committed Jul 26, 2023
1 parent 34a02d8 commit e48698a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"runtime"
],
"sideEffects": false,
"type": "module",
"main": "./dist/index.mjs",
"types": "./dist/types/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/types/index.d.ts"
"require": "./dist/index.js"
}
},
"files": [
Expand Down
5 changes: 2 additions & 3 deletions library/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"strict": true,
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "ESNext",
"module": "CommonJS",
"moduleResolution": "node",
"outDir": "dist/source",
"outDir": "dist",
"declaration": true,
"declarationDir": "dist/types"
},
"include": ["src"]
}

0 comments on commit e48698a

Please sign in to comment.