From 0795f97c546b8a4aeccbc8a8539da98b418aa9f0 Mon Sep 17 00:00:00 2001 From: Reda Bacha Date: Wed, 9 Oct 2024 21:07:55 +0100 Subject: [PATCH] Use new nodeModulesDir option --- integration/helpers/vite-deno-template/deno.jsonc | 8 ++++---- .../fixtures/successful-remix-init-deno/deno.json | 2 +- templates/deno/deno.json | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/integration/helpers/vite-deno-template/deno.jsonc b/integration/helpers/vite-deno-template/deno.jsonc index 547e93f0ece..95a545e0796 100644 --- a/integration/helpers/vite-deno-template/deno.jsonc +++ b/integration/helpers/vite-deno-template/deno.jsonc @@ -1,12 +1,12 @@ { "tasks": { - "build": "deno run -A 'npm:@remix-run/dev@*' vite:build", - "dev": "deno run -A 'npm:@remix-run/dev@*' vite:dev", - "typecheck": "deno check '**/*' && deno run -A npm:typescript@^5.5.4/tsc", + "build": "deno run -A npm:@remix-run/dev vite:build", + "dev": "deno run -A npm:@remix-run/dev vite:dev", + "typecheck": "deno check '**/*' && deno run -A npm:typescript/tsc", "typegen": "deno types > ./app/deno.d.ts" }, "exclude": ["app/", "build/"], - "nodeModulesDir": true, + "nodeModulesDir": "manual", "unstable": ["kv"], "imports": { // These remix packages should be treated like workspace:* dependencies. diff --git a/packages/create-remix/__tests__/fixtures/successful-remix-init-deno/deno.json b/packages/create-remix/__tests__/fixtures/successful-remix-init-deno/deno.json index 8a5b60867ac..8c907180657 100644 --- a/packages/create-remix/__tests__/fixtures/successful-remix-init-deno/deno.json +++ b/packages/create-remix/__tests__/fixtures/successful-remix-init-deno/deno.json @@ -1,5 +1,5 @@ { - "nodeModulesDir": true, + "nodeModulesDir": "manual", "imports": { "is-odd": "npm:is-odd@3.0.1" } diff --git a/templates/deno/deno.json b/templates/deno/deno.json index a0357065139..cde759810cb 100644 --- a/templates/deno/deno.json +++ b/templates/deno/deno.json @@ -1,18 +1,18 @@ { "tasks": { - "build": "deno run -A npm:@remix-run/dev@^2.11.2 vite:build", + "build": "deno run -A npm:@remix-run/dev vite:build", "deploy": "deployctl deploy --prod --include=deno.json,deno.lock,build,server.production.ts --project= ./server.production.ts", - "dev": "deno run -A npm:@remix-run/dev@^2.11.2 vite:dev", - "lint": "deno lint && deno run -A npm:eslint@^8.57.0 --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .", + "dev": "deno run -A npm:@remix-run/dev vite:dev", + "lint": "deno lint && deno run -A npm:eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .", "start": "deno serve -A --parallel ./server.production.ts", - "typecheck": "deno check '**/*' && deno run -A npm:typescript@^5.5.4/tsc", + "typecheck": "deno check '**/*' && deno run -A npm:typescript/tsc", "typegen": "deno types > ./app/deno.d.ts" }, "exclude": [ "app/", "build/" ], - "nodeModulesDir": true, + "nodeModulesDir": "manual", "imports": { "@remix-run/dev": "npm:@remix-run/dev@^2.11.2", "@remix-run/react": "npm:@remix-run/react@^2.11.2",