Skip to content

Commit 9fe4a04

Browse files
committed
Upgrade all dependencies, migrate from pnpm to bun, update tsconfig
1 parent 806504f commit 9fe4a04

File tree

6 files changed

+861
-4955
lines changed

6 files changed

+861
-4955
lines changed

bun.lock

Lines changed: 831 additions & 0 deletions
Large diffs are not rendered by default.

lefthook.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ pre-commit:
99
commands:
1010
prettier:
1111
glob: "*.{js,ts,jsx,tsx,json,css,html,yml,mdx,md}"
12-
run: pnpm prettier:write {staged_files}
12+
run: bun prettier:write {staged_files}
1313
stage_fixed: true
1414
test:
15-
run: pnpm vitest --run --dom related {staged_files}
15+
run: bun vitest --run --dom related {staged_files}
1616
glob: "*.{js,ts,jsx,tsx}"
1717
fail_text: Tests failed or not found on {staged_files}
1818
check:
19-
run: pnpm tsc --noEmit
19+
run: bun tsc --noEmit
2020
glob: "*.{js,ts,jsx,tsx}"

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"editor"
2424
],
2525
"type": "module",
26-
"packageManager": "pnpm@8.6.6",
26+
"packageManager": "bun@1.3.2",
2727
"types": "dist/index.d.ts",
2828
"module": "dist/index.js",
2929
"main": "cjs/index.js",
@@ -57,14 +57,14 @@
5757
"repository": "github:acao/codemirror-json-schema",
5858
"homepage": "https://codemirror-json-schema.netlify.app/",
5959
"dependencies": {
60-
"@sagold/json-pointer": "^5.1.1",
61-
"@shikijs/markdown-it": "^1.22.2",
60+
"@sagold/json-pointer": "^7.2.0",
61+
"@shikijs/markdown-it": "^3.15.0",
6262
"best-effort-json-parser": "^1.1.2",
6363
"json-schema": "^0.4.0",
64-
"json-schema-library": "^9.3.5",
64+
"json-schema-library": "^10.4.2",
6565
"loglevel": "^1.9.1",
6666
"markdown-it": "^14.1.0",
67-
"shiki": "^1.22.2",
67+
"shiki": "^3.15.0",
6868
"yaml": "^2.3.4"
6969
},
7070
"optionalDependencies": {
@@ -82,7 +82,7 @@
8282
"@lezer/common": "^1.2.1"
8383
},
8484
"devDependencies": {
85-
"@changesets/changelog-github": "^0.4.8",
85+
"@changesets/changelog-github": "^0.5.1",
8686
"@changesets/cli": "^2.26.2",
8787
"@codemirror/autocomplete": "^6.16.2",
8888
"@codemirror/commands": "^6.6.0",
@@ -91,34 +91,34 @@
9191
"@codemirror/state": "^6.4.1",
9292
"@codemirror/theme-one-dark": "^6.1.2",
9393
"@codemirror/view": "^6.27.0",
94-
"@evilmartians/lefthook": "^1.4.6",
94+
"@evilmartians/lefthook": "^2.0.4",
9595
"@lezer/common": "^1.2.1",
9696
"@types/json-schema": "^7.0.12",
97-
"@types/markdown-it": "^13.0.7",
98-
"@types/node": "^20.4.2",
99-
"@vitest/coverage-v8": "^2.0.5",
97+
"@types/markdown-it": "^14.1.2",
98+
"@types/node": "^24.10.1",
99+
"@vitest/coverage-v8": "^4.0.9",
100100
"codemirror-json5": "^1.0.3",
101-
"happy-dom": "^10.3.2",
102-
"jsdom": "^24.1.1",
101+
"happy-dom": "^20.0.10",
102+
"jsdom": "^27.2.0",
103103
"json5": "^2.2.3",
104104
"prettier": "^3.3.3",
105-
"typedoc": "^0.24.8",
106-
"typedoc-plugin-markdown": "^3.15.3",
105+
"typedoc": "^0.28.14",
106+
"typedoc-plugin-markdown": "^4.9.0",
107107
"typescript": "^5.5.2",
108-
"vite": "^5.3.1",
109-
"vitest": "^1.6.0",
108+
"vite": "^7.2.2",
109+
"vitest": "^4.0.9",
110110
"vitest-dom": "^0.1.1",
111-
"vite-tsconfig-paths": "^4.3.1"
111+
"vite-tsconfig-paths": "^5.1.4"
112112
},
113113
"scripts": {
114114
"dev": "vite ./dev --port 3000",
115-
"build": "pnpm tsc && tsc --module commonjs --outDir cjs && vite build ./dev --outDir ../public --emptyOutDir",
115+
"build": "bun tsc && tsc --module commonjs --outDir cjs && vite build ./dev --outDir ../public --emptyOutDir",
116116
"test": "vitest --dom",
117117
"test:coverage": "vitest run --dom --coverage ",
118-
"tsc": "tsc && pnpm replace:env",
119-
"version-packages": "changeset version && pnpm typedoc && pnpm prettier:write CHANGELOG.md && git add package.json pnpm-lock.yaml CHANGELOG.md",
120-
"release": "pnpm build && changeset publish",
121-
"typedoc": "typedoc --out docs src/index.ts src/json5.ts && pnpm prettier:write docs/**/*",
118+
"tsc": "tsc && bun replace:env",
119+
"version-packages": "changeset version && bun typedoc && bun prettier:write CHANGELOG.md && git add package.json bun-lock.yaml CHANGELOG.md",
120+
"release": "bun build && changeset publish",
121+
"typedoc": "typedoc --out docs src/index.ts src/json5.ts && bun prettier:write docs/**/*",
122122
"prettier:write": "prettier --ignore-path .gitignore --write",
123123
"replace:env": "sh scripts/replace-env.sh"
124124
}

0 commit comments

Comments
 (0)