mazey 2.2.0 → 2.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mazey",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Mazey's library for front end.",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
@@ -10,19 +10,19 @@ const pkgVersion = process.env.VERSION || require('../package.json').version;
10
10
  const { stdout: releaseStdout } = await execa('echo', [`Start release ${releaseVersion}...`]);
11
11
  console.log(releaseStdout);
12
12
  // Commit Stdout
13
- const { stdout: diffStdout } = await run('git', ['diff'], { stdio: 'pipe' });
13
+ const { stdout: diffStdout } = await execa('git', ['diff'], { stdio: 'pipe' });
14
14
  if (diffStdout) {
15
15
  console.log('Committing changes...');
16
- await runIfNotDry('git', ['add', '-A']);
17
- await runIfNotDry('git', ['commit', '-m', `release: ${releaseVersion}`]);
16
+ await execa('git', ['add', '-A']);
17
+ await execa('git', ['commit', '-m', `release: ${releaseVersion}`]);
18
18
  } else {
19
19
  console.log('No changes to commit.');
20
20
  }
21
21
  // Push
22
22
  console.log('Pushing to GitHub...');
23
- await runIfNotDry('git', ['tag', '-a', `${releaseVersion}`, '-m', `Release ${releaseVersion}`]);
24
- await runIfNotDry('git', ['push', 'origin', `refs/tags/${releaseVersion}`]);
25
- await runIfNotDry('git', ['push']);
23
+ await execa('git', ['tag', '-a', `${releaseVersion}`, '-m', `Release ${releaseVersion}`]);
24
+ await execa('git', ['push', 'origin', `refs/tags/${releaseVersion}`]);
25
+ await execa('git', ['push']);
26
26
 
27
27
  console.log('All done.');
28
28
  })();