diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a094317 --- /dev/null +++ b/.vscode/settings.json @@ -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 + } +} diff --git a/package.json b/package.json index 44e3c13..0ae04c4 100644 --- a/package.json +++ b/package.json @@ -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": "yarn@3.4.1", + "engines": { + "node": ">=18" + }, "volta": { - "node": "18.18.0" + "node": "18.18.0", + "yarn": "3.4.1" } }