chore(poppperjs): add release script

This commit is contained in:
chenjiahan 2020-12-04 13:33:16 +08:00
parent 11add5f1d3
commit dc9368ce19
2 changed files with 1774 additions and 6 deletions

View File

@ -14,7 +14,8 @@
}, },
"scripts": { "scripts": {
"dev": "rollup --config rollup.config.js --watch", "dev": "rollup --config rollup.config.js --watch",
"build": "rollup --config rollup.config.js && tsc -p ./tsconfig.json --emitDeclarationOnly" "build": "rollup --config rollup.config.js && tsc -p ./tsconfig.json --emitDeclarationOnly",
"release": "npm run build && release-it"
}, },
"license": "MIT", "license": "MIT",
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-popperjs", "repository": "https://github.com/youzan/vant/tree/dev/packages/vant-popperjs",
@ -25,10 +26,17 @@
"@babel/runtime": "7.x", "@babel/runtime": "7.x",
"@rollup/plugin-babel": "^5.2.1", "@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-node-resolve": "^10.0.0", "@rollup/plugin-node-resolve": "^10.0.0",
"release-it": "^14.2.2",
"rollup": "^2.33.3" "rollup": "^2.33.3"
}, },
"browserslist": [ "browserslist": [
"Android >= 4.0", "Android >= 4.0",
"iOS >= 8" "iOS >= 8"
] ],
"release-it": {
"git": {
"tag": false,
"commitMessage": "chore: release @vant/popperjs ${version}"
}
}
} }

File diff suppressed because it is too large Load Diff