From 3a94a8f9d2afdaf28c099c4978af645b9f081426 Mon Sep 17 00:00:00 2001 From: Taro Matsuzawa Date: Mon, 17 Feb 2020 12:36:18 +0900 Subject: [PATCH] add option to pass npm publish --- publish.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/publish.js b/publish.js index a775e8e..663cab0 100644 --- a/publish.js +++ b/publish.js @@ -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