Skip to content

Commit

Permalink
feat: set nodeModulesDir to auto instead of manual (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
redabacha authored Oct 18, 2024
1 parent 6b231dd commit 1ff651c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,17 @@ For more, check out the [Remix docs](https://remix.run/docs).
```ts
import { useState } from "react";
```
- ✅ You may use inlined URL imports, JSR imports or NPM imports for Deno
modules.
- ✅ You may use inlined URL imports, JSR imports or NPM imports.
```ts
import { copy } from "https://deno.land/std@0.138.0/streams/conversion.ts";
import { pascalCase } from "https://deno.land/x/case/mod.ts";
```
- ✅ You may use Deno and Node built-ins for both Deno modules and server-only
Remix code.
- ✅ You may use Deno and Node built-ins on the server side.
```ts filename=app/entry.server.tsx
Deno.env.get("DENO_DEPLOYMENT_ID");
```
```ts filename=app/entry.server.tsx
import fs from "node:fs";
```
- ✅ You may use
[import maps](https://docs.deno.com/runtime/manual/basics/import_maps) for
Deno modules.
## Development
Expand Down
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"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 --node-modules-dir=auto '**/*'"
"typecheck": "deno check '**/*'"
},
"compilerOptions": {
"lib": ["deno.window", "dom"],
Expand All @@ -14,7 +14,7 @@
"jsxImportSourceTypes": "@types/react"
},
"exclude": ["build/"],
"nodeModulesDir": "manual",
"nodeModulesDir": "auto",
"imports": {
"@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.0",
"@redabacha/eslint-import-resolver-deno": "npm:@redabacha/eslint-import-resolver-deno@^1.0.1",
Expand Down

0 comments on commit 1ff651c

Please sign in to comment.