You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(build): publint publish gate, types on by default, clear entry errors (#52)
- bsh build runs publint (strict) against dist/ and fails on errors
- dts generation now defaults on; --no-dts opts out
- empty entry globs fail with an actionable message
- publint violations render full messages, not bare codes
Runs `publint` as a publish gate in `bsh build` and generates types by default
6
+
7
+
- After a successful build, `bsh build` now runs `publint` (strict mode) against the emitted `dist/` and fails on errors — publishing mistakes like missing declaration files or broken `exports` targets are caught at build time instead of at publish.
8
+
- Type declarations (`.d.mts`) are now generated by default; pass `--no-dts` to opt out. If your `package.json` declares types but they aren't emitted, the build now fails.
9
+
- Entry globs that match nothing now fail with a clear message (`No entry files matched: …`) instead of tsdown's opaque `Error: undefined Cannot find entry`.
10
+
-`bsh publint` output now renders full messages (e.g. which `exports` target is broken) instead of bare rule codes.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ If you'd like to use this package for your own projects, please consider forking
6
6
7
7
-`bsh init` command for scaffolding new projects, which clones [our `template` repo](https://github.com/bombshell-dev/template)
8
8
-`bsh dev` command, using `node --experimental-transform-types --watch-path=./src/`
9
-
-`bsh build` command, using [`tsdown`](https://tsdown.dev/) (ESM, unbundled)
9
+
-`bsh build` command, using [`tsdown`](https://tsdown.dev/) (ESM, unbundled, types by default) with [`publint`](https://publint.dev/) as a publish gate
10
10
-`bsh test` command, using [`vitest`](https://vitest.dev/)
11
11
-`bsh format` command, using [`oxfmt`](https://oxc.rs/docs/guide/usage/formatter)
12
12
-`bsh lint` command, using [`oxlint`](https://oxc.rs/docs/guide/usage/linter), [`knip`](https://knip.dev), [`tsgo`](https://npmx.dev/@typescript/native-preview)
0 commit comments