From d16a7c88721e1e934c9401fd2342f726f9b9ac86 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 22 Aug 2024 14:58:19 -0700 Subject: [PATCH 1/2] fix: specify build_from_source using env vars Newer npm/yarn versions don't populate `process.env.npm_config_argv` resulting in `npm/yarn` installs hanging. This fixes the issue https://github.com/prebuild/node-gyp-build/blob/464e3881600de2107f35fd1c55afff232a768123/bin.js#L75 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 48b9a7e0..64d87505 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "tsconfig.json" ], "scripts": { - "install": "(npm run build.js || echo ok) && aminya-node-gyp-build --build-from-source", + "install": "(npm run build.js || echo ok) && cross-env npm_config_build_from_source=true aminya-node-gyp-build", "clean": "shx rm -rf ./build ./lib/ ./prebuilds ./script/*.js ./script/*.mjs ./script/*.js.map ./script/*.mjs.map ./script/*.d.ts ./script/*.d.mts ./script/*.cjs ./scripts/*.cjs.map ./scripts/*.d.cts ./script/*.tsbuildinfo", "clean.release": "shx rm -rf ./build/Release", "clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp", From c13cbe501674c218ed2b8f2bba5c5ccf84aa1d1b Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 22 Aug 2024 15:01:09 -0700 Subject: [PATCH 2/2] fix: remove types from tsconfig --- tsconfig.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index bd1d7379..86dcaddd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,10 +6,7 @@ "declaration": true, "module": "commonjs", "moduleResolution": "node", - "types": [ - "node", - "mocha" - ], + "forceConsistentCasingInFileNames": true, "strictPropertyInitialization": false, // TODO "strict": true, "strictNullChecks": true,