Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bun-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.13
1.4.0
2 changes: 1 addition & 1 deletion .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
bun-version-file: .bun-version

- name: Turbo Cache
uses: actions/cache@v5
uses: actions/cache@v6
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v6
uses: actions/checkout@v7

- uses: ./.github/actions/prepare

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: check-pr-title:required
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: ./.github/actions/prepare

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v6
uses: actions/checkout@v7

- uses: ./.github/actions/prepare

Expand All @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v6
uses: actions/checkout@v7

- uses: ./.github/actions/prepare

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v6
uses: actions/checkout@v7

- uses: ./.github/actions/prepare

Expand Down
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
"$schema": "https://biomejs.dev/schemas/2.5.11/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand All @@ -25,7 +25,7 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"preset": "recommended",
"complexity": {
"useMaxParams": {
"level": "error",
Expand Down
454 changes: 181 additions & 273 deletions bun.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions examples/pomo/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const result = await Bun.build({
outdir: './dist',
target: 'bun',
external: ['react-devtools-core'],
// ink lazily imports its devtools module; without splitting Bun inlines it and hoists
// the optional `react-devtools-core` import to the top level, breaking every run.
splitting: true,
define: { __VERSION__: JSON.stringify(pkg.version) },
});

Expand Down
6 changes: 3 additions & 3 deletions examples/pomo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"dependencies": {
"@parshjs/core": "workspace:*",
"ink": "^5.2.1",
"react": "^18.3.1",
"ink": "^7.1.1",
"react": "^19.2.8",
"zod": "catalog:"
},
"devDependencies": {
"@parshjs/codegen": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@types/react": "^18.3.12",
"@types/react": "^19.2.18",
"typescript": "catalog:"
}
}
2 changes: 1 addition & 1 deletion examples/scaffold/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"generate": "parsh-codegen generate --commands src/commands --out src/commandTree.gen.ts"
},
"dependencies": {
"@clack/prompts": "^0.9.1",
"@clack/prompts": "^1.7.0",
"@parshjs/core": "workspace:*",
"zod": "catalog:"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/scaffold/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const command = defineCommand('init', {
(await p.text({
message: 'Project name',
placeholder: 'my-app',
validate: (v) => (v.trim().length === 0 ? 'Required' : undefined),
validate: (v) => (!v || v.trim().length === 0 ? 'Required' : undefined),
}));
if (p.isCancel(name)) {
p.cancel('Cancelled.');
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@parshjs/codegen": "workspace:*",
"@repo/typescript-config": "workspace:*",
"typescript": "catalog:",
"vitest": "^4.1.5"
"vitest": "^4.1.11"
}
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
],
"catalog": {
"typescript": "^5.9.3",
"zod": "^4.3.6"
"zod": "^4.5.4"
}
},
"devDependencies": {
"@biomejs/biome": "^2.4.13",
"@commitlint/cli": "^20.5.2",
"@commitlint/config-conventional": "^20.5.0",
"@commitlint/format": "^20.5.0",
"@commitlint/types": "^20.5.0",
"@types/bun": "^1.3.13",
"@biomejs/biome": "^2.5.11",
"@commitlint/cli": "^21.2.2",
"@commitlint/config-conventional": "^21.2.2",
"@commitlint/format": "^21.2.2",
"@commitlint/types": "^21.2.0",
"@types/bun": "^1.4.0",
"typescript": "catalog:",
"turbo": "^2.9.6"
"turbo": "^2.10.12"
},
"packageManager": "bun@1.3.13"
"packageManager": "bun@1.4.0"
}
4 changes: 4 additions & 0 deletions packages/core/src/testing/run-command.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// biome-ignore-all lint/nursery/useAwaitThenable: biome 2.5.x cannot see through the
// `void | Promise<void>` union behind an optional object property, so it flags these
// awaits as non-Promise. Dropping them would stop async hooks being sequenced.

type Hook = (ctx: unknown) => void | Promise<void>;

type CommandWithHooks = {
Expand Down