@postinumero/library-scripts
v0.1.4
Published
## `init`
Downloads
12
Readme
@postinumero/library-scripts
init
npx @postinumero/library-scripts init my-lib
Type
By default, ES module package is initialized (type: module
).
npx @postinumero/library-scripts init my-lib --type commonjs
build
Target types and file extensions are detected using type
, main
, exports
values in package.json
. Additional arguments are passed to Babel.
library-scripts build
Override defaults
library-scripts build --type mjs --out-dir lib/mjs
watch
Watch build in development mode. Inline sourcemaps. Same arguments as in build
.
library-scripts watch