@leverege/build-tools 2.38.0-john.2 → 2.38.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.
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
 
4
+ const fs = require('node:fs');
5
+ const path = require('node:path');
4
6
  const chalk = require('chalk');
5
7
  const cliArgs = require('command-line-args');
6
8
  const cliHelp = require('command-line-usage');
7
- const fs = require('fs');
8
9
  const npmRegistryFetch = require('npm-registry-fetch');
9
- const path = require('path');
10
10
  const semverLt = require('semver/functions/lt');
11
11
 
12
12
  /* eslint-disable no-console */
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // https://github.com/google/zx
3
3
  /* eslint-disable max-len */
4
+ /* eslint-disable no-console */
4
5
  "use strict";
5
6
 
6
7
  var _enquirer = _interopRequireDefault(require("enquirer"));
@@ -9,9 +9,9 @@ const pushItGood = async () => {
9
9
  const pusher = (0, _semver.lt)(version.stdout, '3.7.0') ? 'push' : 'cm-push';
10
10
  try {
11
11
  const museum = await (0, _execa.default)('helm', [pusher, 'helm', 'leverege']);
12
- console.log(museum.stdout);
12
+ console.log(museum.stdout); // eslint-disable-line no-console
13
13
  } catch (ex) {
14
- console.log(ex.stderr);
14
+ console.log(ex.stderr); // eslint-disable-line no-console
15
15
  process.exit(1);
16
16
  }
17
17
  };
@@ -26,7 +26,7 @@ var _semver = require("semver");
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
  // we can't use $ until we upgrade to ESM execa
28
28
  if ((0, _semver.lt)(process.version, '18.0.0')) {
29
- console.log(_chalk.default.red('\n\n***ERROR: must be running at least node 18\n'));
29
+ console.log(_chalk.default.red('\n\n***ERROR: must be running at least node 18\n')); // eslint-disable-line no-console
30
30
  process.exit(1);
31
31
  }
32
32
 
@@ -108,9 +108,11 @@ try {
108
108
  }
109
109
  const now = new Date().toLocaleString();
110
110
  const slackURL = 'https://hooks.slack.com/services/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';
111
+ const execaAct = await (0, _execa.default)('gcloud', ['config', 'get', 'account']);
112
+ const account = execaAct.stdout;
111
113
  const slackData = {
112
114
  // eslint-disable-next-line max-len
113
- text: `--- npmrc refreshed by \`${process.env.USER}\` at ${now}\n tokens RW [\`${npmrc.token}\`] RO [\`${npmrcRo.token}\`]`,
115
+ text: `--- npmrc refreshed by \`${account}\` at ${now}\n tokens RW [\`${npmrc.token}\`] RO [\`${npmrcRo.token}\`]`,
114
116
  channel: '#dev-ops-helm'
115
117
  };
116
118
  if (process.env.REFRESH_NPM_TOKEN_DEBUG) {
@@ -4,12 +4,12 @@
4
4
  /* eslint-disable max-len */
5
5
  "use strict";
6
6
 
7
+ var _nodePath = _interopRequireDefault(require("node:path"));
7
8
  var _commandLineArgs = _interopRequireDefault(require("command-line-args"));
8
9
  var _commandLineUsage = _interopRequireDefault(require("command-line-usage"));
9
10
  var _zx = require("zx");
10
11
  var _enquirer = _interopRequireDefault(require("enquirer"));
11
12
  var _ansiColors = _interopRequireDefault(require("ansi-colors"));
12
- var _path = _interopRequireDefault(require("path"));
13
13
  var _readPkg = require("read-pkg");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
  const {
@@ -117,14 +117,14 @@ const getGitRootDirectory = async () => {
117
117
  return stdout.split('\n')[0];
118
118
  };
119
119
  const getSubDirectories = async (repositoryRoot, directory) => {
120
- const absolutePathDirectory = _path.default.join(repositoryRoot, directory);
121
- const relativeDirectory = _path.default.relative(repositoryRoot, absolutePathDirectory);
120
+ const absolutePathDirectory = _nodePath.default.join(repositoryRoot, directory);
121
+ const relativeDirectory = _nodePath.default.relative(repositoryRoot, absolutePathDirectory);
122
122
  try {
123
123
  const entries = await _zx.fs.promises.readdir(absolutePathDirectory, {
124
124
  withFileTypes: true
125
125
  });
126
126
  const subDirectories = entries.filter(entry => entry.isDirectory());
127
- return subDirectories.map(entry => _path.default.join(relativeDirectory, entry.name));
127
+ return subDirectories.map(entry => _nodePath.default.join(relativeDirectory, entry.name));
128
128
  } catch (err) {
129
129
  return [];
130
130
  }
@@ -145,8 +145,8 @@ const findPackagesInDirectories = async (repositoryRoot, directories) => {
145
145
  const directoriesToSearch = hasWildcard ? await getSubDirectories(repositoryRoot, basePath) : [basePath];
146
146
  for (let i = 0; i < directoriesToSearch.length; i++) {
147
147
  const currentDirectory = directoriesToSearch[i];
148
- const pkgPath = _path.default.join(directoriesToSearch[i], 'package.json');
149
- const pkgExists = await fileExists(_path.default.join(repositoryRoot, pkgPath)); // eslint-disable-line no-await-in-loop
148
+ const pkgPath = _nodePath.default.join(directoriesToSearch[i], 'package.json');
149
+ const pkgExists = await fileExists(_nodePath.default.join(repositoryRoot, pkgPath)); // eslint-disable-line no-await-in-loop
150
150
  if (pkgExists) {
151
151
  acc.push(currentDirectory);
152
152
  }
@@ -165,7 +165,7 @@ const getMonorepoPackagePaths = async (repositoryRoot, packagesPath) => {
165
165
  };
166
166
  const selectPackageToUpdate = async (repositoryRoot, packagePaths) => {
167
167
  const currentPath = process.cwd();
168
- const currentPackageRelativePath = _path.default.relative(repositoryRoot, currentPath);
168
+ const currentPackageRelativePath = _nodePath.default.relative(repositoryRoot, currentPath);
169
169
  const {
170
170
  packageName
171
171
  } = await prompt({
@@ -175,7 +175,7 @@ const selectPackageToUpdate = async (repositoryRoot, packagePaths) => {
175
175
  choices: packagePaths,
176
176
  initial: currentPackageRelativePath
177
177
  });
178
- return _path.default.join(repositoryRoot, packageName);
178
+ return _nodePath.default.join(repositoryRoot, packageName);
179
179
  };
180
180
  const getPackagePath = async ({
181
181
  repositoryRoot,
@@ -543,7 +543,7 @@ ${_ansiColors.default.blue('Branch:')} ${branch}
543
543
  ${_ansiColors.default.blue('Version:')} ${version}
544
544
  ${_ansiColors.default.blue('Root directory:')} ${repositoryRoot}
545
545
  ${_ansiColors.default.blue('Package name:')} ${packageName}
546
- ${_ansiColors.default.blue('package.json path:')} ${_path.default.join(packagePath, 'package.json')}${buildMessage ? `
546
+ ${_ansiColors.default.blue('package.json path:')} ${_nodePath.default.join(packagePath, 'package.json')}${buildMessage ? `
547
547
  ${_ansiColors.default.blue('Commit message:')} ${buildMessage}` : ''}${isBetaRelease || noGitTag ? '' : `
548
548
  ${_ansiColors.default.blue('Git tag:')} ${tagName}`}${isBetaRelease || noGitTag ? '' : `
549
549
  ${_ansiColors.default.blue('Git tag annotation:')} ${annotationMessage}`}${publishable ? `
@@ -640,7 +640,7 @@ config.branch = args.branch || (await getBranch({
640
640
  branchFilter: args['branch-filter']
641
641
  }));
642
642
  await checkoutToBranch(config);
643
- const argsPackagePath = args['package-path'] && _path.default.join(config.repositoryRoot, args['package-path']);
643
+ const argsPackagePath = args['package-path'] && _nodePath.default.join(config.repositoryRoot, args['package-path']);
644
644
  config.packagePath = argsPackagePath || (await getPackagePath(config));
645
645
  config.isPackageInRepositoryRoot = await isPackageInRepositoryRoot(config);
646
646
  config.version = args.version || (await getVersion(config));
@@ -42,7 +42,7 @@ const npmRunner = async script => {
42
42
  if (await isProtected()) {
43
43
  const script = ['test', 'lint'];
44
44
  for (let i = 0; i < script.length; i++) {
45
- await npmRunner(script[i]);
45
+ await npmRunner(script[i]); // eslint-disable-line no-await-in-loop
46
46
  }
47
47
  } else {
48
48
  process.exit(0);
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
 
4
+ const fs = require('node:fs');
5
+ const path = require('node:path');
4
6
  const chalk = require('chalk');
5
7
  const cliArgs = require('command-line-args');
6
8
  const cliHelp = require('command-line-usage');
7
- const fs = require('fs');
8
9
  const npmRegistryFetch = require('npm-registry-fetch');
9
- const path = require('path');
10
10
  const semverLt = require('semver/functions/lt');
11
11
 
12
12
  /* eslint-disable no-console */
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // https://github.com/google/zx
3
3
  /* eslint-disable max-len */
4
+ /* eslint-disable no-console */
4
5
  "use strict";
5
6
 
6
7
  var _enquirer = _interopRequireDefault(require("enquirer"));
@@ -9,9 +9,9 @@ const pushItGood = async () => {
9
9
  const pusher = (0, _semver.lt)(version.stdout, '3.7.0') ? 'push' : 'cm-push';
10
10
  try {
11
11
  const museum = await (0, _execa.default)('helm', [pusher, 'helm', 'leverege']);
12
- console.log(museum.stdout);
12
+ console.log(museum.stdout); // eslint-disable-line no-console
13
13
  } catch (ex) {
14
- console.log(ex.stderr);
14
+ console.log(ex.stderr); // eslint-disable-line no-console
15
15
  process.exit(1);
16
16
  }
17
17
  };
@@ -26,7 +26,7 @@ var _semver = require("semver");
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
  // we can't use $ until we upgrade to ESM execa
28
28
  if ((0, _semver.lt)(process.version, '18.0.0')) {
29
- console.log(_chalk.default.red('\n\n***ERROR: must be running at least node 18\n'));
29
+ console.log(_chalk.default.red('\n\n***ERROR: must be running at least node 18\n')); // eslint-disable-line no-console
30
30
  process.exit(1);
31
31
  }
32
32
 
@@ -108,9 +108,11 @@ try {
108
108
  }
109
109
  const now = new Date().toLocaleString();
110
110
  const slackURL = 'https://hooks.slack.com/services/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';
111
+ const execaAct = await (0, _execa.default)('gcloud', ['config', 'get', 'account']);
112
+ const account = execaAct.stdout;
111
113
  const slackData = {
112
114
  // eslint-disable-next-line max-len
113
- text: `--- npmrc refreshed by \`${process.env.USER}\` at ${now}\n tokens RW [\`${npmrc.token}\`] RO [\`${npmrcRo.token}\`]`,
115
+ text: `--- npmrc refreshed by \`${account}\` at ${now}\n tokens RW [\`${npmrc.token}\`] RO [\`${npmrcRo.token}\`]`,
114
116
  channel: '#dev-ops-helm'
115
117
  };
116
118
  if (process.env.REFRESH_NPM_TOKEN_DEBUG) {
@@ -4,12 +4,12 @@
4
4
  /* eslint-disable max-len */
5
5
  "use strict";
6
6
 
7
+ var _nodePath = _interopRequireDefault(require("node:path"));
7
8
  var _commandLineArgs = _interopRequireDefault(require("command-line-args"));
8
9
  var _commandLineUsage = _interopRequireDefault(require("command-line-usage"));
9
10
  var _zx = require("zx");
10
11
  var _enquirer = _interopRequireDefault(require("enquirer"));
11
12
  var _ansiColors = _interopRequireDefault(require("ansi-colors"));
12
- var _path = _interopRequireDefault(require("path"));
13
13
  var _readPkg = require("read-pkg");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
  const {
@@ -117,14 +117,14 @@ const getGitRootDirectory = async () => {
117
117
  return stdout.split('\n')[0];
118
118
  };
119
119
  const getSubDirectories = async (repositoryRoot, directory) => {
120
- const absolutePathDirectory = _path.default.join(repositoryRoot, directory);
121
- const relativeDirectory = _path.default.relative(repositoryRoot, absolutePathDirectory);
120
+ const absolutePathDirectory = _nodePath.default.join(repositoryRoot, directory);
121
+ const relativeDirectory = _nodePath.default.relative(repositoryRoot, absolutePathDirectory);
122
122
  try {
123
123
  const entries = await _zx.fs.promises.readdir(absolutePathDirectory, {
124
124
  withFileTypes: true
125
125
  });
126
126
  const subDirectories = entries.filter(entry => entry.isDirectory());
127
- return subDirectories.map(entry => _path.default.join(relativeDirectory, entry.name));
127
+ return subDirectories.map(entry => _nodePath.default.join(relativeDirectory, entry.name));
128
128
  } catch (err) {
129
129
  return [];
130
130
  }
@@ -145,8 +145,8 @@ const findPackagesInDirectories = async (repositoryRoot, directories) => {
145
145
  const directoriesToSearch = hasWildcard ? await getSubDirectories(repositoryRoot, basePath) : [basePath];
146
146
  for (let i = 0; i < directoriesToSearch.length; i++) {
147
147
  const currentDirectory = directoriesToSearch[i];
148
- const pkgPath = _path.default.join(directoriesToSearch[i], 'package.json');
149
- const pkgExists = await fileExists(_path.default.join(repositoryRoot, pkgPath)); // eslint-disable-line no-await-in-loop
148
+ const pkgPath = _nodePath.default.join(directoriesToSearch[i], 'package.json');
149
+ const pkgExists = await fileExists(_nodePath.default.join(repositoryRoot, pkgPath)); // eslint-disable-line no-await-in-loop
150
150
  if (pkgExists) {
151
151
  acc.push(currentDirectory);
152
152
  }
@@ -165,7 +165,7 @@ const getMonorepoPackagePaths = async (repositoryRoot, packagesPath) => {
165
165
  };
166
166
  const selectPackageToUpdate = async (repositoryRoot, packagePaths) => {
167
167
  const currentPath = process.cwd();
168
- const currentPackageRelativePath = _path.default.relative(repositoryRoot, currentPath);
168
+ const currentPackageRelativePath = _nodePath.default.relative(repositoryRoot, currentPath);
169
169
  const {
170
170
  packageName
171
171
  } = await prompt({
@@ -175,7 +175,7 @@ const selectPackageToUpdate = async (repositoryRoot, packagePaths) => {
175
175
  choices: packagePaths,
176
176
  initial: currentPackageRelativePath
177
177
  });
178
- return _path.default.join(repositoryRoot, packageName);
178
+ return _nodePath.default.join(repositoryRoot, packageName);
179
179
  };
180
180
  const getPackagePath = async ({
181
181
  repositoryRoot,
@@ -543,7 +543,7 @@ ${_ansiColors.default.blue('Branch:')} ${branch}
543
543
  ${_ansiColors.default.blue('Version:')} ${version}
544
544
  ${_ansiColors.default.blue('Root directory:')} ${repositoryRoot}
545
545
  ${_ansiColors.default.blue('Package name:')} ${packageName}
546
- ${_ansiColors.default.blue('package.json path:')} ${_path.default.join(packagePath, 'package.json')}${buildMessage ? `
546
+ ${_ansiColors.default.blue('package.json path:')} ${_nodePath.default.join(packagePath, 'package.json')}${buildMessage ? `
547
547
  ${_ansiColors.default.blue('Commit message:')} ${buildMessage}` : ''}${isBetaRelease || noGitTag ? '' : `
548
548
  ${_ansiColors.default.blue('Git tag:')} ${tagName}`}${isBetaRelease || noGitTag ? '' : `
549
549
  ${_ansiColors.default.blue('Git tag annotation:')} ${annotationMessage}`}${publishable ? `
@@ -640,7 +640,7 @@ config.branch = args.branch || (await getBranch({
640
640
  branchFilter: args['branch-filter']
641
641
  }));
642
642
  await checkoutToBranch(config);
643
- const argsPackagePath = args['package-path'] && _path.default.join(config.repositoryRoot, args['package-path']);
643
+ const argsPackagePath = args['package-path'] && _nodePath.default.join(config.repositoryRoot, args['package-path']);
644
644
  config.packagePath = argsPackagePath || (await getPackagePath(config));
645
645
  config.isPackageInRepositoryRoot = await isPackageInRepositoryRoot(config);
646
646
  config.version = args.version || (await getVersion(config));
@@ -42,7 +42,7 @@ const npmRunner = async script => {
42
42
  if (await isProtected()) {
43
43
  const script = ['test', 'lint'];
44
44
  for (let i = 0; i < script.length; i++) {
45
- await npmRunner(script[i]);
45
+ await npmRunner(script[i]); // eslint-disable-line no-await-in-loop
46
46
  }
47
47
  } else {
48
48
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.38.0-john.2",
3
+ "version": "2.38.0",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -13,6 +13,7 @@
13
13
  "compile": "npm run clean && npm run compile_server && npm run compile_web",
14
14
  "compile_server": "NODE_ENV=server babel -d lib/server src/",
15
15
  "compile_web": "NODE_ENV=web babel -d lib/web src/",
16
+ "lint": "find ./src -name \\*.\\*js | xargs npx eslint --report-unused-disable-directives",
16
17
  "prepublintOnly": "npm run lint && npm run build",
17
18
  "prepublishOnly": "npm run compile",
18
19
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -66,7 +67,7 @@
66
67
  "js-yaml": "^4.1.0",
67
68
  "npm-registry-fetch": "^13.3.1",
68
69
  "parse-gitignore": "^2.0.0",
69
- "read-pkg": "^8.0.0",
70
+ "read-pkg": "^8.1.0",
70
71
  "readline-sync": "^1.4.10",
71
72
  "semver": "^7.5.4",
72
73
  "simple-git": "^3.19.1",
@@ -74,7 +75,7 @@
74
75
  },
75
76
  "devDependencies": {
76
77
  "@babel/cli": "^7.22.10",
77
- "@babel/core": "^7.22.10",
78
+ "@babel/core": "^7.22.11",
78
79
  "@leverege/babel-preset-leverege-node": "^2.0.0",
79
80
  "@leverege/eslint-config-leverege": "^3.0.1",
80
81
  "npm": "^9.8.1"
package/src/bash-funcs CHANGED
@@ -11,6 +11,8 @@
11
11
  DEVNULL="/dev/null"
12
12
  [ ! -z "$BUILD_TOOLS_DEBUG" ] && DEVNULL="/dev/stdout" && printf "\n***BUILD_TOOLS_DEBUG DEVNULL=>$DEVNULL\n"
13
13
 
14
+ DTS="`date +\"%Y%m%d-%H%M%S\"`"
15
+
14
16
  # Simple ANSI color coded string generator.
15
17
  function color() {
16
18
  local color=
@@ -1,11 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ const fs = require( 'node:fs' )
4
+ const path = require( 'node:path' )
5
+
3
6
  const chalk = require( 'chalk' )
4
7
  const cliArgs = require( 'command-line-args' )
5
8
  const cliHelp = require( 'command-line-usage' )
6
- const fs = require( 'fs' )
7
9
  const npmRegistryFetch = require( 'npm-registry-fetch' )
8
- const path = require( 'path' )
9
10
  const semverLt = require( 'semver/functions/lt' )
10
11
 
11
12
  /* eslint-disable no-console */
@@ -106,7 +107,7 @@ const checkForLatest = async ( pkg = '@leverege/build-tools' ) => {
106
107
 
107
108
  try {
108
109
  const list = await npmRegistryFetch.json(
109
- pkg, { '//registry.npmjs.org/:_authToken': getToken() }
110
+ pkg, { '//registry.npmjs.org/:_authToken' : getToken() }
110
111
  )
111
112
  return list['dist-tags'].latest
112
113
  } catch ( err ) {
@@ -118,7 +119,7 @@ const checkAndAnnounce = () => {
118
119
  checkForLatest()
119
120
  .then( ( latestVersion ) => {
120
121
  if ( semverLt( thisVersion, latestVersion ) ) {
121
- console.log(chalk.white`
122
+ console.log( chalk.white`
122
123
  Update available ${chalk.grey( thisVersion )} \u2b62 ${chalk.green( latestVersion )}
123
124
  Run ${chalk.cyan( 'npm i -g @leverege/build-tools' )} to update
124
125
  `
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // https://github.com/google/zx
3
3
  /* eslint-disable max-len */
4
+ /* eslint-disable no-console */
4
5
  import pkg from 'enquirer'
5
6
  import { $, fs, argv, path, chalk } from 'zx'
6
7
 
package/src/helmup.sh CHANGED
@@ -7,6 +7,9 @@
7
7
 
8
8
  SHELMUP_ARGS=("$*")
9
9
 
10
+ # make sure we have a current npmrc file
11
+ refresh-npm-token
12
+
10
13
  # removed geotile-server from standard platform 3/20/22 - low usage
11
14
  PLATFORM=(
12
15
  authz-server
@@ -9,9 +9,9 @@ const pushItGood = async () => {
9
9
 
10
10
  try {
11
11
  const museum = await execa( 'helm', [ pusher, 'helm', 'leverege' ] )
12
- console.log( museum.stdout )
12
+ console.log( museum.stdout ) // eslint-disable-line no-console
13
13
  } catch ( ex ) {
14
- console.log( ex.stderr )
14
+ console.log( ex.stderr ) // eslint-disable-line no-console
15
15
  process.exit( 1 )
16
16
  }
17
17
  }
@@ -24,8 +24,8 @@ import execa from 'execa' // we can't use $ until we upgrade to ESM execa
24
24
 
25
25
  import { lt as semverLt } from 'semver'
26
26
 
27
- if ( semverLt ( process.version, '18.0.0' ) ) {
28
- console.log( chalk.red( '\n\n***ERROR: must be running at least node 18\n' ) )
27
+ if ( semverLt( process.version, '18.0.0' ) ) {
28
+ console.log( chalk.red( '\n\n***ERROR: must be running at least node 18\n' ) ) // eslint-disable-line no-console
29
29
  process.exit( 1 )
30
30
  }
31
31
 
@@ -107,9 +107,11 @@ try {
107
107
 
108
108
  const now = ( new Date() ).toLocaleString()
109
109
  const slackURL = 'https://hooks.slack.com/services/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'
110
+ const execaAct = await execa( 'gcloud', [ 'config', 'get', 'account', ] )
111
+ const account = execaAct.stdout
110
112
  const slackData = {
111
113
  // eslint-disable-next-line max-len
112
- text : `--- npmrc refreshed by \`${process.env.USER}\` at ${now}\n tokens RW [\`${npmrc.token}\`] RO [\`${npmrcRo.token}\`]`,
114
+ text : `--- npmrc refreshed by \`${account}\` at ${now}\n tokens RW [\`${npmrc.token}\`] RO [\`${npmrcRo.token}\`]`,
113
115
  channel : '#dev-ops-helm',
114
116
  }
115
117
 
@@ -3,12 +3,13 @@
3
3
  /* eslint-disable no-console */
4
4
  /* eslint-disable max-len */
5
5
 
6
+ import path from 'node:path'
7
+
6
8
  import cliArgs from 'command-line-args'
7
9
  import cliHelp from 'command-line-usage'
8
10
  import { $, fs } from 'zx'
9
11
  import pkg from 'enquirer'
10
12
  import colors from 'ansi-colors'
11
- import path from 'path'
12
13
  import { readPackage } from 'read-pkg'
13
14
 
14
15
  const { prompt } = pkg
package/src/unleash.mjs CHANGED
@@ -47,7 +47,7 @@ const npmRunner = async ( script ) => {
47
47
  if ( await isProtected() ) {
48
48
  const script = [ 'test', 'lint' ]
49
49
  for ( let i = 0; i < script.length; i++ ) {
50
- await npmRunner( script[i] )
50
+ await npmRunner( script[i] ) // eslint-disable-line no-await-in-loop
51
51
  }
52
52
  } else {
53
53
  process.exit( 0 )