Skip to content

Commit 768b37a

Browse files
fix: build in initialize script (#1807)
## PR Checklist - [x] Addresses an existing open issue: fixes #1362 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview The fact that this wasn't reported by anybody else or fixed yet is an amusing indicator of how rarely _Use this template_ button is used. 💖
1 parent 398e947 commit 768b37a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"build": "tsup",
2626
"format": "prettier .",
27-
"initialize": "tsx ./bin/index.js --mode initialize",
27+
"initialize": "pnpm build --no-dts && tsx ./bin/index.js --mode initialize",
2828
"lint": "eslint . --max-warnings 0",
2929
"lint:knip": "knip",
3030
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",

src/steps/writing/creation/index.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ describe("createStructure", () => {
251251
"tsx",
252252
),
253253
scripts: {
254-
initialize: "tsx ./bin/index.js --mode initialize",
254+
initialize:
255+
"pnpm build --no-dts && tsx ./bin/index.js --mode initialize",
255256
"test:create": "npx tsx script/create-test-e2e.ts",
256257
"test:initialize": "npx tsx script/initialize-test-e2e.ts",
257258
"test:migrate": "vitest run -r script/",

0 commit comments

Comments
 (0)