Skip to content

deno install --prod #26121

@Spioune

Description

@Spioune

I have a npm monorepo:

  • package.json
  • deno.lock
  • apps/sveltekit-front
    • package.json
  • apps/deno-server
    • package.json
  • packages/shared
    • package.json

sveltekit-front only has devDependencies because it is built as a static website
deno-server only has "normal" dependencies, no devDependencies.
sveltekit-front has the shared package in devDependencies
deno-server has the shared package in dependencies

I use docker to deploy both apps.

To create the deno-server docker image:
I copy the root package.json, lockfile, apps/deno-server and packages/shared then I run deno install inside the root directory (I cannot just run deno install inside apps/deno-server because I am in a monorepo, I need the packages/shared symlink)

The problem is that deno install installs all dependencies, even devDependencies that are not needed for production.

Maybe I am missing something.
Thanks

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions