chore: fix esbuild external warning (#8692)

This commit is contained in:
chlorine authored and GitHub committed 2024-10-25 13:42:16 +02:00
1 parent 016c58baae
commit 74b6f73ffa
1 file changed
+4 -1
+4 -1
View File
@@ -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