Skip to content

Commit b7b7085

Browse files
committed
feat: use prepack and postpack instead of prepublishOnly and postpublish
1 parent 82657a2 commit b7b7085

File tree

1 file changed

+3
-3
lines changed
  • ts/blueprints/ember-cli-typescript

1 file changed

+3
-3
lines changed

ts/blueprints/ember-cli-typescript/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ module.exports = {
190190

191191
let pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
192192

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

197197
// avoid being placed in devDependencies
198198
if (pkg.devDependencies[ADDON_NAME]) {

0 commit comments

Comments
 (0)