From a5896ac6b6033d315e5b845dc706466046c40b38 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 1 Jun 2018 13:36:22 -0700 Subject: 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 --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3