From 71bec59820a4342a89e1bb8ef796f18a37ba7d40 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Sat, 14 Jun 2025 17:55:06 +1000 Subject: [PATCH] chore: change `patch` Deno config file option to `links` (#3030) Ref: https://github.com/denoland/deno/pull/29677 --- init/src/init_test.ts | 4 ++-- tests/fixture_precompile/invalid/deno.json | 2 +- tests/fixture_precompile/valid/deno.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init/src/init_test.ts b/init/src/init_test.ts index 3c18b481..5d4f0ab3 100644 --- a/init/src/init_test.ts +++ b/init/src/init_test.ts @@ -36,8 +36,8 @@ async function patchProject(dir: string): Promise { json.workspace = []; // See https://github.com/denoland/deno/issues/27313 - // json.patch = [path.fromFileURL(new URL("../..", import.meta.url))]; - json.patch = [new URL("../..", import.meta.url).href]; + // json.links = [path.fromFileURL(new URL("../..", import.meta.url))]; + json.links = [new URL("../..", import.meta.url).href]; // assert with this stricter rule, before adding it to initialized projects json.lint.rules.include = ["verbatim-module-syntax"]; diff --git a/tests/fixture_precompile/invalid/deno.json b/tests/fixture_precompile/invalid/deno.json index ee4904d8..ec767ce1 100644 --- a/tests/fixture_precompile/invalid/deno.json +++ b/tests/fixture_precompile/invalid/deno.json @@ -1,7 +1,7 @@ { "workspace": [], "lock": false, - "patch": ["../../.."], + "links": ["../../.."], "compilerOptions": { "jsx": "precompile", "jsxImportSource": "preact" diff --git a/tests/fixture_precompile/valid/deno.json b/tests/fixture_precompile/valid/deno.json index 5e71e395..7d3dba79 100644 --- a/tests/fixture_precompile/valid/deno.json +++ b/tests/fixture_precompile/valid/deno.json @@ -1,7 +1,7 @@ { "workspace": [], "lock": false, - "patch": ["../../.."], + "links": ["../../.."], "compilerOptions": { "jsx": "precompile", "jsxImportSource": "preact",