chore: add release script and prepublishOnly guard

This commit is contained in:
2026-05-25 09:35:50 +00:00
parent ccca0e60d1
commit 4d7b439aaa
5 changed files with 18 additions and 13 deletions
+2 -1
View File
@@ -15,6 +15,7 @@
"build": "tsc --build packages/json-cas packages/json-cas-fs packages/json-cas-workflow",
"test": "bun test",
"check": "biome check .",
"format": "biome format --write ."
"format": "biome format --write .",
"release": "changeset version && bun run build && changeset publish"
}
}
+5 -4
View File
@@ -1,15 +1,16 @@
{
"name": "@uncaged/cli-json-cas",
"version": "0.5.0",
"version": "0.5.2",
"type": "module",
"bin": {
"json-cas": "./src/index.ts"
},
"scripts": {
"test": "bun test"
"test": "bun test",
"prepublishOnly": "echo '请用 bun run release 从根目录发版' && exit 1"
},
"dependencies": {
"@uncaged/json-cas": "workspace:^",
"@uncaged/json-cas-fs": "workspace:^"
"@uncaged/json-cas": "^0.5.0",
"@uncaged/json-cas-fs": "^0.5.0"
}
}
+4 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/json-cas-fs",
"version": "0.5.0",
"version": "0.5.2",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -15,10 +15,11 @@
"src"
],
"scripts": {
"test": "bun test"
"test": "bun test",
"prepublishOnly": "echo '请用 bun run release 从根目录发版' && exit 1"
},
"dependencies": {
"@uncaged/json-cas": "workspace:^",
"@uncaged/json-cas": "^0.5.0",
"cborg": "^4.2.3"
}
}
+4 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/json-cas-workflow",
"version": "0.5.0",
"version": "0.5.2",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -15,9 +15,10 @@
"src"
],
"scripts": {
"test": "bun test"
"test": "bun test",
"prepublishOnly": "echo '请用 bun run release 从根目录发版' && exit 1"
},
"dependencies": {
"@uncaged/json-cas": "workspace:^"
"@uncaged/json-cas": "^0.5.0"
}
}
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/json-cas",
"version": "0.5.0",
"version": "0.5.2",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -15,7 +15,8 @@
"src"
],
"scripts": {
"test": "bun test"
"test": "bun test",
"prepublishOnly": "echo '请用 bun run release 从根目录发版' && exit 1"
},
"dependencies": {
"ajv": "^8.20.0",