[英]How to access .bin scripts of sub-dependencies using in node_modules/
我正在嘗試構建類似react-scripts
/ kcd-scripts
假設按照上面的圖片library
是我想消費my-scripts
(A包),其中有安裝像所有的依賴eslint
, prettier
等。
所有.bin/
為ESLint腳本,更漂亮是我提供node_modules/
為my-scripts
(套餐一)
當我在library
使用my-scripts
(包A)時,來自Package A
所有對等依賴項都在我的node_modules/
中的library
中可用,但.bin/
腳本卻不可用。
有人可以指出我正確的方向嗎?
解決這個問題
幫助我https://github.com/danielbischoff/shared-webpack-config/wiki的資源,顯然花了更多時間了解kcd-scripts / react-scripts😄
解:
我需要使用Package A
eslint CliEngine之類的東西導出漂亮/ eslint,以便在庫中使用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.