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 = {
190
190
191
191
let pkg = JSON . parse ( fs . readFileSync ( pkgPath , 'utf-8' ) ) ;
192
192
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' ) ;
196
196
197
197
// avoid being placed in devDependencies
198
198
if ( pkg . devDependencies [ ADDON_NAME ] ) {
You can’t perform that action at this time.
0 commit comments