@@ -2,26 +2,25 @@ const fs = require('fs');
22
33const VERSION = process . env . VERSION ;
44
5- console . log ( " Bumping to " + VERSION ) ;
5+ console . log ( ' Bumping to ' + VERSION ) ;
66
77function withJsonFile ( name , callback ) {
8- const text = fs . readFileSync ( name ) ;
9- const json = JSON . parse ( text ) ;
10- callback ( json )
11- fs . writeFileSync ( name , JSON . stringify ( json , null , " " ) )
8+ const text = fs . readFileSync ( name ) ;
9+ const json = JSON . parse ( text ) ;
10+ callback ( json ) ;
11+ fs . writeFileSync ( name , JSON . stringify ( json , null , ' ' ) ) ;
1212}
1313
14- withJsonFile ( " ./core/package.json" , j => {
15- j . version = VERSION ;
14+ withJsonFile ( ' ./core/package.json' , ( j ) => {
15+ j . version = VERSION ;
1616} ) ;
1717
18- withJsonFile ( " ./tea-cup/package.json" , j => {
19- j . version = VERSION ;
20- j . peerDependencies [ 'tea-cup-core' ] = '^' + VERSION ;
18+ withJsonFile ( ' ./tea-cup/package.json' , ( j ) => {
19+ j . version = VERSION ;
20+ j . peerDependencies [ 'tea-cup-core' ] = VERSION ;
2121} ) ;
2222
23- withJsonFile ( './samples/package.json' , j => {
24- j . dependencies [ 'tea-cup-core' ] = VERSION ;
25- j . dependencies [ 'react-tea-cup' ] = VERSION ;
23+ withJsonFile ( './samples/package.json' , ( j ) => {
24+ j . dependencies [ 'tea-cup-core' ] = VERSION ;
25+ j . dependencies [ 'react-tea-cup' ] = VERSION ;
2626} ) ;
27-
0 commit comments