@netlify/edge-bundler 1.12.0 → 1.12.1
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/dist/bridge.js +3 -0
- package/package.json +2 -1
package/dist/bridge.js
CHANGED
|
@@ -2,6 +2,7 @@ import { promises as fs } from 'fs';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import process from 'process';
|
|
4
4
|
import { execa } from 'execa';
|
|
5
|
+
import pathKey from 'path-key';
|
|
5
6
|
import semver from 'semver';
|
|
6
7
|
import { download } from './downloader.js';
|
|
7
8
|
import { getPathInHome } from './home_path.js';
|
|
@@ -121,6 +122,8 @@ class DenoBridge {
|
|
|
121
122
|
if (this.denoDir !== undefined) {
|
|
122
123
|
env.DENO_DIR = this.denoDir;
|
|
123
124
|
}
|
|
125
|
+
// Ensure PATH is always set as otherwise we are not able to find the global deno binary
|
|
126
|
+
env[pathKey()] = inputEnv[pathKey({ env: inputEnv })] || process.env[pathKey()];
|
|
124
127
|
return env;
|
|
125
128
|
}
|
|
126
129
|
// Runs the Deno CLI in the background and returns a reference to the child
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/edge-bundler",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Intelligently prepare Netlify Edge Functions for deployment",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"node-fetch": "^3.1.1",
|
|
88
88
|
"node-stream-zip": "^1.15.0",
|
|
89
89
|
"p-wait-for": "^4.1.0",
|
|
90
|
+
"path-key": "^4.0.0",
|
|
90
91
|
"semver": "^7.3.5",
|
|
91
92
|
"tmp-promise": "^3.0.3",
|
|
92
93
|
"uuid": "^8.3.2"
|