0.4.1 • Published 10 months ago
@paulmillr/jsbt v0.4.1
@paulmillr/jsbt
Typescript configs, build tools and templates for JS projects.
jsbt.jscalls esbuild to produce single-file package output.github/workflowscontains GitHub CI configs for testing & publishing JS packages:test-js.ymlruns tests on LTS node.js, bun, deno, linter, and calculates coveragesubmodules: true / false (default)option determines whether to clone submodules
test-ts.ymlis same, but runs typescript instead of js on supported node.js (v22+)release.ymlpublishes package on NPM, JSR and creates single-file output if it existsbuild-path: string- path to build directory, which containsoutdir, from which files would be uploaded to github releasesslow-types: true / false (default)- whether to allow slow types on JSR.io
tsconfig.jsonandtsconfig.cjs.jsonallow inheritance with a few useful options:- Overall they are quite strict
isolatedDeclarationsensures types are "fast" and friendly to JSR.ioverbatimModuleSyntax- ensures files are friendly to "type erasure" / "type ignore" node.js and otherstsconfig.test.jsonis for typescript tests, with looser checks
repo-templatecontains project skeleton, which can be used to create a new package- Replace EDIT_ME with proper value
License
MIT License