Skip to content

Commit

Permalink
Use ssh git access to avoid having access token in yarn.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkchen committed Jul 22, 2020
1 parent 00827ef commit 8eac0d1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 28 deletions.
1 change: 0 additions & 1 deletion .env.default
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
PERSONAL_ACCESS_TOKEN=insert_token_here
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
"tslint": "tslint -c tslint.json -p tsconfig.json",
"precommit": "lint-staged",
"docs": "bash scripts/docs/generate_docs.sh",
"prepublishOnly": "yarn build",
"postinstall": "node scripts/postinstall.js",
"preinstall": "eval $(egrep -v '^#' .env | xargs) node scripts/preinstall.js"
"prepublishOnly": "yarn build"
},
"config": {},
"repository": {
Expand Down Expand Up @@ -64,7 +62,7 @@
"dotenv": "^8.2.0",
"ethereum-types": "^3.2.0",
"ethereumjs-util": "^7.0.3",
"set-protocol-v2": "git+https://${$PERSONAL_ACCESS_TOKEN}:x-oauth-basic@github.com/SetProtocol/set-protocol-v2.git",
"set-protocol-v2": "git+ssh://git@github.com/SetProtocol/set-protocol-v2.git",
"truffle": "^5.1.35",
"truffle-hdwallet-provider": "^1.0.17",
"web3": "^1.2.11",
Expand Down Expand Up @@ -113,4 +111,4 @@
"^@test/(.*)": "<rootDir>/test/$1"
}
}
}
}
11 changes: 0 additions & 11 deletions scripts/postinstall.js

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/preinstall.js

This file was deleted.

4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6190,9 +6190,9 @@ set-blocking@^2.0.0:
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=

"set-protocol-v2@git+https://f896dad020d04b7bbbc4d946e21a4a576f37c005:x-oauth-basic@github.com/SetProtocol/set-protocol-v2.git":
"set-protocol-v2@git+ssh://git@github.com/SetProtocol/set-protocol-v2.git":
version "0.0.1"
resolved "git+https://f896dad020d04b7bbbc4d946e21a4a576f37c005:x-oauth-basic@github.com/SetProtocol/set-protocol-v2.git#3cc06895840e2284663427d8aebd6ddaaf8b310a"
resolved "git+ssh://git@github.com/SetProtocol/set-protocol-v2.git#3cc06895840e2284663427d8aebd6ddaaf8b310a"

set-value@^2.0.0, set-value@^2.0.1:
version "2.0.1"
Expand Down

0 comments on commit 8eac0d1

Please sign in to comment.