@deot/dev-cli 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -438,7 +438,7 @@ class Builder {
|
|
|
438
438
|
commonjs({ extensions: ['.js', '.ts'] }),
|
|
439
439
|
nodeResolve(),
|
|
440
440
|
replace({
|
|
441
|
-
'1.0.
|
|
441
|
+
'1.0.2': `'${packageOptions.version}'`,
|
|
442
442
|
false: 'false',
|
|
443
443
|
true: true
|
|
444
444
|
})
|
|
@@ -949,7 +949,9 @@ const run = (options) => Utils.autoCatch(async () => {
|
|
|
949
949
|
Logger.log(chalk.magenta(`COMMIT: `) + chalk.yellow(`Skipping Git Commit`) + `\n${message}`);
|
|
950
950
|
}
|
|
951
951
|
else {
|
|
952
|
-
Logger.log(chalk.magenta(`
|
|
952
|
+
Logger.log(chalk.magenta(`CHANGED: `) + `pnpm-lock.yaml`);
|
|
953
|
+
await Shell.spawn('npx', ['pnpm', 'install', '--lockfile-only']);
|
|
954
|
+
Logger.log(chalk.magenta(`COMMIT: `) + `CHANGELOG.md, package.json, pnpm-lock.yaml`);
|
|
953
955
|
await Shell.spawn('git', ['add', process.cwd()]);
|
|
954
956
|
await Shell.spawn('git', ['commit', '--m', `'${message}'`]);
|
|
955
957
|
}
|
|
@@ -970,6 +972,7 @@ const run = (options) => Utils.autoCatch(async () => {
|
|
|
970
972
|
}
|
|
971
973
|
else {
|
|
972
974
|
await Shell.spawn('git', ['push']);
|
|
975
|
+
await Shell.spawn('git', ['push', '--tags']);
|
|
973
976
|
}
|
|
974
977
|
if (options.dryRun) {
|
|
975
978
|
Logger.log(chalk.green('NO DRY RUN WAY: ')
|