追求友好的 npm publish,让你发布的包支持低版本 node 的运行环境
firstly, install global by npm:
npm install npm-publish-helper-oh -g
then, go to the package root directory, (same as npm publish)
nph publish
{
"presets": [
"@babel/preset-env"
],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }],
"@babel/plugin-transform-runtime"
]
}
有任何意见或建议都欢迎提 issue
MIT