Skip to content

Commit c06a240

Browse files
committed
build(next): add release:next scripts
1 parent f4a6ed3 commit c06a240

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

next/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@
2121
"node": "22.13.1"
2222
},
2323
"scripts": {
24+
"build": "tsup",
2425
"test": "jest",
2526
"test:watch": "jest --watchAll",
2627
"test:file": "jest --runTestsByPath",
2728
"lint": "eslint --max-warnings 0 .",
28-
"build": "tsup"
29+
"release:patch": "cd .. && npm run release:next:patch",
30+
"release:minor": "cd .. && npm run release:next:minor"
2931
},
3032
"devDependencies": {
3133
"@antfu/eslint-config": "^3.14.0",

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"release:dev:minor": "node scripts/release_dev minor",
3838
"release:main:patch": "node scripts/release_main patch",
3939
"release:main:minor": "node scripts/release_main minor",
40+
"release:next:patch": "node scripts/release_next patch",
41+
"release:next:minor": "node scripts/release_next minor",
4042
"version_as_main": "node scripts/version_as_main.js",
4143
"psrepublishOnly": "if [[ ! $PWD =~ scripts$ ]]; then npm run publish:nopublish; fi",
4244
"psublish:nopublish": "echo 'Use `npm release:*` script instead && exit 1"

0 commit comments

Comments
 (0)