From 478863cef815f2f17f9ec7f7847e30bb44e0bc5a Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Sat, 30 Dec 2023 01:34:55 +0800 Subject: [PATCH] fix: registry-js should only build on win32, v0.8.1-prerelease9 --- package.json | 5 ++++- patches/registry-js@1.15.1.patch | 12 ++++++++++++ pnpm-lock.yaml | 10 ++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 patches/registry-js@1.15.1.patch diff --git a/package.json b/package.json index d0700744..64ae71d7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tidgi", "productName": "TidGi", "description": "Customizable personal knowledge-base with Github as unlimited storage and blogging platform.", - "version": "0.8.1-prerelease8", + "version": "0.8.1-prerelease9", "license": "MPL 2.0", "scripts": { "start": "pnpm run clean && pnpm run init:git-submodule && pnpm run start:without-clean", @@ -175,6 +175,9 @@ "overrides": { "node-abi": "latest", "prebuild-install": "latest" + }, + "patchedDependencies": { + "registry-js@1.15.1": "patches/registry-js@1.15.1.patch" } }, "private": false diff --git a/patches/registry-js@1.15.1.patch b/patches/registry-js@1.15.1.patch new file mode 100644 index 00000000..fe248dbf --- /dev/null +++ b/patches/registry-js@1.15.1.patch @@ -0,0 +1,12 @@ +diff --git a/package.json b/package.json +index c83258354f9997e167ea872b10093f7b22756671..5f04bdd3c89708d59f4fbc450e6fa1dcae5d6960 100644 +--- a/package.json ++++ b/package.json +@@ -4,6 +4,7 @@ + "description": "A simple and opinionated library for working with the Windows registry", + "main": "dist/lib/index.js", + "typings": "dist/lib/index.d.ts", ++ "os": ["win32"], + "scripts": { + "install": "prebuild-install || node-gyp rebuild", + "build": "tsc", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9c71704e..4ce21749 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,11 @@ overrides: node-abi: latest prebuild-install: latest +patchedDependencies: + registry-js@1.15.1: + hash: 7rafcy7utzw5ykwiniqb3nhl5q + path: patches/registry-js@1.15.1.patch + dependencies: '@llama-node/core': specifier: ^0.1.6 @@ -160,7 +165,7 @@ dependencies: optionalDependencies: registry-js: specifier: 1.15.1 - version: 1.15.1 + version: 1.15.1(patch_hash=7rafcy7utzw5ykwiniqb3nhl5q) sqlite-vss-darwin-arm64: specifier: 0.1.2 version: 0.1.2 @@ -9391,7 +9396,7 @@ packages: engines: {node: '>=8'} dev: true - /registry-js@1.15.1: + /registry-js@1.15.1(patch_hash=7rafcy7utzw5ykwiniqb3nhl5q): resolution: {integrity: sha512-aHEHtbzqusxkhprn7+rf2Cu7z0oPHaXVuOVKTpZigBSRpXUTw7+yWBJyuAREpG1bt2doe+qJzSR+kyZ9uWsj7A==} requiresBuild: true dependencies: @@ -9399,6 +9404,7 @@ packages: prebuild-install: 7.1.1 dev: false optional: true + patched: true /regjsparser@0.10.0: resolution: {integrity: sha512-qx+xQGZVsy55CH0a1hiVwHmqjLryfh7wQyF5HO07XJ9f7dQMY/gPQHhlyDkIzJKC+x2fUCpCcUODUUUFrm7SHA==}