Skip to content

Feature Request: use --prod with auto-install in deno run #33181

@steve02081504

Description

@steve02081504

my repo's docker image size reduce from 110mb to 60mb after I use --prod in deno install, defore --prod I only use npm-lazy-caching in install and run
since it's so powerfull and my repo has havey auto-install usage (it loads parts provide form user and use auto-install to load parts's deps, thats also why clear import cache importent for me), I wanna use --prod in running for further volume reduction
maybe just deno run --prod <file>, or allows us set it in deno.json then deno run -c "./deno.json"
e.g.:

{
	"nodeModulesDir": "auto",
	"lock": false,
	"prod": true,
	"unstable": [
		"npm-lazy-caching"
	]
}

links for how I use auto-install/prod/npm-lazy-caching in my repo:
https://github.com/steve02081504/fount/blob/master/src/server/parts_loader.mjs
https://github.com/steve02081504/fount/blob/master/deno.json
steve02081504/fount@1094d91

ps: my discord got banned so if you talk with me on discord ill never know :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions