forked from pool/local-npm-registry
- update to 1.0.0
* update dependencies * no longer shows paths for tarballs served by the proxy * works with latest nodejs - 0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch: dropped, upstreamed OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/local-npm-registry?expand=0&rev=7
This commit is contained in:
parent
66e437abc7
commit
e310433583
@ -1,36 +0,0 @@
|
||||
From 3ebbc200b9f03dae3e32d2461b77f99db645df02 Mon Sep 17 00:00:00 2001
|
||||
From: Bruno Pitrus <brunopitrus@hotmail.com>
|
||||
Date: Fri, 12 Aug 2022 16:44:59 +0200
|
||||
Subject: [PATCH] Allow the user to provide their own npm command by
|
||||
manipulating PATH.
|
||||
|
||||
This can be useful to eg. run npm using Electron instead of Node.
|
||||
---
|
||||
src/index.ts | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/index.ts b/src/index.ts
|
||||
index ee201f3..0232df4 100644
|
||||
--- a/dist/index.js
|
||||
+++ b/dist/index.js
|
||||
@@ -59,7 +59,7 @@ function setupServerAndGetPort(service:Service, registry:Registry): Promise<numb
|
||||
}
|
||||
function configureNpmToSpecificLocalhostPort(service, port) {
|
||||
return new Promise((accept, reject) => {
|
||||
- child_process_1.spawn("/usr/bin/npm", ['config', 'set', 'registry', service.url.toString()], { stdio: 'inherit' })
|
||||
+ child_process_1.spawn("npm", ['config', 'set', 'registry', service.url.toString()], { stdio: 'inherit' })
|
||||
.on("exit", (code) => {
|
||||
code === 0 ? accept() : reject();
|
||||
});
|
||||
@@ -71,7 +71,7 @@ function runNpmInstall(): Promise<void> {
|
||||
return Promise.reject("npm install skipped");
|
||||
}
|
||||
return new Promise((accept, reject) => {
|
||||
- child_process_1.spawn("/usr/bin/npm", install_options, { stdio: 'inherit' })
|
||||
+ child_process_1.spawn("npm", install_options, { stdio: 'inherit' })
|
||||
.on("exit", (code) => {
|
||||
code === 0 ? accept() : reject("NPM returned code: " + code);
|
||||
});
|
||||
--
|
||||
2.37.1.windows.1
|
||||
|
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 21 12:59:44 UTC 2023 - Adam Majer <adam.majer@suse.de> 1.0.0
|
||||
|
||||
- update to 1.0.0
|
||||
* update dependencies
|
||||
* no longer shows paths for tarballs served by the proxy
|
||||
* works with latest nodejs
|
||||
|
||||
- 0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch:
|
||||
dropped, upstreamed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 16 16:43:23 UTC 2022 - Adam Majer <adam.majer@suse.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package local-npm-registry
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,13 +17,12 @@
|
||||
|
||||
|
||||
Name: local-npm-registry
|
||||
Version: 0.0.3
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
Summary: Localhost-only version of NPM registry
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://github.com/openSUSE/npm-localhost-proxy
|
||||
Source: https://github.com/openSUSE/npm-localhost-proxy/releases/download/v%{version}/local_npm_registry-v%{version}.tar.gz
|
||||
Patch0: 0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch
|
||||
Requires: npm-default
|
||||
BuildArch: noarch
|
||||
|
||||
|
3
local_npm_registry-v1.0.0.tar.gz
Normal file
3
local_npm_registry-v1.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f107da2563e583825b82d8b8f98b3d365132cd1a4c7007c6198ff14643d9f7a0
|
||||
size 93989
|
Loading…
Reference in New Issue
Block a user