From 74b6f73ffab8ae6f2f7eb4eaa3298109cdb24c0d Mon Sep 17 00:00:00 2001 From: chlorine Date: Fri, 25 Oct 2024 19:42:16 +0800 Subject: [PATCH] chore: fix esbuild external warning (#8692) --- pnpm/bundle.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pnpm/bundle.ts b/pnpm/bundle.ts index 51e11476a0..ad8181f5aa 100644 --- a/pnpm/bundle.ts +++ b/pnpm/bundle.ts @@ -12,7 +12,10 @@ import { build } from 'esbuild' bundle: true, platform: 'node', outfile: 'dist/pnpm.cjs', - external: ['node-gyp'], + external: [ + 'node-gyp', + './get-uid-gid.js', // traces back to: https://github.com/npm/uid-number/blob/6e9bdb302ae4799d05abf12e922ccdb4bd9ea023/uid-number.js#L31 + ], define: { 'process.env.npm_package_name': JSON.stringify( process.env.npm_package_name