1.0.1 • Published 4 years ago
@leichtgewicht/pack-ts v1.0.1
@leichtgewicht/pack-ts
Package script for typescript libraries. Prepares a ./dist
folder with reduced package.json
that can then be published
npx @leichtgewicht/pack-ts
Warning: very opinionated built tool
This tool:
- runs
npm run build-ts
to build the typescript code - removes unnecessary parts from the package.json like
private
ordevDependencies
in the dist folder. - removes compiled versions of
__tests__
- makes
./dist
a root which makes deep require statements easier - adds
./src
to the./dist
folder (without the__tests__
!) - subsequentally fixes all the sourcemap entries to to point to the right sources.
- copies a
Readme.md
andLICENSE
file into the distribution