diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..9bab9d0 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,24 @@ +name: Preview +on: + pull_request: + pull_request_review: + types: [submitted] + +jobs: + + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + + - name: Install dependencies + run: pnpm install + + - run: pnpx pkg-pr-new publish './packages/*' diff --git a/packages/core/src/prompts/prompt.ts b/packages/core/src/prompts/prompt.ts index 55a7ec5..1122f5b 100644 --- a/packages/core/src/prompts/prompt.ts +++ b/packages/core/src/prompts/prompt.ts @@ -9,6 +9,7 @@ import { ALIASES, CANCEL_SYMBOL, KEYS, diffLines, hasAliasKey, setRawMode } from import type { ClackEvents, ClackState, InferSetType } from '../types'; +// trigger build export interface PromptOptions { render(this: Omit): string | undefined; placeholder?: string;