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:
Asher Gomez
2023-06-03 10:46:40 +02:00
committed by GitHub
co-authored by Luca Casonato
parent 3857a49f1c
commit 1b6678951a
34 changed files with 149 additions and 197 deletions
+3 -5
View File
@@ -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.