From e9b11362e205beb8edb6344f8e51624af42c593bf9d346dcf696c48532e326eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 25 Feb 2025 17:19:44 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main local-npm-registry revision a08c3c8e9b183e4f0e75b217dc1b2582 --- local-npm-registry.changes | 55 ++++++++++++++++++++++++++++++++ local-npm-registry.spec | 17 +++------- local_npm_registry-v0.0.3.tar.gz | 3 -- local_npm_registry-v1.1.0.tar.gz | 3 ++ 4 files changed, 63 insertions(+), 15 deletions(-) delete mode 100644 local_npm_registry-v0.0.3.tar.gz create mode 100644 local_npm_registry-v1.1.0.tar.gz diff --git a/local-npm-registry.changes b/local-npm-registry.changes index 175938e..3e38f7e 100644 --- a/local-npm-registry.changes +++ b/local-npm-registry.changes @@ -1,3 +1,58 @@ +------------------------------------------------------------------- +Fri Feb 21 14:05:43 UTC 2025 - Adam Majer + +- update to 1.1.0 + * always run npm with --no-package-lock. This will fix all weird + errors and no loger require cleaning package-lock.json from + upstream + * `quilt setup` script is now in the utility + * everything is run in JS now, so you can run directly with + node version of change. Either, + local-npm-registry + or + node22 /usr/bin/local-npm-registry + +------------------------------------------------------------------- +Tue Jan 30 14:43:02 UTC 2024 - Adam Majer + +- update to 1.0.2 + * --help invocation fixes + * cleanup npm's config.registry on exit + * adds support for non-standard alternative versions + +------------------------------------------------------------------- +Fri Dec 29 11:02:40 UTC 2023 - Adam Majer + +- Escape `quilt setup` invoked section in the helper script + +------------------------------------------------------------------- +Fri Jul 21 12:59:44 UTC 2023 - Adam Majer 1.0.1 + +- update to 1.0.1 + * 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 + +- Revert Requires: back to npm-default. If we need support for + Fedora to have something else, we can do this another way + https://en.opensuse.org/openSUSE:Build_Service_prjconf#Substitute + +------------------------------------------------------------------- +Mon Aug 15 15:59:04 UTC 2022 - Bruno Pitrus +- Allow the user to override `node` and `npm` commands in PATH. + This is useful if one wants to eg. use Electron to run npm. + * add 0001-Allow-the-user-to-provide-their-own-npm-command-by-m.patch +- Change Requires: npm-default to Requires: npm. + npm-default is already prefered by the prjconf, + this works with any version of npm, + and Fedora does not have npm-default. + ------------------------------------------------------------------- Wed Aug 11 17:06:14 UTC 2021 - Adam Majer diff --git a/local-npm-registry.spec b/local-npm-registry.spec index e83bac6..4f085df 100644 --- a/local-npm-registry.spec +++ b/local-npm-registry.spec @@ -1,7 +1,7 @@ # # spec file for package local-npm-registry # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: local-npm-registry -Version: 0.0.3 +Version: 1.1.0 Release: 0 Summary: Localhost-only version of NPM registry License: GPL-3.0-or-later @@ -42,16 +42,9 @@ mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_bindir} cp -r dist node_modules %{buildroot}%{_datadir}/%{name} cat > %{buildroot}%{_bindir}/local-npm-registry << EOF -#!/bin/sh - -if [ "x$QUILT_COMMAND" = "xsetup" ] -then - echo "Run in setup mode. 'npm install' skipped. Run 'npm ci' manually." - cp "$RPM_SOURCE_DIR/package-lock.json" . - exit 0 -fi - -exec %{_bindir}/node %{_datadir}/%{name}/dist/ "\$@" +#!/usr/bin/node +const foo = await import("%{_datadir}/%{name}/dist/index.js") +foo.mainEntryFunction() EOF %files diff --git a/local_npm_registry-v0.0.3.tar.gz b/local_npm_registry-v0.0.3.tar.gz deleted file mode 100644 index 16ccd65..0000000 --- a/local_npm_registry-v0.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8a9b520013ce1c39b44f77a2c1a1d5e3c4222ec4157addc0403d9c07097a8ae0 -size 145764 diff --git a/local_npm_registry-v1.1.0.tar.gz b/local_npm_registry-v1.1.0.tar.gz new file mode 100644 index 0000000..2e2dce0 --- /dev/null +++ b/local_npm_registry-v1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f006d14631354f1cac8d9ff103d0c884101c8c88fd2e839e0ea9caca27915c4f +size 94885