feat: support embedded import map in deno.json (#1188)
One can now inline the `imports` and `scopes` from the import map directly into deno.json. For new projects, `import_map.json` is not generated anymore. Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
co-authored by
Luca Casonato
parent
3857a49f1c
commit
1b6678951a
@@ -30,15 +30,13 @@ files that are strictly necessary to run a fresh project:
|
||||
- **`fresh.gen.ts`**: This is the manifest file that contains information about
|
||||
your routes and islands. This file is automatically generated in development
|
||||
based on your `routes/` and `islands/` folders.
|
||||
- **`import_map.json`**: This is an [import map][import-map] that is used to
|
||||
manage dependencies for the project. This allows for easy importing and
|
||||
updating of dependencies.
|
||||
|
||||
A **`deno.json`** file is also created in the project directory. This file does
|
||||
two things:
|
||||
|
||||
- It tells Deno about the location of the import map, so that it can be loaded
|
||||
automatically.
|
||||
- It defines the "imports" field. This is an [import map][import-map] that is
|
||||
used to manage dependencies for the project. This allows for easy importing
|
||||
and updating of dependencies.
|
||||
- It registers a "start" [task][task-runner] to run the project without having
|
||||
to type a long `deno run` command.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user