我使用Gem Fury作爲我們的一些私人包裝。我設置了紗線註冊表使用其代理的公共和我們的私人節點模塊:當運行紗線時,使用來自bash的私人令牌生成yarn.lock文件
yarn config set registry "https://npm-proxy.fury.io/$GEMFURY_TOKEN/username"
GEMFURY_TOKEN
設在.bash
。 yarn config get registry
生產:
https://npm-proxy.fury.io/$(GEMFURY_TOKEN)/username
當我們運行yarn
,該yarn.lock
文件會產生這樣的:
[email protected]:
version "0.1.0"
resolved "https://npm.fury.io/username/private-module/-/0.1.0.tgz?auth=<GEMFURY TOKEN>"
dependencies:
ember-cli-babel "^5.1.6"
[email protected]:
version "0.1.4"
resolved "https://npm.fury.io/username/private-module-2/-/0.1.4.tgz?auth=<GEMFURY TOKEN>"
dependencies:
ember-cli-babel "^5.1.6"
ember-inflector "^1.9.6"
我不想在git倉庫專用標記。有沒有一種方法可以將令牌從添加到yarn.lock
文件中排除?
我正面臨與MyGet上託管的私人NPM Feed相同的問題。 –