Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno compile's all workspaces in monorepo #27142

Open
xpr0gamers opened this issue Nov 29, 2024 · 0 comments
Open

Deno compile's all workspaces in monorepo #27142

xpr0gamers opened this issue Nov 29, 2024 · 0 comments

Comments

@xpr0gamers
Copy link

Hello,

I have a monorepo with one root "deno.json" that includes:
"workspace": [ "./packages/server", "./packages/installer-updater" ],

For test purpose, in the workspace "installer-updater" i have zero dependencies.
Only one statement console.log('Deno is incredible') in the main file.
Then i build one single executable for the workspace "installer-updater" via:
"deno compile --allow-all --output=./build/installer-updater --node-modules-dir=none ./src/program.ts"

The compiled size of executable is now over 100mb.
Then i remove other workspaces in the root "deno.json" file or with the additon "--no config" in the deno compile statement, everything looks correct.
Is this the desired behaviour?

Version: Deno 2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant