add option to pass npm publish
This commit is contained in:
parent
28dbc78264
commit
3a94a8f9d2
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ fs.writeFileSync('light/package.json', str);
|
|||
fs.renameSync('light/README_light.md', 'light/README.md');
|
||||
fs.renameSync('light/Dockerfile_light', 'light/Dockerfile');
|
||||
|
||||
// for Build tileserver-gl-light docker image, don't publish
|
||||
if (process.argv.length > 2 && process.argv[2] == "--no-publish") {
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
/* PUBLISH */
|
||||
|
||||
// tileserver-gl
|
||||
|
|
Loading…
Reference in a new issue