Install ignored files with NPM

无人久伴 提交于 2019-12-10 15:59:13

问题


The package is listed in project dependencies:

  "name": "project",
  "devDependencies": {
    "package": "*"
  }

Some of the files in installed package are ignored by blacklisting (.npmignore) or by whitelisting:

  "name": "package",
  "files": [
    "lib/",
    "index.js",
    "LICENSE",
    "README.md"
  ],

Forking it and changing ignore settings is not an option for me. I would prefer to have it in node_modules and require it like normal package, and doing things like git clone in npm install script looks like a terrible idea because it is dev dependency and shouldn't be installed for users who add project as a dependency.

Can package repo be installed entirely on npm i, including ignored files? What are the options?

来源:https://stackoverflow.com/questions/35446639/install-ignored-files-with-npm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!