File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ts/blueprints/ember-cli-typescript Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ] ) {
You can’t perform that action at this time.
0 commit comments