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

Use plain js to do the pre/postpublish for the polyfill #3694

Merged
merged 2 commits into from
Sep 13, 2016
Merged

Conversation

danez
Copy link
Member

@danez danez commented Sep 1, 2016

We only use shelljs for these two scripts, so it is not really necessary I think.

@danez danez added the PR: Internal 🏠 A type of pull request used for our changelog categories label Sep 1, 2016
@codecov-io
Copy link

codecov-io commented Sep 2, 2016

Current coverage is 88.32% (diff: 100%)

Merging #3694 into master will not change coverage

@@             master      #3694   diff @@
==========================================
  Files           194        194          
  Lines         13611      13611          
  Methods        1427       1427          
  Messages          0          0          
  Branches       3142       3142          
==========================================
  Hits          12022      12022          
  Misses         1589       1589          
  Partials          0          0          

Powered by Codecov. Last update 2664c16...56eb8d2

@hzoo
Copy link
Member

hzoo commented Sep 13, 2016

Actually I'm not even sure where that gets run? https://github.com/babel/babel/blob/master/Makefile#L12 just calls the other script

Also it doesn't seem like we clear it correctly.

@danez
Copy link
Member Author

danez commented Sep 13, 2016

I'm not entirely sure if it is working, but I think lerna is calling it: https://github.com/lerna/lerna/blob/1cd6366f60e6a7f180b5490c9c5b1b6688bc9e66/src/commands/PublishCommand.js#L343

@danez
Copy link
Member Author

danez commented Sep 13, 2016

What do you mean with "we don't clear it correctly"?

@hzoo
Copy link
Member

hzoo commented Sep 13, 2016

Ok I thought we remove rm -rf dist/polyfill.js as well in the clean task

rm -rf packages/babel-polyfill/dist in clean: test-clean?

@danez
Copy link
Member Author

danez commented Sep 13, 2016

Ah okay, I'm not sure if we should do that on postpublish in babel-polyfill...
make clean seems to be a good place for that yes.

@hzoo hzoo merged commit de975b9 into master Sep 13, 2016
@hzoo hzoo deleted the remove-shelljs branch September 13, 2016 13:09
panagosg7 pushed a commit to panagosg7/babel that referenced this pull request Jan 17, 2017
* Use plain js to do the pre/postpublish for the polyfill

* remove dist on clean [skip ci]
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants