From e0e98520ec291cfef64fa6b1103478950f558f48 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 18 Aug 2022 22:38:03 +0200 Subject: [PATCH] fix wmill imports for resource and var in deno --- frontend/src/lib/components/EditorBar.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/EditorBar.svelte b/frontend/src/lib/components/EditorBar.svelte index ea4b6b94db..2502c850b8 100644 --- a/frontend/src/lib/components/EditorBar.svelte +++ b/frontend/src/lib/components/EditorBar.svelte @@ -97,7 +97,7 @@ if (lang == 'deno') { if (!editor.getCode().includes('import * as wmill from')) { editor.insertAtBeginning( - `import * as wmill from 'https://deno.land/x/windmill@v${__pkg__.version}/index.ts'\n` + `import * as wmill from 'https://deno.land/x/windmill@v${__pkg__.version}/mod.ts'\n` ) } editor.insertAtCursor(`(await wmill.getVariable('${path}'))`) @@ -136,7 +136,7 @@ if (lang == 'deno') { if (!editor.getCode().includes('import * as wmill from')) { editor.insertAtBeginning( - `import * as wmill from 'https://deno.land/x/windmill@v${__pkg__.version}/index.ts'\n` + `import * as wmill from 'https://deno.land/x/windmill@v${__pkg__.version}/mod.ts'\n` ) } editor.insertAtCursor(`(await wmill.getResource('${path}'))`)