From 038cbfa8a553222544122eb742a64a0bd35bef88 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 3 Nov 2022 01:03:08 +0100 Subject: [PATCH] update deno example with npm qualifier --- frontend/src/lib/script_helpers.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/script_helpers.ts b/frontend/src/lib/script_helpers.ts index 33729cafcd..af2ea32fbd 100644 --- a/frontend/src/lib/script_helpers.ts +++ b/frontend/src/lib/script_helpers.ts @@ -39,8 +39,9 @@ def main(no_default: str, ` export const DENO_INIT_CODE = `// reload the smart assistant on the top right if it dies to get autocompletion and syntax highlighting // (Ctrl+space to cache dependencies on imports hover). -// to import most npm packages without deno.land, use esm: -// import { toWords } from "https://esm.sh/number-to-words" + +// you can use npm imports directly! +// import { toWords } from "npm:number-to-words@1" // import * as wmill from "https://deno.land/x/windmill@v${__pkg__.version}/mod.ts" export async function main(