From e47ef5facfa2783907fce592842ab0d0821b713d Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Fri, 20 Oct 2023 15:55:56 -0700 Subject: [PATCH] Run tsc check before building types --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a83ee6cd49..8e28c12e11 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "build:reset": "git checkout upstream/master lib/marked.cjs lib/marked.umd.js lib/marked.esm.js marked.min.js", "build": "npm run rollup && npm run build:types && npm run build:man", "build:docs": "npm run build && node docs/build.js", - "build:types": "dts-bundle-generator --project tsconfig.json -o lib/marked.d.ts src/marked.ts && dts-bundle-generator --project tsconfig.json -o lib/marked.d.cts src/marked.ts", + "build:types": "tsc && dts-bundle-generator --project tsconfig.json -o lib/marked.d.ts src/marked.ts && dts-bundle-generator --project tsconfig.json -o lib/marked.d.cts src/marked.ts", "build:man": "marked-man man/marked.1.md > man/marked.1", "rollup": "rollup -c rollup.config.js" },