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
4 changes: 2 additions & 2 deletions e2e.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default {
url: "http://127.0.0.1:3000",
readyUrl: "http://127.0.0.1:3000",
command: {
executable: "node",
args: ["--import", "tsx", "scripts/e2e/stack.ts"],
executable: "nub",
args: ["scripts/e2e/stack.ts"],
env: inherited,
startupTimeout: 300_000,
shutdownTimeout: 60_000,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
".": "./src/index.ts"
},
"scripts": {
"cli": "tsx ./src/index.ts",
"cli": "nub ./src/index.ts",
"prepare": "lefthook install",
"dev": "nub run --cwd packages/infra dev",
"typecheck": "tsrs --pretty false --noEmit --incremental false && tsrs --pretty false --noEmit --incremental false -p packages/common && tsrs --pretty false --noEmit --incremental false -p packages/api && tsrs --pretty false --noEmit --incremental false -p packages/app && tsrs --pretty false --noEmit --incremental false -p packages/infra && nub run typecheck:e2e",
Expand All @@ -47,7 +47,7 @@
"format": "oxfmt --check .",
"format:fix": "oxfmt .",
"test": "nub run test:e2e",
"tegami": "tsx scripts/tegami.mts",
"tegami": "nub scripts/tegami.mts",
"clean": "rm -rf ./node_modules/ ./packages/*/node_modules/ ./dist/ ./packages/*/dist/",
"clean:builds": "rm -rf ./dist/ ./packages/*/dist/",
"build": "nub run typecheck",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env tsx
#!/usr/bin/env nub

import { execFileSync } from "node:child_process"
import { randomBytes } from "node:crypto"
Expand Down
2 changes: 1 addition & 1 deletion tests/cli.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test(
"prints Effect 4 CLI help without an Effect 3 @effect/cli peer",
{ platforms: ["cli"] },
async () => {
const result = spawnSync(process.execPath, ["--import", "tsx", "src/index.ts", "--help"], {
const result = spawnSync("nub", ["src/index.ts", "--help"], {
encoding: "utf8",
env: process.env,
timeout: 30_000,
Expand Down
Loading