diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-11 13:43:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 17:43:46 +0000 |
commit | ba63740e7f390a5778baf01ba156f0b02c55a089 (patch) | |
tree | de095412d474c63ba2c300bbb027e48195e3b51a /tests | |
parent | 4f15aada02450824a0a6e2602dde2fffdd9fd90a (diff) |
chore: `@netlify/edge-bundler` workaround until Deno 2.0 (#24532)
Hack for a few months until Deno 2.0. See code for details
Diffstat (limited to 'tests')
5 files changed, 20 insertions, 0 deletions
diff --git a/tests/specs/run/netlify_edge_bundler_hack/__test__.jsonc b/tests/specs/run/netlify_edge_bundler_hack/__test__.jsonc new file mode 100644 index 000000000..4ae0ebe86 --- /dev/null +++ b/tests/specs/run/netlify_edge_bundler_hack/__test__.jsonc @@ -0,0 +1,9 @@ +{ + "args": [ + "run", + "--allow-read", + "--allow-write", + "node_modules/@netlify/edge-bundler/deno/config.ts" + ], + "output": "main.out" +} diff --git a/tests/specs/run/netlify_edge_bundler_hack/main.out b/tests/specs/run/netlify_edge_bundler_hack/main.out new file mode 100644 index 000000000..35821117c --- /dev/null +++ b/tests/specs/run/netlify_edge_bundler_hack/main.out @@ -0,0 +1 @@ +Success diff --git a/tests/specs/run/netlify_edge_bundler_hack/node_modules/@netlify/edge-bundler/deno/config.ts b/tests/specs/run/netlify_edge_bundler_hack/node_modules/@netlify/edge-bundler/deno/config.ts new file mode 100644 index 000000000..f1b207f5b --- /dev/null +++ b/tests/specs/run/netlify_edge_bundler_hack/node_modules/@netlify/edge-bundler/deno/config.ts @@ -0,0 +1 @@ +console.log("Success"); diff --git a/tests/specs/run/netlify_edge_bundler_hack/node_modules/@netlify/edge-bundler/package.json b/tests/specs/run/netlify_edge_bundler_hack/node_modules/@netlify/edge-bundler/package.json new file mode 100644 index 000000000..d6043710f --- /dev/null +++ b/tests/specs/run/netlify_edge_bundler_hack/node_modules/@netlify/edge-bundler/package.json @@ -0,0 +1,5 @@ +{ + "name": "@netlify/edge-bundler", + "version": "1.0.0", + "exports": "./index.js", +}
\ No newline at end of file diff --git a/tests/specs/run/netlify_edge_bundler_hack/package.json b/tests/specs/run/netlify_edge_bundler_hack/package.json new file mode 100644 index 000000000..bd0ecbc6e --- /dev/null +++ b/tests/specs/run/netlify_edge_bundler_hack/package.json @@ -0,0 +1,4 @@ +{ + "name": "my-package", + "version": "1.0.0" +} |