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
2 changes: 1 addition & 1 deletion .github/workflows/headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pnpm install

- name: Check for new headers on IANA.ORG
run: pnpm tsx tools/headers.ts
run: pnpm unrun tools/headers.ts

- name: Check for changes
id: git-state
Expand Down
2 changes: 1 addition & 1 deletion compat-test/quick-start.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("ESM Test", async () => {
const listener = (chunk: Buffer) => {
out += chunk.toString();
};
const quickStart = spawn("tsx", ["quick-start.ts"]);
const quickStart = spawn("unrun", ["quick-start.ts"]);
quickStart.stdout.on("data", listener);
quickStart.stderr.on("data", listener);
await vi.waitFor(() => assert(out.includes(`Listening`)), { timeout: 1e4 });
Expand Down
2 changes: 1 addition & 1 deletion esm-test/quick-start.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("ESM Test", async () => {
const listener = (chunk: Buffer) => {
out += chunk.toString();
};
const quickStart = spawn("tsx", ["quick-start.ts"]);
const quickStart = spawn("unrun", ["quick-start.ts"]);
quickStart.stdout.on("data", listener);
quickStart.stderr.on("data", listener);
const port = givePort("esm");
Expand Down
2 changes: 1 addition & 1 deletion example/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("Example", async () => {
out += chunk.toString();
};
const matchOut = (regExp: RegExp) => regExp.test(out);
const example = spawn("tsx", ["index.ts"]);
const example = spawn("unrun", ["index.ts"]);
example.stdout.on("data", listener);
const port = givePort("example");
await vi.waitFor(() => assert(out.includes(`Listening`)), { timeout: 1e4 });
Expand Down
8 changes: 5 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"start": "tsx index.ts",
"start": "unrun index.ts",
"build": "pnpm build:docs && pnpm build:client",
"build:docs": "tsx generate-documentation.ts",
"build:client": "tsx generate-client.ts",
"build:docs": "unrun generate-documentation.ts",
"build:client": "unrun generate-client.ts",
"pretest": "tsc",
"test": "vitest run index.spec.ts"
},
"devDependencies": {
"@types/http-errors": "catalog:dev",
"@types/swagger-ui-express": "^4.1.8",
"compression": "catalog:dev",
"express-zod-api": "workspace:*",
"express-fileupload": "catalog:dev",
"http-errors": "catalog:dev",
"qs": "^6.14.0",
"swagger-ui-express": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion express-zod-api/tests/common-helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe("Common Helpers", () => {
[Symbol("symbol"), "Symbol(symbol)"],
[true, "true"],
[false, "false"],
[() => {}, "() => {\n }"],
[() => {}, "() => {}"],
[/regexp/is, "/regexp/is"],
[[1, 2, 3], "1,2,3"],
])("should accept %#", (argument, expected) => {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"type": "module",
"scripts": {
"start": "pnpm -F example start",
"prebuild": "tsx tools/contributors.ts && tsx tools/license.ts",
"prebuild": "unrun tools/contributors.ts && unrun tools/license.ts",
"build": "pnpm -r build",
"pretest": "tsx tools/make-tests.ts",
"pretest": "unrun tools/make-tests.ts",
"test": "pnpm -r test",
"bench": "pnpm -F express-zod-api bench",
"lint": "eslint && prettier *.md **/*.md --check",
Expand All @@ -25,8 +25,8 @@
"husky": "^9.0.5",
"prettier": "3.7.4",
"tsdown": "^0.17.0",
"tsx": "^4.19.4",
"typescript-eslint": "catalog:dev",
"unrun": "^0.2.17",
"vitest": "^4.0.1"
},
"packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501"
Expand Down
Loading