Skip to content

Commit 88485e3

Browse files
committed
fix: properly bundle @InQuirer modules as external dependencies
The @inquirer/input, @inquirer/password, and @inquirer/search packages were not being bundled into dist/external, causing socket-cli's build to fail when trying to resolve these modules. This fix adds these packages to the bundling configuration in build-externals.mjs so they are properly bundled with esbuild instead of being left as stub re-exports. This ensures socket-cli can properly resolve @InQuirer dependencies when importing from @socketsecurity/lib, fixing the build chain dependency resolution issue.
1 parent 3f0cb17 commit 88485e3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/build-externals.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,16 @@ const scopedPackages = [
101101
{ scope: '@npmcli', name: 'promise-spawn', bundle: true },
102102
{
103103
scope: '@inquirer',
104-
packages: ['checkbox', 'confirm', 'core', 'prompts', 'select'],
104+
packages: [
105+
'checkbox',
106+
'confirm',
107+
'core',
108+
'input',
109+
'password',
110+
'prompts',
111+
'search',
112+
'select',
113+
],
105114
optional: true,
106115
},
107116
{

0 commit comments

Comments
 (0)