Skip to content

Warn when --plugins and --file are both given to kolibri-build prod#14102

Draft
nucleogenesis wants to merge 1 commit intolearningequality:release-v0.19.xfrom
nucleogenesis:build--warn-on-ignored-args
Draft

Warn when --plugins and --file are both given to kolibri-build prod#14102
nucleogenesis wants to merge 1 commit intolearningequality:release-v0.19.xfrom
nucleogenesis:build--warn-on-ignored-args

Conversation

@nucleogenesis
Copy link
Member

they're mutually exclusive, --plugins will be ignored. This also introduces a build-base script to package.json which can be used to run the base build with no flags at all

Summary

  • Adds build-base script to package.json that only calls the prod command w/ --transpile
  • Uses that command in build - then passes the default file.
  • Adds a warning to the production build command when both args are given.

References

I ran into this trying to do pnpm run build --plugins kolibri.plugins.coach and didn't realize until @rtibbles noticed that it was because the --file ... arg is hard-coded into the package.json script for build.

Reviewer guidance

I just kind of did what I wanted here so this is a non-urgent request for feedback.

Does this API make sense - should we avoid the package.json script or approach it another way?

What about the error message w/ regard to the updated command.

Would we run into similar problems by hard-coding --transpile into the build-base?

they're mutually exclusive, --plugins will be ignored. This also
introduces a build-base script to package.json which can be used to run
the base build with no flags at all
@nucleogenesis nucleogenesis added the DEV: tools Internal tooling for development label Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DEV: tools Internal tooling for development SIZE: very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants