dist-package

0.2.3 • Public • Published

dist-package

Add as a dev dependancy then use dist-package in your build scripts

Commands

Package

This will copy the given packages json file into the dist folder, stripping scripts and devDependencies out. It will also shim the main import to export transpiled es6 default exports to be behave line commonjs.

Run dist-package package --help for more information

Clean

This will delete the given folder and all it's contents be careful.

Run dist-package clean --help for more information

Help

Displays help

Example scripts entry

{
    "scripts": {
        "dist:clean": "dist-package clean",
        "dist:package": "dist-package package",
        "build:tsc": "tsc --declaration true --outDir dist/lib",
        "build": "yarn dist:clean && yarn build:tsc && yarn dist:package"
    }
}

Readme

Keywords

Package Sidebar

Install

npm i dist-package

Weekly Downloads

4

Version

0.2.3

License

MIT

Unpacked Size

32.5 kB

Total Files

21

Last publish

Collaborators

  • spudnyk