netlify-cli 12.3.0 → 12.4.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.
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.4.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "12.
|
|
9
|
+
"version": "12.4.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ import prettyjson from 'prettyjson'
|
|
|
12
12
|
|
|
13
13
|
import { cancelDeploy } from '../../lib/api.mjs'
|
|
14
14
|
import { getBuildOptions, runBuild } from '../../lib/build.mjs'
|
|
15
|
+
import { featureFlags as edgeFunctionsFeatureFlags } from '../../lib/edge-functions/consts.mjs'
|
|
15
16
|
import { normalizeFunctionsConfig } from '../../lib/functions/config.mjs'
|
|
16
17
|
import { getLogMessage } from '../../lib/log.mjs'
|
|
17
18
|
import { startSpinner, stopSpinner } from '../../lib/spinner.cjs'
|
|
@@ -409,9 +410,7 @@ const bundleEdgeFunctions = async (options) => {
|
|
|
409
410
|
const { severityCode, success } = await runCoreSteps(['edge_functions_bundling'], {
|
|
410
411
|
...options,
|
|
411
412
|
buffer: true,
|
|
412
|
-
featureFlags:
|
|
413
|
-
edge_functions_read_deno_config: true,
|
|
414
|
-
},
|
|
413
|
+
featureFlags: edgeFunctionsFeatureFlags,
|
|
415
414
|
})
|
|
416
415
|
|
|
417
416
|
if (!success) {
|
package/src/lib/build.mjs
CHANGED
|
@@ -3,6 +3,8 @@ import process from 'process'
|
|
|
3
3
|
|
|
4
4
|
import build from '@netlify/build'
|
|
5
5
|
|
|
6
|
+
import { featureFlags as edgeFunctionsFeatureFlags } from './edge-functions/consts.mjs'
|
|
7
|
+
|
|
6
8
|
/**
|
|
7
9
|
* The buildConfig + a missing cachedConfig
|
|
8
10
|
* @typedef BuildConfig
|
|
@@ -38,9 +40,8 @@ export const getBuildOptions = ({
|
|
|
38
40
|
offline,
|
|
39
41
|
cwd,
|
|
40
42
|
featureFlags: {
|
|
41
|
-
|
|
43
|
+
...edgeFunctionsFeatureFlags,
|
|
42
44
|
functionsBundlingManifest: true,
|
|
43
|
-
edge_functions_produce_eszip: true,
|
|
44
45
|
project_deploy_configuration_api_use_per_function_configuration_files: true,
|
|
45
46
|
},
|
|
46
47
|
})
|
|
@@ -2,3 +2,10 @@ export const DIST_IMPORT_MAP_PATH = 'edge-functions-import-map.json'
|
|
|
2
2
|
export const INTERNAL_EDGE_FUNCTIONS_FOLDER = 'edge-functions'
|
|
3
3
|
export const EDGE_FUNCTIONS_FOLDER = 'edge-functions-dist'
|
|
4
4
|
export const PUBLIC_URL_PATH = '.netlify/internal/edge-functions'
|
|
5
|
+
|
|
6
|
+
// Feature flags related to Edge Functions that should be passed along to
|
|
7
|
+
// Netlify Build.
|
|
8
|
+
export const featureFlags = {
|
|
9
|
+
edge_functions_config_export: true,
|
|
10
|
+
edge_functions_read_deno_config: true,
|
|
11
|
+
}
|