Skip to content

Commit 5a484c1

Browse files
OttoAllmendingerllm-git
andcommitted
chore(root): add test command and update prepare-release script
Add test command for release script and simplify CLI options Issue: DX-1201 Co-authored-by: llm-git <[email protected]>
1 parent 9bb4ea9 commit 5a484c1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@
121121
"update-dockerfile": "ts-node scripts/update-dockerfile.ts",
122122
"precommit": "lint-staged",
123123
"lint-fix": "lerna run lint --parallel -- --fix",
124-
"prepare-commit-msg": "node ./scripts/prepare-commit-msg.js"
124+
"prepare-commit-msg": "node ./scripts/prepare-commit-msg.js",
125+
"test:prepare-release": "mocha --require ts-node/register ./scripts/tests/prepareRelease/prepare-release-main.test.ts"
125126
},
126127
"dependencies": {
127128
"axios": "^1.8.2",

scripts/prepare-release.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,11 @@ yargs(hideBin(process.argv))
108108
default: 'beta',
109109
})
110110
.option('scope', {
111-
alias: 's',
112111
type: 'string',
113112
description: 'Target scope for packages',
114113
default: '@bitgo-beta',
115114
})
116115
.option('root-dir', {
117-
alias: 'r',
118116
type: 'string',
119117
description: 'Root directory of the repository',
120118
default: process.env.BITGO_PREPARE_RELEASE_ROOT_DIR || path.join(__dirname, '..'),

0 commit comments

Comments
 (0)