netlify-cli 8.10.1 → 8.12.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,23 +1,23 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "8.10.1",
3
+ "version": "8.12.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "8.10.1",
9
+ "version": "8.12.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@netlify/build": "^26.1.7",
13
+ "@netlify/build": "^26.2.0",
14
14
  "@netlify/config": "^17.0.3",
15
- "@netlify/framework-info": "^8.0.2",
15
+ "@netlify/framework-info": "^9.0.0",
16
16
  "@netlify/local-functions-proxy": "^1.1.1",
17
17
  "@netlify/plugin-edge-handlers": "^3.0.4",
18
- "@netlify/plugins-list": "^6.3.0",
18
+ "@netlify/plugins-list": "^6.3.1",
19
19
  "@netlify/routing-local-proxy": "^0.34.1",
20
- "@netlify/zip-it-and-ship-it": "^5.4.1",
20
+ "@netlify/zip-it-and-ship-it": "^5.5.0",
21
21
  "@octokit/rest": "^18.0.0",
22
22
  "@sindresorhus/slugify": "^1.1.0",
23
23
  "ansi-escapes": "^5.0.0",
@@ -120,7 +120,7 @@
120
120
  },
121
121
  "devDependencies": {
122
122
  "@babel/preset-react": "^7.12.13",
123
- "@netlify/eslint-config-node": "^4.1.5",
123
+ "@netlify/eslint-config-node": "^4.1.6",
124
124
  "ava": "^3.15.0",
125
125
  "c8": "^7.11.0",
126
126
  "eslint-plugin-sort-destructure-keys": "^1.3.5",
@@ -2387,9 +2387,9 @@
2387
2387
  }
2388
2388
  },
2389
2389
  "node_modules/@netlify/build": {
2390
- "version": "26.1.7",
2391
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.1.7.tgz",
2392
- "integrity": "sha512-WZiXVp3doX+Ryd0M/MfBtDwMZjGZImD12mSkWQ7bSZTTFuLwBUfQCRraSB17iBavRHJk6xb/1RaMKFFwPRjsmw==",
2390
+ "version": "26.2.0",
2391
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.2.0.tgz",
2392
+ "integrity": "sha512-2yNzdO0nCRIZ5TLB7WUlis2NTSonVjairWnd1s/Tt9SBF3L3Z+IU/xSiXgAwYZ/xe+tkziUltwrx9l8rxm2VGw==",
2393
2393
  "dependencies": {
2394
2394
  "@bugsnag/js": "^7.0.0",
2395
2395
  "@netlify/cache-utils": "^4.0.0",
@@ -2399,7 +2399,7 @@
2399
2399
  "@netlify/plugin-edge-handlers": "^3.0.4",
2400
2400
  "@netlify/plugins-list": "^6.3.0",
2401
2401
  "@netlify/run-utils": "^4.0.0",
2402
- "@netlify/zip-it-and-ship-it": "^5.4.1",
2402
+ "@netlify/zip-it-and-ship-it": "^5.5.0",
2403
2403
  "@sindresorhus/slugify": "^1.1.0",
2404
2404
  "@types/node": "^16.0.0",
2405
2405
  "ansi-escapes": "^4.3.2",
@@ -2756,9 +2756,9 @@
2756
2756
  }
2757
2757
  },
2758
2758
  "node_modules/@netlify/eslint-config-node": {
2759
- "version": "4.1.5",
2760
- "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.1.5.tgz",
2761
- "integrity": "sha512-mbac2/oOK2wVnabBL9yTz+B2NiA0lz9PqnBelBywT/Rb7dGCmMFWFfB7n37izEd/+fezCPmJvk8RPQ+mvX9Z1Q==",
2759
+ "version": "4.1.6",
2760
+ "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.1.6.tgz",
2761
+ "integrity": "sha512-G/6bqpeR8jQj1cbEjFg8sdc23Wq4TUz/fD+XFup0EYEJbUnjriClsljgMUSnmnBNllyMy36T9YEXkam4HUKtJA==",
2762
2762
  "dev": true,
2763
2763
  "dependencies": {
2764
2764
  "@babel/core": "^7.13.8",
@@ -2802,9 +2802,9 @@
2802
2802
  }
2803
2803
  },
2804
2804
  "node_modules/@netlify/framework-info": {
2805
- "version": "8.0.2",
2806
- "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-8.0.2.tgz",
2807
- "integrity": "sha512-lRI4On9XVEuAtwOGtUEbljAUhyR8SLBHKxVYJ6SQ7TM8XGEZkPB23/2q7OktGTMK+qqK/QS1DohuahNFw8+pqQ==",
2805
+ "version": "9.0.0",
2806
+ "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-9.0.0.tgz",
2807
+ "integrity": "sha512-I4TzDRKmFaagcLCwmFeSr5tPsfT/fxBBaPpDv192fb468R4WbI0TVfTAqlTGJEmc6cHllXpgbVNCRvpeJAP7Fw==",
2808
2808
  "dependencies": {
2809
2809
  "ajv": "^8.0.0",
2810
2810
  "filter-obj": "^2.0.1",
@@ -3100,9 +3100,9 @@
3100
3100
  }
3101
3101
  },
3102
3102
  "node_modules/@netlify/plugins-list": {
3103
- "version": "6.3.0",
3104
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.0.tgz",
3105
- "integrity": "sha512-z6zoaQ/yNj4WMck8G2sWCKUaBkbsStWVpMwQjltWCw9ZhCjRVHF4101Meon9tptyA23gxi8HbzZqgP+WVHPdFg==",
3103
+ "version": "6.3.1",
3104
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.1.tgz",
3105
+ "integrity": "sha512-6yAYBSELlg3oROgrFt1OCa5QwhINfkoBM2rv2Bpo7T5guwsCsEw7vI/O6nMLNDs6wGUyN43cjv2HTxaJBM/i4A==",
3106
3106
  "engines": {
3107
3107
  "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
3108
3108
  }
@@ -3178,9 +3178,9 @@
3178
3178
  }
3179
3179
  },
3180
3180
  "node_modules/@netlify/zip-it-and-ship-it": {
3181
- "version": "5.4.1",
3182
- "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-5.4.1.tgz",
3183
- "integrity": "sha512-ArusY1DrK+neNs1EF8vHbBHCBP4PI9fFVQxH1Zcuz0rvF9Q1vCiG2g8nL6JsJTW4eUibvy96BGD22egOvxpxtA==",
3181
+ "version": "5.5.0",
3182
+ "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-5.5.0.tgz",
3183
+ "integrity": "sha512-V7hVGr8xwdiPF7kmH+TSvekorjFI/OTYe34dlEvEmPhEuDG3LejRjy2XzQ0hW5TpFXvd4V+JRPH4jMh85Xt6qg==",
3184
3184
  "dependencies": {
3185
3185
  "@babel/parser": "^7.15.7",
3186
3186
  "@netlify/esbuild": "^0.13.6",
@@ -23709,9 +23709,9 @@
23709
23709
  }
23710
23710
  },
23711
23711
  "@netlify/build": {
23712
- "version": "26.1.7",
23713
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.1.7.tgz",
23714
- "integrity": "sha512-WZiXVp3doX+Ryd0M/MfBtDwMZjGZImD12mSkWQ7bSZTTFuLwBUfQCRraSB17iBavRHJk6xb/1RaMKFFwPRjsmw==",
23712
+ "version": "26.2.0",
23713
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.2.0.tgz",
23714
+ "integrity": "sha512-2yNzdO0nCRIZ5TLB7WUlis2NTSonVjairWnd1s/Tt9SBF3L3Z+IU/xSiXgAwYZ/xe+tkziUltwrx9l8rxm2VGw==",
23715
23715
  "requires": {
23716
23716
  "@bugsnag/js": "^7.0.0",
23717
23717
  "@netlify/cache-utils": "^4.0.0",
@@ -23721,7 +23721,7 @@
23721
23721
  "@netlify/plugin-edge-handlers": "^3.0.4",
23722
23722
  "@netlify/plugins-list": "^6.3.0",
23723
23723
  "@netlify/run-utils": "^4.0.0",
23724
- "@netlify/zip-it-and-ship-it": "^5.4.1",
23724
+ "@netlify/zip-it-and-ship-it": "^5.5.0",
23725
23725
  "@sindresorhus/slugify": "^1.1.0",
23726
23726
  "@types/node": "^16.0.0",
23727
23727
  "ansi-escapes": "^4.3.2",
@@ -23997,9 +23997,9 @@
23997
23997
  "integrity": "sha512-tiKmDcHM2riSVN79c0mJY/67EBDafXQAMitHuLiCDAMdtz3kfv+NqdVG5krgf5lWR8Uf8AeZrUW5Q9RP25REvw=="
23998
23998
  },
23999
23999
  "@netlify/eslint-config-node": {
24000
- "version": "4.1.5",
24001
- "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.1.5.tgz",
24002
- "integrity": "sha512-mbac2/oOK2wVnabBL9yTz+B2NiA0lz9PqnBelBywT/Rb7dGCmMFWFfB7n37izEd/+fezCPmJvk8RPQ+mvX9Z1Q==",
24000
+ "version": "4.1.6",
24001
+ "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.1.6.tgz",
24002
+ "integrity": "sha512-G/6bqpeR8jQj1cbEjFg8sdc23Wq4TUz/fD+XFup0EYEJbUnjriClsljgMUSnmnBNllyMy36T9YEXkam4HUKtJA==",
24003
24003
  "dev": true,
24004
24004
  "requires": {
24005
24005
  "@babel/core": "^7.13.8",
@@ -24035,9 +24035,9 @@
24035
24035
  }
24036
24036
  },
24037
24037
  "@netlify/framework-info": {
24038
- "version": "8.0.2",
24039
- "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-8.0.2.tgz",
24040
- "integrity": "sha512-lRI4On9XVEuAtwOGtUEbljAUhyR8SLBHKxVYJ6SQ7TM8XGEZkPB23/2q7OktGTMK+qqK/QS1DohuahNFw8+pqQ==",
24038
+ "version": "9.0.0",
24039
+ "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-9.0.0.tgz",
24040
+ "integrity": "sha512-I4TzDRKmFaagcLCwmFeSr5tPsfT/fxBBaPpDv192fb468R4WbI0TVfTAqlTGJEmc6cHllXpgbVNCRvpeJAP7Fw==",
24041
24041
  "requires": {
24042
24042
  "ajv": "^8.0.0",
24043
24043
  "filter-obj": "^2.0.1",
@@ -24208,9 +24208,9 @@
24208
24208
  }
24209
24209
  },
24210
24210
  "@netlify/plugins-list": {
24211
- "version": "6.3.0",
24212
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.0.tgz",
24213
- "integrity": "sha512-z6zoaQ/yNj4WMck8G2sWCKUaBkbsStWVpMwQjltWCw9ZhCjRVHF4101Meon9tptyA23gxi8HbzZqgP+WVHPdFg=="
24211
+ "version": "6.3.1",
24212
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.1.tgz",
24213
+ "integrity": "sha512-6yAYBSELlg3oROgrFt1OCa5QwhINfkoBM2rv2Bpo7T5guwsCsEw7vI/O6nMLNDs6wGUyN43cjv2HTxaJBM/i4A=="
24214
24214
  },
24215
24215
  "@netlify/routing-local-proxy": {
24216
24216
  "version": "0.34.1",
@@ -24256,9 +24256,9 @@
24256
24256
  }
24257
24257
  },
24258
24258
  "@netlify/zip-it-and-ship-it": {
24259
- "version": "5.4.1",
24260
- "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-5.4.1.tgz",
24261
- "integrity": "sha512-ArusY1DrK+neNs1EF8vHbBHCBP4PI9fFVQxH1Zcuz0rvF9Q1vCiG2g8nL6JsJTW4eUibvy96BGD22egOvxpxtA==",
24259
+ "version": "5.5.0",
24260
+ "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-5.5.0.tgz",
24261
+ "integrity": "sha512-V7hVGr8xwdiPF7kmH+TSvekorjFI/OTYe34dlEvEmPhEuDG3LejRjy2XzQ0hW5TpFXvd4V+JRPH4jMh85Xt6qg==",
24262
24262
  "requires": {
24263
24263
  "@babel/parser": "^7.15.7",
24264
24264
  "@netlify/esbuild": "^0.13.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "8.10.1",
4
+ "version": "8.12.0",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
@@ -76,14 +76,14 @@
76
76
  "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{js,md,yml,json,html}\" \"*.{js,yml,json,html}\" \".*.{js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!.github/**/*.md\""
77
77
  },
78
78
  "dependencies": {
79
- "@netlify/build": "^26.1.7",
79
+ "@netlify/build": "^26.2.0",
80
80
  "@netlify/config": "^17.0.3",
81
- "@netlify/framework-info": "^8.0.2",
81
+ "@netlify/framework-info": "^9.0.0",
82
82
  "@netlify/local-functions-proxy": "^1.1.1",
83
83
  "@netlify/plugin-edge-handlers": "^3.0.4",
84
- "@netlify/plugins-list": "^6.3.0",
84
+ "@netlify/plugins-list": "^6.3.1",
85
85
  "@netlify/routing-local-proxy": "^0.34.1",
86
- "@netlify/zip-it-and-ship-it": "^5.4.1",
86
+ "@netlify/zip-it-and-ship-it": "^5.5.0",
87
87
  "@octokit/rest": "^18.0.0",
88
88
  "@sindresorhus/slugify": "^1.1.0",
89
89
  "ansi-escapes": "^5.0.0",
@@ -182,7 +182,7 @@
182
182
  },
183
183
  "devDependencies": {
184
184
  "@babel/preset-react": "^7.12.13",
185
- "@netlify/eslint-config-node": "^4.1.5",
185
+ "@netlify/eslint-config-node": "^4.1.6",
186
186
  "ava": "^3.15.0",
187
187
  "c8": "^7.11.0",
188
188
  "eslint-plugin-sort-destructure-keys": "^1.3.5",
@@ -335,7 +335,12 @@ const createDevCommand = (program) => {
335
335
  'specify the path to a local GeoIP location database in MMDB format',
336
336
  ).hideHelp(),
337
337
  )
338
- .addExamples(['netlify dev', 'netlify dev -d public', 'netlify dev -c "hugo server -w" --targetPort 1313'])
338
+ .addExamples([
339
+ 'netlify dev',
340
+ 'netlify dev -d public',
341
+ 'netlify dev -c "hugo server -w" --targetPort 1313',
342
+ 'BROWSER=none netlify dev # disable browser auto opening',
343
+ ])
339
344
  .action(dev)
340
345
  }
341
346
  module.exports = { createDevCommand }
@@ -9,15 +9,15 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@netlify/functions": "^0.10.0",
13
- "@types/node": "^14.18.5",
12
+ "@netlify/functions": "^0.11.0",
13
+ "@types/node": "^14.0.0",
14
14
  "typescript": "^4.0.0"
15
15
  }
16
16
  },
17
17
  "node_modules/@netlify/functions": {
18
- "version": "0.10.0",
19
- "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.10.0.tgz",
20
- "integrity": "sha512-NNFADTPnokuoMY1OUhaXlE/Jrzk5lHOl1uB4L/8pw1UJ/CaectZJACMExijbJnqaKIhOQG0WmbBQUh1lgnK/Qg==",
18
+ "version": "0.11.0",
19
+ "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.11.0.tgz",
20
+ "integrity": "sha512-+WWX081UCkLZYkfh1Ru+PH5HTujNXugeskATGhZLTyS1U3Cqh2gYLArdG1a/vU8WWopu/wjpxEOdWq8/T5Nw5Q==",
21
21
  "dependencies": {
22
22
  "is-promise": "^4.0.0"
23
23
  },
@@ -50,9 +50,9 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@netlify/functions": {
53
- "version": "0.10.0",
54
- "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.10.0.tgz",
55
- "integrity": "sha512-NNFADTPnokuoMY1OUhaXlE/Jrzk5lHOl1uB4L/8pw1UJ/CaectZJACMExijbJnqaKIhOQG0WmbBQUh1lgnK/Qg==",
53
+ "version": "0.11.0",
54
+ "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.11.0.tgz",
55
+ "integrity": "sha512-+WWX081UCkLZYkfh1Ru+PH5HTujNXugeskATGhZLTyS1U3Cqh2gYLArdG1a/vU8WWopu/wjpxEOdWq8/T5Nw5Q==",
56
56
  "requires": {
57
57
  "is-promise": "^4.0.0"
58
58
  }
@@ -14,7 +14,7 @@
14
14
  "author": "Netlify",
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@netlify/functions": "^0.10.0",
17
+ "@netlify/functions": "^0.11.0",
18
18
  "@types/node": "^14.0.0",
19
19
  "typescript": "^4.0.0"
20
20
  }
@@ -13,6 +13,7 @@ const normalizeFunctionsConfig = ({ functionsConfig = {}, projectRoot }) =>
13
13
  nodeBundler: config.node_bundler === 'esbuild' ? 'esbuild_zisi' : config.node_bundler,
14
14
  processDynamicNodeImports: true,
15
15
  schedule: config.schedule,
16
+ zipGo: true,
16
17
  },
17
18
  }),
18
19
  {},
@@ -3,7 +3,7 @@ const { EOL } = require('os')
3
3
  const path = require('path')
4
4
  const process = require('process')
5
5
 
6
- const { getFramework, listFrameworks } = require('@netlify/framework-info')
6
+ const frameworkInfoPromise = import('@netlify/framework-info')
7
7
  const fuzzy = require('fuzzy')
8
8
  const getPort = require('get-port')
9
9
  const isPlainObject = require('is-plain-obj')
@@ -182,6 +182,7 @@ const getSettingsFromFramework = (framework) => {
182
182
  const hasDevCommand = (framework) => Array.isArray(framework.dev.commands) && framework.dev.commands.length !== 0
183
183
 
184
184
  const detectFrameworkSettings = async ({ projectDir }) => {
185
+ const { listFrameworks } = await frameworkInfoPromise
185
186
  const projectFrameworks = await listFrameworks({ projectDir })
186
187
  const frameworks = projectFrameworks.filter((framework) => hasDevCommand(framework))
187
188
 
@@ -276,6 +277,7 @@ const mergeSettings = async ({ devConfig, frameworkSettings = {} }) => {
276
277
  */
277
278
  const handleForcedFramework = async ({ devConfig, projectDir }) => {
278
279
  // this throws if `devConfig.framework` is not a supported framework
280
+ const { getFramework } = await frameworkInfoPromise
279
281
  const frameworkSettings = getSettingsFromFramework(await getFramework(devConfig.framework, { projectDir }))
280
282
  return mergeSettings({ devConfig, frameworkSettings })
281
283
  }
@@ -1,7 +1,8 @@
1
1
  // @ts-check
2
- const { listFrameworks } = require('@netlify/framework-info')
2
+ const frameworkInfoPromise = import('@netlify/framework-info')
3
3
 
4
4
  const getFrameworkInfo = async ({ baseDirectory, nodeVersion }) => {
5
+ const { listFrameworks } = await frameworkInfoPromise
5
6
  const frameworks = await listFrameworks({ projectDir: baseDirectory, nodeVersion })
6
7
  // several frameworks can be detected - first one has highest priority
7
8
  if (frameworks.length !== 0) {