stubb
v2.0.1
Published
Stub dist link your project during the development
Maintainers
Readme
stubb
Stub dist link your project during the development.
Install
npm install --save-dev stubbUsage
In the package.json of the package in need:
{
"scripts": {
"stub": "stubb"
}
}Default project structure:
|-- package
|-- dist/
|-- index.js
|-- index.cjs
|-- index.mjs
|-- index.d.ts
|-- src/
|-- index.ts
|-- package.jsonOptions
entries
Set one or more entry paths. Default: src/index
{
"scripts": {
"stub": "stubb test/index,test/plugins"
}
}outputDir
The folder name/path of the output file. Default: dist
{
"scripts": {
"stub": "stubb --outputDir=ouput"
}
}fill
Auto fill in exports/main/module/types in package.json. Default: false
{
"scripts": {
"stub": "stubb --fill"
}
}esm
Open esm. Default: true
cjs
Open cjs. Default: true
ts
Open types. Default: true
