Compare commits
2 Commits
0269313516
...
4dd3056b2f
| Author | SHA1 | Date | |
|---|---|---|---|
| 4dd3056b2f | |||
| 3e2b54ba3c |
@@ -21,7 +21,7 @@ const { values } = parseArgs({
|
||||
}
|
||||
});
|
||||
|
||||
if (!["major", "minor", "patch"].includes(values.bump)) {
|
||||
if (values.bump !== undefined && !["major", "minor", "patch"].includes(values.bump)) {
|
||||
console.error(`Invalid bump type: ${values.bump}. Allowed values are: major, minor, patch.`);
|
||||
process.exit(1);
|
||||
}
|
||||
@@ -46,7 +46,7 @@ console.log(`SK Azure Tools Locked version: ${skAzToolsPackageLock.version}`);
|
||||
// Update package.json if --update flag is set
|
||||
// or if the version of @slawek/sk-az-tools in package.json
|
||||
// is different than the version in package-lock.json.
|
||||
if (values.update || skAzToolsPackage.version !== skToolsPackage.version) {
|
||||
if (values.update || skAzToolsPackage.version !== skAzToolsPackageLock.version) {
|
||||
console.log(`Updating package.json...`);
|
||||
skAzToolsPackage.dependencies["@slawek/sk-tools"] = `>=${skToolsPackage.version}`;
|
||||
writeFileSync(skAzToolsPackagePath, JSON.stringify(skAzToolsPackage, null, 4));
|
||||
|
||||
Reference in New Issue
Block a user