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

chore: build standalone once in prepublish step #11777

merged 1 commit into from Jul 30, 2020


Copy link

JLHwung commented Jul 1, 2020

Q                       A
Fixed Issues? Removed duplicate build-standalone step in make publish
License MIT

Currently when make prepublish runs, @babel/standalone will be built twice

  1. make prepublish => make build => make build-standalone
  2. npm run-script prepublishOnly => make prepublish-build-standalone

The first step skips minification while the second one includes it. This PR removes the scripts hook in @babel/standalone and run prepublish-build-standalone when prepublish recipe is executed.

Copy link

codesandbox bot commented Jul 1, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f07ad4b:

Sandbox Source
stupefied-haibt-z7ses Configuration
beautiful-sound-1hcp2 Configuration
Copy link

babel-bot commented Jul 1, 2020

Build successful! You can test your changes in the REPL here:

@JLHwung JLHwung force-pushed the JLHwung:build-minified-standalone-prepublish branch from c92064e to f07ad4b Jul 1, 2020
Copy link
Contributor Author

JLHwung commented Jul 30, 2020

As we can see in that the published @babel/standalone contains both minified and raw versions. This behaviour is not changed.

@JLHwung JLHwung merged commit 0e4cf1e into babel:main Jul 30, 2020
8 of 9 checks passed
8 of 9 checks passed
test262-pr Workflow: test262-pr
Gitpod Open an online workspace in Gitpod
Travis CI - Pull Request Build Passed
babel/repl REPL preview is available
build-standalone Workflow: build-standalone
ci/codesandbox Building packages succeeded.
codecov/project 91.85% (target 90.00%)
e2e Workflow: e2e
@JLHwung JLHwung deleted the JLHwung:build-minified-standalone-prepublish branch Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.