@netlify/build 27.1.5 → 27.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.3.0",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/core/main.js",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@bugsnag/js": "^7.0.0",
|
|
59
|
-
"@netlify/edge-bundler": "^1.
|
|
59
|
+
"@netlify/edge-bundler": "^1.4.1",
|
|
60
60
|
"@netlify/cache-utils": "^4.0.0",
|
|
61
|
-
"@netlify/config": "^18.0.
|
|
62
|
-
"@netlify/functions-utils": "^4.
|
|
61
|
+
"@netlify/config": "^18.0.2",
|
|
62
|
+
"@netlify/functions-utils": "^4.2.0",
|
|
63
63
|
"@netlify/git-utils": "^4.0.0",
|
|
64
|
-
"@netlify/plugins-list": "^6.
|
|
64
|
+
"@netlify/plugins-list": "^6.29.0",
|
|
65
65
|
"@netlify/run-utils": "^4.0.0",
|
|
66
|
-
"@netlify/zip-it-and-ship-it": "5.
|
|
66
|
+
"@netlify/zip-it-and-ship-it": "5.11.1",
|
|
67
67
|
"@sindresorhus/slugify": "^2.0.0",
|
|
68
68
|
"@types/node": "^16.0.0",
|
|
69
69
|
"ansi-escapes": "^5.0.0",
|
|
@@ -13,11 +13,9 @@ const getFeatureFlag = function (name) {
|
|
|
13
13
|
|
|
14
14
|
// Default values for feature flags
|
|
15
15
|
export const DEFAULT_FEATURE_FLAGS = {
|
|
16
|
-
buildbot_build_go_functions: false,
|
|
17
16
|
buildbot_es_modules_esbuild: false,
|
|
18
17
|
buildbot_zisi_trace_nft: false,
|
|
19
18
|
buildbot_zisi_esbuild_parser: false,
|
|
20
19
|
edge_functions_cache_cli: false,
|
|
21
20
|
edge_functions_produce_eszip: false,
|
|
22
|
-
zisi_parse_isc: false,
|
|
23
21
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { promises as fs } from 'fs'
|
|
1
2
|
import { dirname, join, resolve } from 'path'
|
|
2
3
|
|
|
3
4
|
import { bundle, find } from '@netlify/edge-bundler'
|
|
@@ -41,6 +42,9 @@ const coreStep = async function ({
|
|
|
41
42
|
const cacheDirectory =
|
|
42
43
|
!isRunningLocally && featureFlags.edge_functions_cache_cli ? resolve(buildDir, DENO_CLI_CACHE_DIRECTORY) : undefined
|
|
43
44
|
|
|
45
|
+
// Edge Bundler expects the dist directory to exist.
|
|
46
|
+
await fs.mkdir(distPath, { recursive: true })
|
|
47
|
+
|
|
44
48
|
await bundle(sourcePaths, distPath, declarations, {
|
|
45
49
|
cacheDirectory,
|
|
46
50
|
debug,
|
|
@@ -152,10 +152,10 @@ package = "@netlify/plugin-functions-install-core"
|
|
|
152
152
|
// because `optionalDependencies` can make `import()` fail, but we don't want
|
|
153
153
|
// to error then. However, if the `package.json` is invalid, we fail the build.
|
|
154
154
|
const isPackageJsonError = function (error) {
|
|
155
|
-
return error.message.includes(
|
|
155
|
+
return PACKAGE_JSON_ORIGINAL_MESSAGES.some((msg) => error.message.includes(msg))
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
const
|
|
158
|
+
const PACKAGE_JSON_ORIGINAL_MESSAGES = ['is invalid JSON', 'in JSON at position']
|
|
159
159
|
|
|
160
160
|
const getPackageJsonError = function (error) {
|
|
161
161
|
addErrorInfo(error, { type: 'resolveConfig' })
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export const getZisiFeatureFlags = (featureFlags) => ({
|
|
2
2
|
...featureFlags,
|
|
3
|
-
buildGoSource: featureFlags.buildbot_build_go_functions,
|
|
4
3
|
defaultEsModulesToEsbuild: featureFlags.buildbot_es_modules_esbuild,
|
|
5
|
-
nftTranspile: featureFlags.buildbot_nft_transpile_esm || featureFlags.buildbot_zisi_trace_nft,
|
|
6
|
-
parseISC: featureFlags.zisi_parse_isc,
|
|
7
4
|
parseWithEsbuild: featureFlags.buildbot_zisi_esbuild_parser,
|
|
8
5
|
traceWithNft: featureFlags.buildbot_zisi_trace_nft,
|
|
9
6
|
})
|