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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# macOS
.DS_Store

# Logs
Expand Down
6 changes: 0 additions & 6 deletions .vscode/extensions.json

This file was deleted.

36 changes: 0 additions & 36 deletions biome.json

This file was deleted.

17 changes: 0 additions & 17 deletions build.preset.ts

This file was deleted.

14 changes: 7 additions & 7 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"name": "@example/basic",
"private": true,
"version": "0.0.0",
"type": "module",
"dependencies": {
"@clack/prompts": "workspace:*",
"arktype": "^2.2.0",
"picocolors": "^1.0.0",
"jiti": "^1.17.0"
},
"private": true,
"scripts": {
"start": "jiti ./index.ts",
"stream": "jiti ./stream.ts",
Expand All @@ -20,6 +14,12 @@
"spinner-timer": "jiti ./spinner-timer.ts",
"task-log": "jiti ./task-log.ts"
},
"dependencies": {
"@clack/prompts": "workspace:*",
"arktype": "^2.2.0",
"picocolors": "^1.0.0",
"jiti": "^1.17.0"
},
"devDependencies": {
"cross-env": "^7.0.3"
}
Expand Down
13 changes: 6 additions & 7 deletions examples/changesets/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "@example/changesets",
"private": true,
"version": "0.0.0",
"type": "module",
"dependencies": {
"jiti": "^1.17.0",
"@clack/prompts": "workspace:*",
"picocolors": "^1.0.0"
},
"private": true,
"scripts": {
"start": "jiti ./index.ts"
},
"devDependencies": {}
"dependencies": {
"@clack/prompts": "workspace:*",
"jiti": "^1.17.0",
"picocolors": "^1.0.0"
}
}
3 changes: 0 additions & 3 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"workspaces": {
".": {
"ignore": ["build.preset.ts"]
},
"examples/*": {
"entry": "*.ts!",
"project": "*.ts"
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
{
"name": "@clack/root",
"private": true,
"type": "module",
"private": true,
"scripts": {
"stub": "pnpm -r run build --stub",
"build": "pnpm --filter \"@clack/*\" run build",
"start": "pnpm run dev",
"dev": "pnpm --filter @example/changesets run start",
"format": "biome check --write",
"lint": "biome lint --write --unsafe",
"format": "bsh format",
"lint": "bsh lint",
"types": "tsc --noEmit",
"deps": "pnpm exec knip --production",
"deps": "pnpm dlx knip --production",
"test": "pnpm --color -r run test",
"pretest": "pnpm run build"
},
"devDependencies": {
"@biomejs/biome": "^2.5.12",
"@bomb.sh/tools": "^0.6.1",
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"@types/node": "^20.19.39",
"jsr": "^0.13.4",
"knip": "^5.62.0",
"typescript": "^6.0.3",
"unbuild": "^3.6.0"
"typescript": "^6.0.3"
},
"packageManager": "pnpm@10.33.0",
"volta": {
Expand Down
7 changes: 0 additions & 7 deletions packages/core/build.config.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@
"node": ">= 20.12.0"
},
"scripts": {
"build": "unbuild",
"build": "bsh build",
"prepack": "pnpm build",
"test": "vitest run"
"test": "bsh test"
},
"dependencies": {
"fast-wrap-ansi": "^0.2.0",
"sisteransi": "^1.0.5"
},
"devDependencies": {
"arktype": "^2.2.0",
"vitest": "^3.2.4"
"vitest": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/core/test/mock-readable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Readable } from 'node:stream';
export class MockReadable extends Readable {
protected _buffer: unknown[] | null = [];

_read() {
override _read() {
if (this._buffer === null) {
this.push(null);
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/mock-writable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Writable } from 'node:stream';
export class MockWritable extends Writable {
public buffer: string[] = [];

_write(
override _write(
chunk: any,
_encoding: BufferEncoding,
callback: (error?: Error | null | undefined) => void
Expand Down
6 changes: 0 additions & 6 deletions packages/prompts/build.config.ts

This file was deleted.

8 changes: 4 additions & 4 deletions packages/prompts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"node": ">= 20.12.0"
},
"scripts": {
"build": "unbuild",
"build": "bsh build",
"prepack": "pnpm build",
"test": "vitest run"
"test": "bsh test"
},
"dependencies": {
"@clack/core": "workspace:*",
Expand All @@ -63,7 +63,7 @@
"devDependencies": {
"is-unicode-supported": "^1.3.0",
"memfs": "^4.17.2",
"vitest": "^3.2.4",
"vitest-ansi-serializer": "^0.1.2"
"vitest": "^5.0.0",
"vitest-ansi-serializer": "^0.3.1"
}
}
4 changes: 2 additions & 2 deletions packages/prompts/test/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class MockWritable extends Writable {
public columns = 80;
public rows = 20;

_write(
override _write(
chunk: any,
_encoding: BufferEncoding,
callback: (error?: Error | null | undefined) => void
Expand All @@ -19,7 +19,7 @@ export class MockWritable extends Writable {
export class MockReadable extends Readable {
protected _buffer: unknown[] | null = [];

_read() {
override _read() {
if (this._buffer === null) {
this.push(null);
return;
Expand Down
10 changes: 0 additions & 10 deletions packages/prompts/vitest.config.ts

This file was deleted.

Loading
Loading