netlify-cli 9.0.4 → 9.0.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/bin/run CHANGED
@@ -25,5 +25,10 @@ if (require.main === module) {
25
25
  const program = createMainCommand()
26
26
 
27
27
  // eslint-disable-next-line promise/prefer-await-to-then
28
- program.parseAsync(process.argv).catch((error_) => program.onEnd(error_))
28
+ program
29
+ .parseAsync(process.argv)
30
+ .then(() => {
31
+ program.onEnd()
32
+ })
33
+ .catch((error_) => program.onEnd(error_))
29
34
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "9.0.4",
3
+ "version": "9.0.5",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "9.0.4",
9
+ "version": "9.0.5",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "9.0.4",
4
+ "version": "9.0.5",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Abraham Schilling <AbrahamSchilling@gmail.com> (https://gitlab.com/n4bb12)",
@@ -195,7 +195,7 @@
195
195
  },
196
196
  "config": {
197
197
  "eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{src,scripts,site,tests,.github}/**/*.{mjs,cjs,js,md,html}\" \"*.{mjs,cjs,js,md,html}\" \".*.{mjs,cjs,js,md,html}\"",
198
- "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{mjs,cjs,js,md,yml,json,html}\" \"*.{mjs,cjs,js,yml,json,html}\" \".*.{mjs,cjs,js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!.github/**/*.md\""
198
+ "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{mjs,cjs,js,md,yml,json,html}\" \"*.{mjs,cjs,js,yml,json,html}\" \".*.{mjs,cjs,js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!site/package-lock.json\" \"!.github/**/*.md\""
199
199
  },
200
200
  "dependencies": {
201
201
  "@netlify/build": "^26.2.6",
@@ -300,13 +300,14 @@ class BaseCommand extends Command {
300
300
  const duration = getDuration(startTime)
301
301
  const status = error_ === undefined ? 'success' : 'error'
302
302
 
303
- debug(`${this.name()}:onEnd`)(`Status: ${status}`)
304
- debug(`${this.name()}:onEnd`)(`Duration: ${duration}ms`)
303
+ const command = Array.isArray(this.args) ? this.args[0] : this.name()
304
+
305
+ debug(`${this.name()}:onEnd`)(`Command: ${command}. Status: ${status}. Duration: ${duration}ms`)
305
306
 
306
307
  try {
307
308
  await track('command', {
308
309
  ...payload,
309
- command: this.name(),
310
+ command,
310
311
  duration,
311
312
  status,
312
313
  })