Skip to content

Commit

Permalink
chore: fix module resolution issues in build
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Dec 26, 2023
1 parent 821811e commit 922faaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"scripts": {
"build": "npm run clean && npm run test && npm run build:cjs && npm run build:esm && npm run build:types && npm run build:package",
"build:cjs": "tsc --module commonjs --moduleResolution node --outDir ./dist/cjs",
"build:esm": "tsc --module node16 --outDir ./dist/esm",
"build:types": "tsc --module node16 --emitDeclarationOnly --declaration --declarationDir ./dist/types",
"build:esm": "tsc --module es2022 --outDir ./dist/esm",
"build:types": "tsc --module es2022 --emitDeclarationOnly --declaration --declarationDir ./dist/types",
"build:package": "node ./script/build-package.js",
"clean": "node ./script/clean.js",
"format": "prettier ./src/**/* --write",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"allowJs": true,
"sourceMap": true,
"esModuleInterop": true,
"moduleResolution": "node16"
"moduleResolution": "node"
}
}

0 comments on commit 922faaa

Please sign in to comment.