Skip to content

Commit

Permalink
chore: change moduleResolution to bundler, fix typo (#3374)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
uxuip and antfu committed Dec 2, 2023
1 parent 5cbef43 commit 6413b8f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions packages/eslint-config/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ export default defineBuildConfig({
rollup: {
emitCJS: true,
},
externals: [
'@typescript-eslint/utils/ts-eslint',
'@typescript-eslint/utils',
'@typescript-eslint/types',
],
})
5 changes: 5 additions & 0 deletions packages/eslint-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ export default defineBuildConfig({
respectExternal: true,
},
},
externals: [
'@typescript-eslint/utils/ts-eslint',
'@typescript-eslint/utils',
'@typescript-eslint/types',
],
})
2 changes: 1 addition & 1 deletion packages/eslint-plugin/fixtures/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/unocss/unocss/tree/main/packages/esling-plugin#readme",
"homepage": "https://github.com/unocss/unocss/tree/main/packages/eslint-plugin#readme",
"repository": {
"type": "git",
"url": "https://github.com/unocss/unocss",
"directory": "packages/esling-plugin"
"directory": "packages/eslint-plugin"
},
"bugs": {
"url": "https://github.com/unocss/unocss/issues"
Expand Down
3 changes: 0 additions & 3 deletions packages/eslint-plugin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"exclude": [
"dist/**",
"node_modules/**",
Expand Down
1 change: 0 additions & 1 deletion packages/inspector/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"jsx": "preserve",
"lib": ["esnext", "dom"],
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"types": [
"vite/client",
Expand Down
1 change: 0 additions & 1 deletion packages/runtime/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"jsx": "preserve",
"lib": ["esnext", "dom"],
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"strict": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/svelte-scoped/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"types": [
"vite/client",
"vitest/importMeta"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"jsx": "preserve",
"lib": ["esnext"],
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"paths": {
"@unocss/astro": ["./packages/astro/src/index.ts"],
"@unocss/autocomplete": ["./packages/autocomplete/src/index.ts"],
"@unocss/config": ["./packages/config/src/index.ts"],
"@unocss/core": ["./packages/core/src/index.ts"],
"@unocss/eslint-plugin": ["./packages/esling-plugin/src/index.ts"],
"@unocss/eslint-plugin": ["./packages/eslint-plugin/src/index.ts"],
"@unocss/extractor-arbitrary-variants": ["./packages/extractor-arbitrary-variants/src/index.ts"],
"@unocss/extractor-pug": ["./packages/extractor-pug/src/index.ts"],
"@unocss/extractor-svelte": ["./packages/extractor-svelte/src/index.ts"],
Expand Down

0 comments on commit 6413b8f

Please sign in to comment.