Skip to content

Commit 5391071

Browse files
authored
Merge branch 'master' into make-v26
2 parents 5a882ad + c3367f6 commit 5391071

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

cjs-test/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
"private": true,
44
"version": "0.0.0",
55
"scripts": {
6-
"test": "vitest run --globals"
6+
"pretest": "tsc",
7+
"test": "vitest run --globals",
8+
"posttest": "rm *.js"
79
},
810
"devDependencies": {
911
"express-zod-api": "workspace:*",
12+
"typescript": "catalog:dev",
1013
"zod": "catalog:dev"
1114
}
1215
}

cjs-test/quick-start.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe("CJS Test", async () => {
66
const listener = (chunk: Buffer) => {
77
out += chunk.toString();
88
};
9-
const quickStart = spawn("tsx", ["quick-start.ts"]);
9+
const quickStart = spawn("node", ["quick-start.js"]);
1010
quickStart.stdout.on("data", listener);
1111
quickStart.stderr.on("data", listener);
1212
const port = givePort("cjs");

cjs-test/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@tsconfig/node20/tsconfig.json",
3+
"include": ["quick-start.ts"]
4+
}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)