Skip to content
Open
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
4 changes: 4 additions & 0 deletions .changeset/modern-bats-pick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

Internal: split easter-egg / extra commands into a new private `@clerk/cli-extras` workspace package and add a hidden `clerk clerk-bird` command. No effect on the published `clerk` binary's documented surface area, so no release is needed.
13 changes: 12 additions & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"test:e2e": "bun run scripts/run-tests.ts --pattern 'test/e2e/*.test.ts' --retries 1",
"test:e2e:op": "bun run scripts/run-e2e-op.ts",
"e2e:refresh-fixtures": "bun run scripts/refresh-e2e-fixtures.ts",
"typecheck": "bun run --filter @clerk/cli-core typecheck && tsc --noEmit -p scripts/tsconfig.json",
"lint": "bun run --filter @clerk/cli-core lint && oxlint -c .oxlintrc.json scripts/",
"format": "bun run --filter @clerk/cli-core format && oxfmt --write scripts/",
"format:check": "bun run --filter @clerk/cli-core format:check && oxfmt --check scripts/",
"typecheck": "bun run --filter './packages/*' typecheck && tsc --noEmit -p scripts/tsconfig.json",
"lint": "bun run --filter './packages/*' lint && oxlint -c .oxlintrc.json scripts/",
"format": "bun run --filter './packages/*' format && oxfmt --write scripts/",
"format:check": "bun run --filter './packages/*' format:check && oxfmt --check scripts/",
"check:patches": "bun run scripts/check-patches.ts",
"build:compile": "bun run --filter @clerk/cli-core build:compile",
"version-packages": "bun changeset version",
Expand Down
1 change: 1 addition & 0 deletions packages/cli-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"format:check": "oxfmt --check src/"
},
"dependencies": {
"@clerk/cli-extras": "workspace:*",
"@commander-js/extra-typings": "^14.0.0",
"@inquirer/ansi": "^2.0.5",
"@inquirer/core": "^11.1.9",
Expand Down
3 changes: 3 additions & 0 deletions packages/cli-core/src/cli-program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import { log } from "./lib/log.ts";
import { maybeNotifyUpdate, getCurrentVersion } from "./lib/update-check.ts";
import { update } from "./commands/update/index.ts";
import { isClerkSkillInstalled } from "./lib/skill-detection.ts";
import { registerExtras } from "@clerk/cli-extras";

export function createProgram() {
const program = new Command()
Expand Down Expand Up @@ -564,6 +565,8 @@ Tutorial — enable completions for your shell:
])
.action(update);

registerExtras(program);

return program;
}

Expand Down
19 changes: 19 additions & 0 deletions packages/extras/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@clerk/cli-extras",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
".": "./src/index.ts"
},
"scripts": {
"typecheck": "tsc --noEmit -p tsconfig.json",
"lint": "oxlint src/",
"format": "oxfmt --write src/",
"format:check": "oxfmt --check src/"
},
"dependencies": {
"@commander-js/extra-typings": "^14.0.0",
"commander": "^14.0.3"
}
}
Loading
Loading