aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-02 04:36:22 +0800
committerFabio Berger <me@fabioberger.com>2018-06-02 04:36:22 +0800
commita5896ac6b6033d315e5b845dc706466046c40b38 (patch)
tree30cd2e62ee9cdfb26f0898fe92c87abf9b6769d2
parent94b9d5644c0d2536e3426ff9e9bd938a96a671ed (diff)
downloaddexon-sol-tools-a5896ac6b6033d315e5b845dc706466046c40b38.tar.gz
dexon-sol-tools-a5896ac6b6033d315e5b845dc706466046c40b38.tar.zst
dexon-sol-tools-a5896ac6b6033d315e5b845dc706466046c40b38.zip
Add postinstall hack to get around `yarn` not setting up symlinks properly. This is a temporary fix while we wait on: https://github.com/yarnpkg/yarn/issues/5907
-rw-r--r--package.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/package.json b/package.json
index cdbc7a385..c60833e75 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,9 @@
"rebuild": "run-s clean build",
"test": "wsrun test $PKG --fast-exit --serial --exclude-missing",
"stage_docs": "wsrun docs:stage $PKG --fast-exit --parallel --exclude-missing",
- "lint": "wsrun lint $PKG --fast-exit --parallel --exclude-missing"
+ "lint": "wsrun lint $PKG --fast-exit --parallel --exclude-missing",
+ "comment:postinstall": "HACK: For some reason `yarn` is not setting up symlinks properly for order-utils. We temporarily set them manually. Remove this after V2 refactor is complete.",
+ "postinstall": "rm -rf `pwd`/packages/order-utils/node_modules/@0xproject; mkdir `pwd`/packages/order-utils/node_modules/@0xproject; ln -s `pwd`/packages/json-schemas `pwd`/packages/order-utils/node_modules/@0xproject/json-schemas; ln -s `pwd`/packages/types `pwd`/packages/order-utils/node_modules/@0xproject/types"
},
"config": {
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic"