🚀 Feature: Skip dts generation in lint.yml's build #1162
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
Right now, if a repo is created with the
bin
option,lint.yml
will run a build before lint:create-typescript-app/.github/workflows/lint.yml
Lines 7 to 8 in c348a61
The only reason that happens is because the
n/no-missing-import
will report on thebin
file pointing to a missing (not-yet-built).js
file.There's no need to also generate TypeScript
.d.ts
files during build. Lint workflows in CI will be faster if thedts
part of tsup is skipped.Additional Info
I tried using
pnpm build --dts false
orpnpm run build --dts false
. But that seems to configure tsup to try to build the file/module"false"
, not disabledts
.Filed egoist/tsup#1070 to ask about this in tsup. Marking this issue as blocked for now.
Aside: I bet this could also be used in post-run cleanup too... see #1161.
The text was updated successfully, but these errors were encountered: