Skip to content

Commit 1436140

Browse files
kuldeepkeshwartannerlinsley
authored andcommitted
Prevent manually updating sizes-*.json (TanStack#58)
* setup size-plugin-bot * update rollup-plugin-size version * add build script to travis config * avoid updating size*.json on local build * Update .travis.yml * add check to write file(sizes*.json) in CI * Update .travis.yml
1 parent 12a3f31 commit 1436140

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default [
1515
sourcemap: true,
1616
},
1717
plugins: [external(), babel(), resolve(), commonjs(),
18-
size({publish:true,exclude:pkg.module,filename:'sizes-cjs.json'}),
18+
size({publish:true,exclude:pkg.module,filename:'sizes-cjs.json',writeFile:process.env.CI?true:false}),
1919
sizeSnapshot()],
2020
},
2121
{
@@ -26,7 +26,7 @@ export default [
2626
sourcemap: true,
2727
},
2828
plugins: [external(), babel(),
29-
size({publish:true,exclude:pkg.main,filename:'sizes-es.json'}),
29+
size({publish:true,exclude:pkg.main,filename:'sizes-es.json',writeFile:process.env.CI?true:false}),
3030
sizeSnapshot()],
3131
},
3232
]

0 commit comments

Comments
 (0)