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

Bug: npm postinstall script of workspace member never run #25416

Open
marvinhagemeister opened this issue Sep 4, 2024 · 0 comments
Open

Bug: npm postinstall script of workspace member never run #25416

marvinhagemeister opened this issue Sep 4, 2024 · 0 comments
Labels
bug Something isn't working correctly node compat workspaces

Comments

@marvinhagemeister
Copy link
Contributor

If a workspace member has a package.json with a postinstall script, it will never be executed.

Steps to reproduce

  1. Run mkdir foo
  2. Add a foo/package.json with these contents:
{
  "scripts": {
    "postinstall": "echo 'postinstall'"
  },
  "dependencies": {
    "preact": "^10.23.2"
  }
}
  1. Add a deno.json at the root with these contents:
{
  "workspace": ["./foo"]
}
  1. Run deno install --allow-scripts

The postinstall script is never executed.

Version: Deno 2.0.0-rc.0+ce6b675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat workspaces
Projects
None yet
Development

No branches or pull requests

1 participant