forked from pool/local-npm-registry
localhost npm proxy so we can build programs that need npm in OBS OBS-URL: https://build.opensuse.org/request/show/867549 OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/local-npm-registry?expand=0&rev=1
18 lines
676 B
Diff
18 lines
676 B
Diff
Index: local_npm_registry-v0.0.1/dist/index.js
|
|
===================================================================
|
|
--- local_npm_registry-v0.0.1.orig/dist/index.js
|
|
+++ local_npm_registry-v0.0.1/dist/index.js
|
|
@@ -96,7 +96,11 @@ function mainEntryFunction() {
|
|
.then(port => configureNpmToSpecificLocalhostPort(service, port))
|
|
.then(() => runNpmInstall())
|
|
.then(() => {
|
|
- console.log("npm done. Shutting down proxy");
|
|
+ console.log("npm done");
|
|
+ }).catch(err => {
|
|
+ console.log("npm errors: %s", err);
|
|
+ }).finally(() => {
|
|
+ console.log("Shutting down proxy");
|
|
return service.stop();
|
|
});
|
|
return 0;
|