Skip to content

Commit bb2f827

Browse files
committed
fix: jsr issue with pnpm catalog
1 parent 9b35b00 commit bb2f827

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

eslint.config.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
// eslint.config.js
22
import antfu from '@antfu/eslint-config'
33

4-
export default antfu()
4+
export default antfu(
5+
{},
6+
{
7+
files: ['package.json'],
8+
rules: {
9+
'pnpm/json-enforce-catalog': ['error', {
10+
ignores: [
11+
'@types/browser-sync',
12+
'browser-sync',
13+
'kolorist',
14+
],
15+
}],
16+
},
17+
},
18+
)

jsr.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"demo",
88
"pnpm-lock.yaml",
99
"pnpm-workspace.yaml",
10-
".npmrc",
1110
"eslint.config.js",
1211
"tsdown.config.ts"
1312
]

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"vite": "^7.0.0 || ^8.0.0"
5252
},
5353
"dependencies": {
54-
"@types/browser-sync": "catalog:",
55-
"browser-sync": "catalog:",
56-
"kolorist": "catalog:"
54+
"@types/browser-sync": "^2.29.1",
55+
"browser-sync": "^3.0.4",
56+
"kolorist": "^1.8.0"
5757
},
5858
"devDependencies": {
5959
"@antfu/eslint-config": "catalog:",

0 commit comments

Comments
 (0)