<reponame>jiaoyanlin/npm-library-demo<filename>package.json
{
  "name": "npm-library-demo",
  "version": "1.0.4",
  "description": "使用rollup构建npm包（library）实战",
  "module": "es/index.js",
  "main": "lib/index.js",
  "scripts": {
    "tag": "node ./build/version.js",
    "x": "npm --no-git-tag-version version major",
    "y": "npm --no-git-tag-version version minor",
    "z": "npm --no-git-tag-version version patch",
    "postversion": "npm run changelog && git add . && npm run tag",
    "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
    "clean": "rm -rf ./dist/ ./es/ ./lib/",
    "easy": "npm run clean && NODE_ENV=development rollup -w -c ./build/easy.config.js",
    "node:dev": "npm run clean && NODE_ENV=development node ./build/dev.js",
    "node:build": "npm run clean && NODE_ENV=production node ./build/build.js",
    "start": "npm run clean && NODE_ENV=development rollup -w -c ./build/rollup.config.js",
    "build": "npm run clean && NODE_ENV=production rollup -c ./build/rollup.config.js",
    "prepublishOnly": "npm run build",
    "postpublish": "npm run clean"
  },
  "files": [
    "dist",
    "lib",
    "es",
    "types"
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/jiaoyanlin/npm-library-demo.git"
  },
  "keywords": [],
  "author": "jiaoyanlin",
  "license": "ISC",
  "devDependencies": {
    "@babel/core": "^7.6.0",
    "@babel/plugin-transform-runtime": "^7.6.0",
    "@babel/preset-env": "^7.6.0",
    "babel-eslint": "^10.0.3",
    "conventional-changelog-cli": "^2.0.23",
    "rollup": "^1.21.4",
    "rollup-plugin-babel": "^4.3.3",
    "rollup-plugin-commonjs": "^10.1.0",
    "rollup-plugin-eslint": "^7.0.0",
    "rollup-plugin-json": "^4.0.0",
    "rollup-plugin-node-resolve": "^5.2.0",
    "rollup-plugin-serve": "^1.0.1",
    "rollup-plugin-uglify": "^6.0.3"
  },
  "dependencies": {
    "@babel/runtime": "^7.6.0",
    "@babel/runtime-corejs2": "^7.6.0",
    "lodash": "^4.17.15",
    "the-answer": "^1.0.0"
  }
}
