Skip to content

Commit 9cccdb6

Browse files
committed
feat(prompts): add @inquirer/checkbox support
- Add @inquirer/checkbox@4.3.1 as pinned dev dependency - Create external wrapper at src/external/@inquirer/checkbox.js - Add checkbox to build externals config for bundling - Export checkbox prompt with spinner/theme/signal support Enables multi-select prompts in Socket CLI tools.
1 parent 264e291 commit 9cccdb6

4 files changed

Lines changed: 80 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@
603603
"@biomejs/biome": "2.2.4",
604604
"@eslint/compat": "1.4.0",
605605
"@eslint/js": "9.38.0",
606+
"@inquirer/checkbox": "4.3.1",
606607
"@inquirer/confirm": "5.1.16",
607608
"@inquirer/input": "4.2.2",
608609
"@inquirer/password": "4.0.18",

pnpm-lock.yaml

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/build-externals/config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const scopedPackages = [
4444
scope: '@inquirer',
4545
packages: [
4646
// Only bundle packages that are in devDependencies
47+
'checkbox',
4748
'confirm',
4849
'input',
4950
'password',

src/external/@inquirer/checkbox.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = require('@inquirer/checkbox')

0 commit comments

Comments
 (0)