-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use tsc-alias to fix esm build (#16)
- Loading branch information
1 parent
8437a2f
commit b68f9b9
Showing
2 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"[javascript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[markdown]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[yaml]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"eslint.format.enable": true, | ||
"eslint.experimental.useFlatConfig": true, | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"**/build": true, | ||
"**/sonar": true, | ||
"**/.husky": true, | ||
"**/.yarn": true, | ||
"**/.turbo": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
"build:cjs": "yarn prebuild:cjs && yarn swc src -d build/cjs --config module.type=commonjs && yarn postbuild:cjs", | ||
"postbuild:cjs": "touch build/cjs/package.json && echo '{ \"type\": \"commonjs\" }' > build/cjs/package.json", | ||
"prebuild:esm": "yarn rimraf build/esm", | ||
"build:esm": "yarn prebuild:esm && yarn swc src -d build/esm --config module.type=es6 && yarn postbuild:esm", | ||
"build:esm": "yarn prebuild:esm && yarn swc src -d build/esm --config module.type=es6 && tsc-alias --outDir build/esm -p tsconfig.build.json && yarn postbuild:esm", | ||
"postbuild:esm": "touch build/esm/package.json && echo '{ \"type\": \"module\" }' > build/esm/package.json", | ||
"build:types": "yarn tsc -p tsconfig.build.json", | ||
"test": "yarn jest --passWithNoTests", | ||
|
@@ -89,7 +89,11 @@ | |
"rxjs": "^7" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"volta": { | ||
"node": "18.18.0" | ||
"node": "18.18.0", | ||
"yarn": "3.4.1" | ||
} | ||
} |