From af2c8b8f4e17087b624db09be5c23887fb3bd8e6 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Thu, 23 Oct 2025 13:46:39 -0700 Subject: [PATCH] I guess put tsconfig EVERYWHERE --- bin/mkproject.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mkproject.ts b/bin/mkproject.ts index 19a7b89..a3d4f7e 100644 --- a/bin/mkproject.ts +++ b/bin/mkproject.ts @@ -8,15 +8,16 @@ import { NOSE_DIR } from "@/config" import load from "./load" export default function (project: string) { - if (!project) throw "usage: new " + if (!project) throw "usage: mkproject " if (projects().includes(project)) throw `${project} already exists` const dir = join(NOSE_DIR, project) mkdirSync(join(dir, "bin"), { recursive: true }) - writeFileSync(join(dir, `index.tsx`), `export default (c: Context) =>\n "Hello from the ${project} project!"`) + writeFileSync(join(dir, "index.tsx"), `export default (c: Context) =>\n "Hello from the ${project} project!"`) writeFileSync(join(dir, "bin", `${project}.ts`), `export default function() {\n return "The ${project} project lives!"\n}`) + writeFileSync(join(dir, "tsconfig.json"), `{ "extends": "../tsconfig.json", "include": ["./**/*"] }`) load(project)