@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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  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.1': `'${packageOptions.version}'`,
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(`COMMIT: `) + `CHANGELOG.md, package.json`);
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: ')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/dev-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",