@netlify/zip-it-and-ship-it 5.10.2 → 5.11.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.
@@ -3,11 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFlags = exports.defaultFlags = void 0;
4
4
  const process_1 = require("process");
5
5
  exports.defaultFlags = {
6
- buildGoSource: Boolean(process_1.env.NETLIFY_EXPERIMENTAL_BUILD_GO_SOURCE),
7
6
  buildRustSource: Boolean(process_1.env.NETLIFY_EXPERIMENTAL_BUILD_RUST_SOURCE),
8
7
  parseWithEsbuild: false,
9
8
  traceWithNft: false,
10
- zisi_detect_esm: false,
11
9
  zisi_pure_esm: false,
12
10
  };
13
11
  // List of supported flags and their default value.
@@ -29,14 +29,11 @@ const findFunctionsInPaths = async function ({ featureFlags, fsCache, paths }) {
29
29
  const functions = await Promise.all(paths.map((path) => findFunctionInPath({ featureFlags, fsCache, path })));
30
30
  return functions.filter(non_nullable_js_1.nonNullable);
31
31
  };
32
- const findFunctionInPath = async function ({ featureFlags, fsCache, path }) {
32
+ const findFunctionInPath = async function ({ fsCache, path }) {
33
33
  const runtime = await (0, detect_runtime_js_1.detectBinaryRuntime)({ fsCache, path });
34
34
  if (runtime === 'go') {
35
35
  return processBinary({ fsCache, path });
36
36
  }
37
- if (featureFlags.buildGoSource !== true) {
38
- return;
39
- }
40
37
  const goSourceFile = await detectGoFunction({ fsCache, path });
41
38
  if (goSourceFile) {
42
39
  return processSource({ fsCache, mainFile: goSourceFile, path });
@@ -31,13 +31,8 @@ const getDefaultBundler = async ({ extension, mainFile, featureFlags, }) => {
31
31
  if (featureFlags.traceWithNft) {
32
32
  return 'nft';
33
33
  }
34
- if (featureFlags.zisi_detect_esm) {
35
- const functionIsESM = await (0, detect_es_module_js_1.detectEsModule)({ mainFile });
36
- if (functionIsESM) {
37
- return 'nft';
38
- }
39
- }
40
- return 'zisi';
34
+ const functionIsESM = await (0, detect_es_module_js_1.detectEsModule)({ mainFile });
35
+ return functionIsESM ? 'nft' : 'zisi';
41
36
  };
42
37
  exports.getDefaultBundler = getDefaultBundler;
43
38
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/zip-it-and-ship-it",
3
- "version": "5.10.2",
3
+ "version": "5.11.0",
4
4
  "description": "Zip it and ship it",
5
5
  "main": "./dist/main.js",
6
6
  "bin": {