File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 1414 "scripts" : {
1515 "build" : " node ./tools/build.js" ,
1616 "clean" : " git clean -fdX ." ,
17- "prepublish " : " node ./tools/build.js" ,
17+ "prepublishOnly " : " node ./tools/build.js" ,
1818 "release" : " node ./tools/release.js" ,
1919 "lint" : " eslint modules" ,
2020 "test" : " jest"
3939 "eslint-plugin-jest" : " ^20.0.3" ,
4040 "eslint-plugin-react" : " ^6.0.0" ,
4141 "gzip-size" : " ^3.0.0" ,
42- "in-publish" : " ^2.0.0" ,
4342 "jest" : " ^20.0.4" ,
4443 "pretty-bytes" : " ^4.0.2" ,
4544 "react" : " ^15.4.1 || ^0.14.7" ,
Original file line number Diff line number Diff line change 11const fs = require ( 'fs' )
22const execSync = require ( 'child_process' ) . execSync
3- const inInstall = require ( 'in-publish' ) . inInstall
43const prettyBytes = require ( 'pretty-bytes' )
54const gzipSize = require ( 'gzip-size' )
65
7- if ( inInstall ( ) )
8- process . exit ( 0 )
9-
106const exec = ( command , extraEnv ) =>
117 execSync ( command , {
128 stdio : 'inherit' ,
You can’t perform that action at this time.
0 commit comments