chore: use pnpm catalogs

This commit is contained in:
Anthony Fu committed 2025-03-08 03:00:53 +08:00
1 parent 1ed66db81d
commit 608a888262
4 files changed
+510 -521

No files matched your search

+1
View File
@@ -4,5 +4,6 @@ import antfu from '@antfu/eslint-config'
export default antfu( export default antfu(
{ {
type: 'lib', type: 'lib',
pnpm: true,
}, },
) )
+19 -19
View File
@@ -2,7 +2,7 @@
"name": "pkg-placeholder", "name": "pkg-placeholder",
"type": "module", "type": "module",
"version": "0.0.0", "version": "0.0.0",
"packageManager": "pnpm@10.5.2", "packageManager": "pnpm@10.6.1",
"description": "_description_", "description": "_description_",
"author": "Anthony Fu <anthonyfu117@hotmail.com>", "author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT", "license": "MIT",
@@ -27,7 +27,7 @@
"scripts": { "scripts": {
"build": "unbuild", "build": "unbuild",
"dev": "unbuild --stub", "dev": "unbuild --stub",
"lint": "eslint .", "lint": "eslint",
"prepublishOnly": "nr build", "prepublishOnly": "nr build",
"release": "bumpp && pnpm publish", "release": "bumpp && pnpm publish",
"start": "tsx src/index.ts", "start": "tsx src/index.ts",
@@ -36,23 +36,23 @@
"prepare": "simple-git-hooks" "prepare": "simple-git-hooks"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^4.4.0", "@antfu/eslint-config": "catalog:cli",
"@antfu/ni": "^23.3.1", "@antfu/ni": "catalog:cli",
"@antfu/utils": "^9.1.0", "@antfu/utils": "catalog:utils",
"@types/js-yaml": "^4.0.9", "@types/js-yaml": "catalog:testing",
"@types/node": "^22.13.9", "@types/node": "catalog:types",
"bumpp": "^10.0.3", "bumpp": "catalog:cli",
"eslint": "^9.21.0", "eslint": "catalog:cli",
"js-yaml": "^4.1.0", "js-yaml": "catalog:testing",
"lint-staged": "^15.4.3", "lint-staged": "catalog:cli",
"simple-git-hooks": "^2.11.1", "simple-git-hooks": "catalog:cli",
"tinyexec": "^0.3.2", "tinyexec": "catalog:utils",
"tsx": "^4.19.3", "tsx": "catalog:cli",
"typescript": "^5.8.2", "typescript": "catalog:cli",
"unbuild": "^3.5.0", "unbuild": "catalog:cli",
"vite": "^6.2.0", "vite": "catalog:cli",
"vitest": "^3.0.7", "vitest": "catalog:testing",
"vitest-package-exports": "^0.1.0" "vitest-package-exports": "catalog:testing"
}, },
"simple-git-hooks": { "simple-git-hooks": {
"pre-commit": "pnpm lint-staged" "pre-commit": "pnpm lint-staged"
+467 -502
View File
File diff suppressed because it is too large. Load diff
+23
View File
@@ -3,5 +3,28 @@ packages:
- docs - docs
- packages/* - packages/*
- examples/* - examples/*
catalogs:
cli:
'@antfu/eslint-config': ^4.8.1
'@antfu/ni': ^23.3.1
bumpp: ^10.0.3
eslint: ^9.21.0
lint-staged: ^15.4.3
simple-git-hooks: ^2.11.1
tsx: ^4.19.3
typescript: ^5.8.2
unbuild: ^3.5.0
vite: ^6.2.1
testing:
'@types/js-yaml': ^4.0.9
js-yaml: ^4.1.0
vitest-package-exports: ^0.1.1
vitest: ^3.0.8
types:
'@types/node': ^22.13.9
utils:
'@antfu/utils': ^9.1.0
tinyexec: ^0.3.2
onlyBuiltDependencies: onlyBuiltDependencies:
- esbuild - esbuild
- simple-git-hooks