diff --git a/package.json b/package.json index e690069d7..9548db9c3 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 027bff8e2..06b4db9df 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/",