deno
593bb1cf - feat(install): added --prod to skip dev deps and @types (#32863)

Commit
113 days ago
feat(install): added --prod to skip dev deps and @types (#32863) - Added the `--prod` flag to `deno install` that skips `devDependencies` from `package.json`. - Added the `--skip-types` flag to `deno install`, only available with `--prod`. It makes `@types/*` packages skipped as well from both `package.json` and `deno.json` imports. It may be unsafe to use, as only `name.starts_with` is used to skip `@types/` packages, but such packages not guaranteed to have only types actually. - When combined with `--entrypoint`, the module graph is built as "code only" (excludes type-only dependencies). - Conflicts with `--global` and `--dev` flags. ## How to use `deno install --prod --skip-types` `deno install --prod --entrypoint main.ts` Closes #26121
Author
Parents
Loading