@netlify/build 27.1.6 → 27.2.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,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,
|