netlify-cli 8.10.1 → 8.10.2
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.2",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "8.10.
|
|
9
|
+
"version": "8.10.2",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@netlify/build": "^26.1.7",
|
|
14
14
|
"@netlify/config": "^17.0.3",
|
|
15
|
-
"@netlify/framework-info": "^
|
|
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
18
|
"@netlify/plugins-list": "^6.3.0",
|
|
@@ -2802,9 +2802,9 @@
|
|
|
2802
2802
|
}
|
|
2803
2803
|
},
|
|
2804
2804
|
"node_modules/@netlify/framework-info": {
|
|
2805
|
-
"version": "
|
|
2806
|
-
"resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-
|
|
2807
|
-
"integrity": "sha512-
|
|
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",
|
|
@@ -24035,9 +24035,9 @@
|
|
|
24035
24035
|
}
|
|
24036
24036
|
},
|
|
24037
24037
|
"@netlify/framework-info": {
|
|
24038
|
-
"version": "
|
|
24039
|
-
"resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-
|
|
24040
|
-
"integrity": "sha512-
|
|
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",
|
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.
|
|
4
|
+
"version": "8.10.2",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@netlify/build": "^26.1.7",
|
|
80
80
|
"@netlify/config": "^17.0.3",
|
|
81
|
-
"@netlify/framework-info": "^
|
|
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
84
|
"@netlify/plugins-list": "^6.3.0",
|
|
@@ -3,7 +3,7 @@ const { EOL } = require('os')
|
|
|
3
3
|
const path = require('path')
|
|
4
4
|
const process = require('process')
|
|
5
5
|
|
|
6
|
-
const
|
|
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
|
|
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) {
|