Skip to content

Commit

Permalink
fix: bundle eslint-config related deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 3, 2025
1 parent 038e47e commit 7d2945b
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 37 deletions.
3 changes: 3 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ export default defineBuildConfig({
'src/cli.ts',
],
clean: false,
rollup: {
inlineDependencies: true,
},
})
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,16 @@
"eslint": "^8.50.0 || ^9.0.0"
},
"dependencies": {
"@eslint/config-array": "catalog:",
"@voxpelli/config-array-find-files": "catalog:",
"@nodelib/fs.walk": "catalog:",
"bundle-require": "catalog:",
"cac": "catalog:",
"chokidar": "catalog:",
"debug": "catalog:",
"esbuild": "catalog:",
"fast-glob": "catalog:",
"find-up": "catalog:",
"get-port-please": "catalog:",
"h3": "catalog:",
"minimatch": "catalog:",
"mlly": "catalog:",
"mrmime": "catalog:",
"open": "catalog:",
Expand All @@ -53,6 +52,7 @@
},
"devDependencies": {
"@antfu/eslint-config": "catalog:",
"@eslint/config-array": "catalog:",
"@iconify-json/carbon": "catalog:",
"@iconify-json/file-icons": "catalog:",
"@iconify-json/logos": "catalog:",
Expand All @@ -68,19 +68,21 @@
"@typescript-eslint/utils": "catalog:",
"@unocss/eslint-config": "catalog:",
"@unocss/nuxt": "catalog:",
"@voxpelli/config-array-find-files": "catalog:",
"@vueuse/nuxt": "catalog:",
"eslint": "catalog:",
"floating-vue": "catalog:",
"fuse.js": "catalog:",
"lint-staged": "catalog:",
"minimatch": "catalog:",
"nuxt": "catalog:",
"nuxt-eslint-auto-explicit-import": "catalog:",
"shiki": "catalog:",
"simple-git-hooks": "catalog:",
"textmate-grammar-glob": "catalog:",
"typescript": "catalog:",
"unbuild": "catalog:",
"vitest": "^2.1.8",
"vitest": "catalog:",
"vue-tsc": "catalog:"
},
"pnpm": {
Expand Down
82 changes: 50 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ catalog:
'@iconify-json/svg-spinners': ^1.2.2
'@iconify-json/twemoji': ^1.2.2
'@iconify-json/vscode-icons': ^1.2.7
'@nodelib/fs.walk': ^3.0.1
'@nuxt/eslint': ^0.7.4
'@shikijs/transformers': ^1.26.0
'@types/connect': ^3.4.38
Expand All @@ -22,6 +23,7 @@ catalog:
bundle-require: ^5.1.0
cac: ^6.7.14
chokidar: ^4.0.3
debug: ^4.4.0
esbuild: ^0.24.2
eslint: ^9.17.0
fast-glob: ^3.3.2
Expand All @@ -44,5 +46,6 @@ catalog:
textmate-grammar-glob: ^0.0.1
typescript: ^5.7.2
unbuild: ^3.2.0
vitest: ^2.1.8
vue-tsc: ^2.2.0
ws: ^8.18.0
3 changes: 2 additions & 1 deletion shared/configs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { Linter } from 'eslint'
import type { MinimatchOptions } from 'minimatch'
import type { FlatConfigItem, MatchedFile } from './types'
import { ConfigArray } from '@eslint/config-array'
import { Minimatch, type MinimatchOptions } from 'minimatch'
import { Minimatch } from 'minimatch'

const minimatchOpts: MinimatchOptions = { dot: true, flipNegate: true }
const _matchInstances = new Map<string, Minimatch>()
Expand Down

0 comments on commit 7d2945b

Please sign in to comment.