From 4d2cc12446c89bb837add3206f525ce18c5d53f7 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 24 Dec 2024 14:15:33 -0500 Subject: [PATCH] fix: build in initialize script --- package.json | 2 +- src/steps/writing/creation/index.test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e690069d..9548db9c 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "scripts": { "build": "tsup", "format": "prettier .", - "initialize": "tsx ./bin/index.js --mode initialize", + "initialize": "pnpm build --no-dts && tsx ./bin/index.js --mode initialize", "lint": "eslint . --max-warnings 0", "lint:knip": "knip", "lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line", diff --git a/src/steps/writing/creation/index.test.ts b/src/steps/writing/creation/index.test.ts index 027bff8e..06b4db9d 100644 --- a/src/steps/writing/creation/index.test.ts +++ b/src/steps/writing/creation/index.test.ts @@ -251,7 +251,8 @@ describe("createStructure", () => { "tsx", ), scripts: { - initialize: "tsx ./bin/index.js --mode initialize", + initialize: + "pnpm build --no-dts && tsx ./bin/index.js --mode initialize", "test:create": "npx tsx script/create-test-e2e.ts", "test:initialize": "npx tsx script/initialize-test-e2e.ts", "test:migrate": "vitest run -r script/",