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

[rush] Running rush rebuild to run rollup -c causes a warning tip. #4824

Open
zhangxuan615 opened this issue Jul 5, 2024 · 0 comments
Open

Comments

@zhangxuan615
Copy link

zhangxuan615 commented Jul 5, 2024

Summary

The console always prints a warning tip(SUCCESS WITH WARNINGS...) if a sub-package has a build command: rollup -c, when I run rush rebuild in the root directory.
What's even weirder is that it just says there's a warning, but it doesn't provide any details about the warning.

If I run directly the command (rollup -c) in the sub-package directory, no warning will be printed.

So, from my opinion, I just think there is incompatibility in rush and rollup.

Repro steps

  1. create a sub-package.
  2. install rollup in this sub-package.
  3. create a source file "./src/index.js".
    export const a = 1; console.log("test:", a)
  4. create a config file for rollup: rollup.config.js:
    module.exports = { input: "src/index.js" }
  5. add a script command in package.json: "build": "rollup -c".
  6. run run rebuild in the root directory.

Details

image

@zhangxuan615 zhangxuan615 changed the title [rush] Running rush rebuild to run rollup -c cause a warning tip. [rush] Running rush rebuild to run rollup -c causes a warning tip. Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant