From a0eecf9a065eda905eddabaf1007bfc7d0fa1769 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Fri, 20 Oct 2023 18:04:09 +0900 Subject: [PATCH] refactor: use dist file on deno --- scripts/replaceDeps.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/replaceDeps.ts b/scripts/replaceDeps.ts index e4aa724..3cbd02d 100644 --- a/scripts/replaceDeps.ts +++ b/scripts/replaceDeps.ts @@ -35,8 +35,7 @@ async function replaceDenoPlatform(playgroundPath: string) { const denoConfig = JSON.parse(await fs.readFile(denoConfigPath, 'utf-8')) as { imports: Record } - denoConfig['imports']['@intlify/utils'] = '../../src/index.ts' - denoConfig['imports']['cookie-es'] = 'npm:cookie-es@1.0.0' + denoConfig['imports']['@intlify/utils'] = '../../dist/index.mjs' await fs.writeFile(denoConfigPath, JSON.stringify(denoConfig), 'utf-8') return true