mazey 4.7.3 → 4.7.5

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/scripts/dev.js CHANGED
@@ -1,23 +1,7 @@
1
1
  /* eslint-disable no-undef */
2
2
  /* eslint-disable @typescript-eslint/no-var-requires */
3
- // const execa = require('execa');
4
3
  const { generateToc } = require("./build-helper");
5
4
 
6
5
  (async () => {
7
- // const { stdout: pushMsg = '' } = await execa('git', ['push'], { stdio: 'pipe' })
8
- // .catch(error => {
9
- // console.log('error:', error.message);
10
- // });
11
- // try {
12
- // await execa('git', ['push'], { stdio: 'pipe' });
13
- // } catch (error) {
14
- // console.log('error:', error.message);
15
- // const { stdout: currentBranch } = await execa('git', ['branch', '--show-current'], { stdio: 'pipe' });
16
- // console.log('currentBranch:', currentBranch); // currentBranch: fix/rollup_dependences_mon_oct_31st_2022
17
- // await execa('git', ['push', '--set-upstream', 'origin', currentBranch]);
18
- // }
19
- // console.log('pushMsg:', pushMsg);
20
- // const cb = await getGitCurrentBranch('fix returns value');
21
- // console.log('bbb', cb);
22
6
  generateToc();
23
7
  })();
@@ -9,7 +9,7 @@ const execa = require("execa");
9
9
  * Usage:
10
10
  *
11
11
  * ```javascript
12
- * const pkgVersion = process.env.VERSION || require('../package.json').version;
12
+ * const pkgVersion = process.env.VERSION || require("../package.json").version;
13
13
  * release(pkgVersion);
14
14
  * ```
15
15
  *
@@ -58,8 +58,8 @@ async function release (ver, { canGenerateToc = false, defaultBranch = "main" }
58
58
  await gitCommit(releaseVersion);
59
59
  // Push
60
60
  console.log("Pushing to the remote Git...");
61
- // await execa('git', ['tag', '-a', `${releaseVersion}`, '-m', `Release ${releaseVersion}`]);
62
- // await execa('git', ['push', 'origin', `refs/tags/${releaseVersion}`]);
61
+ // await execa("git", ["tag", "-a", `${releaseVersion}`, "-m", `Release ${releaseVersion}`]);
62
+ // await execa("git", ["push", "origin", `refs/tags/${releaseVersion}`]);
63
63
  await gitTagPush(releaseVersion);
64
64
  await gitPush();
65
65
  console.log("All done.");
@@ -70,7 +70,7 @@ async function release (ver, { canGenerateToc = false, defaultBranch = "main" }
70
70
  *
71
71
  * @example
72
72
  * ```
73
- * await gitTagPush('v1.0.0');
73
+ * await gitTagPush("v1.0.0");
74
74
  * ```
75
75
  *
76
76
  * @param {string} ver Release version