diff --git a/.env.default b/.env.default index 9a5a5946..e69de29b 100644 --- a/.env.default +++ b/.env.default @@ -1 +0,0 @@ -PERSONAL_ACCESS_TOKEN=insert_token_here diff --git a/package.json b/package.json index 6e2af533..7488a7a7 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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", @@ -113,4 +111,4 @@ "^@test/(.*)": "/test/$1" } } -} \ No newline at end of file +} diff --git a/scripts/postinstall.js b/scripts/postinstall.js deleted file mode 100644 index cc8d7c09..00000000 --- a/scripts/postinstall.js +++ /dev/null @@ -1,11 +0,0 @@ -require('dotenv').config(); - -const package = require('../package.json'); -const fs = require('fs'); - -const { PERSONAL_ACCESS_TOKEN } = process.env; - -package.dependencies["set-protocol-v2"] = package.dependencies["set-protocol-v2"] - .replace(PERSONAL_ACCESS_TOKEN, "${$PERSONAL_ACCESS_TOKEN}"); - -fs.writeFileSync('package.json', JSON.stringify(package, null, 4)); diff --git a/scripts/preinstall.js b/scripts/preinstall.js deleted file mode 100644 index c8e0752d..00000000 --- a/scripts/preinstall.js +++ /dev/null @@ -1,9 +0,0 @@ -const package = require('../package.json'); -const fs = require('fs'); - -const { PERSONAL_ACCESS_TOKEN } = process.env; - -package.dependencies["set-protocol-v2"] = package.dependencies["set-protocol-v2"] - .replace("${$PERSONAL_ACCESS_TOKEN}", PERSONAL_ACCESS_TOKEN); - -fs.writeFileSync('package.json', JSON.stringify(package, null, 4)); diff --git a/yarn.lock b/yarn.lock index da70beba..a9ac97bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"