在npm软件包中使用postinstall可以安全吗?

时间:2019-10-09 06:12:48

标签: npm npm-install post-install

我想在包装中使用npm postinstall钩子来达到我的要求。使用起来安全吗,我是说会造成安全问题吗?

我正在如下使用:

  "scripts": {
    "postinstall" : "node ./tagchange.js",
    "scripts": "gulp schematics-tasks && gulp schematics-remove && gulp adding-externals && npm run packagr",
    "bundle": "rollup -c rollup.config.js"
  },

0 个答案:

没有答案