@vercel/build-utils 2.12.3-canary.41 → 2.12.3-canary.42

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.
@@ -145,8 +145,12 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
145
145
  const locationPrefix = path_1.relative(entry, outputPath);
146
146
  let handlerContent = await fs_extra_1.default.readFile(fsPath, encoding);
147
147
  const importPaths = [
148
- // This is the full entrypoint path, like `./api/test.py`
149
- `./${entrypoint}`,
148
+ // This is the full entrypoint path, like `./api/test.py`. In our tests
149
+ // Python didn't support importing from a parent directory without using different
150
+ // code in the launcher that registers it as a location for modules and then changing
151
+ // the importing syntax, but continuing to import it like before seems to work. If
152
+ // other languages need this, we should consider excluding Python explicitly.
153
+ // `./${entrypoint}`,
150
154
  // This is the entrypoint path without extension, like `api/test`
151
155
  entrypoint.slice(0, -ext.length),
152
156
  ];
package/dist/index.js CHANGED
@@ -32827,8 +32827,12 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
32827
32827
  const locationPrefix = path_1.relative(entry, outputPath);
32828
32828
  let handlerContent = await fs_extra_1.default.readFile(fsPath, encoding);
32829
32829
  const importPaths = [
32830
- // This is the full entrypoint path, like `./api/test.py`
32831
- `./${entrypoint}`,
32830
+ // This is the full entrypoint path, like `./api/test.py`. In our tests
32831
+ // Python didn't support importing from a parent directory without using different
32832
+ // code in the launcher that registers it as a location for modules and then changing
32833
+ // the importing syntax, but continuing to import it like before seems to work. If
32834
+ // other languages need this, we should consider excluding Python explicitly.
32835
+ // `./${entrypoint}`,
32832
32836
  // This is the entrypoint path without extension, like `api/test`
32833
32837
  entrypoint.slice(0, -ext.length),
32834
32838
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "2.12.3-canary.41",
3
+ "version": "2.12.3-canary.42",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -49,5 +49,5 @@
49
49
  "typescript": "4.3.4",
50
50
  "yazl": "2.4.3"
51
51
  },
52
- "gitHead": "35c8fc272905524eeb83268bdc09edb165d3382a"
52
+ "gitHead": "d3ef240f6e01fff3d11d0499c9aaf892968748e3"
53
53
  }