@paulmillr/jsbt
Typescript configs, build tools and templates for JS projects.
jsbt.js
calls esbuild to produce single-file package output.github/workflows
contains GitHub CI configs for testing & publishing JS packages:test-js.yml
runs tests on LTS node.js, bun, deno, linter, and calculates coveragesubmodules: true / false (default)
option determines whether to clone submodules
test-ts.yml
is same, but runs typescript instead of js on supported node.js (v22+)release.yml
publishes package on NPM, JSR and creates single-file output if it existsbuild-path: string
- path to build directory, which containsout
dir, from which files would be uploaded to github releasesslow-types: true / false (default)
- whether to allow slow types on JSR.io
tsconfig.json
andtsconfig.cjs.json
allow inheritance with a few useful options:- Overall they are quite strict
isolatedDeclarations
ensures types are "fast" and friendly to JSR.ioverbatimModuleSyntax
- ensures files are friendly to "type erasure" / "type ignore" node.js and otherstsconfig.test.json
is for typescript tests, with looser checks
repo-template
contains project skeleton, which can be used to create a new package- Replace EDIT_ME with proper value
License
MIT License