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

[v4] Use prepack and postpack #1196

Merged
merged 3 commits into from
Jul 2, 2020
Merged

[v4] Use prepack and postpack #1196

merged 3 commits into from
Jul 2, 2020

Conversation

jamescdavis
Copy link
Member

Use prepack and postpack instead of prepublishOnly and postpublish.

As of yarnpkg/yarn#5712 yarn runs prepack and postpack when publishing (npm always did).

@@ -191,8 +191,9 @@ module.exports = {
let pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));

// Really `prepack` and `postpack` would be ideal, but yarn doesn't execute those when publishing
this._addScript(pkg.scripts, 'prepublishOnly', 'ember ts:precompile');
this._addScript(pkg.scripts, 'postpublish', 'ember ts:clean');
// As of https://github.com/yarnpkg/yarn/pull/5712 yarn runs `prepack` and `postpack` when publishing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need the comment on 193 any more? 🙂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, lol, I meant to delete it!

@dfreeman dfreeman linked an issue Jul 2, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use prepack and postpack rather than prepublishOnly and postpublish
3 participants