From 70da4b1c5452a972498219236cacac300b82ab8b Mon Sep 17 00:00:00 2001 From: Dmitry Naumov Date: Tue, 26 Nov 2019 09:43:54 +0300 Subject: [PATCH] fix(eslint): fix again npm local module installation (#27) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5e357e5..1c8c56c 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "pretest:ci": "node -r ts-node/register $NODE_DEBUG_OPTION node_modules/.bin/tslint --test ./test/rules/**/tslint.json", "test:ci": "jest --ci --config=\"./jest.config.ci.json\"", "preversion": "npm run build:prod", - "postinstall": "npm i --no-save ./eslint/rules" + "********** Local dependency fix with hoisting. https://github.com/npm/npm/issues/18266. Uses npm-defined INIT_CWD env https://docs.npmjs.com/cli/run-script#description": "", + "postinstall": "cd \"${INIT_CWD}\"; npm i --no-save --no-package-lock ./node_modules/@tinkoff/linters/eslint/rules/ || npm i --no-save --no-package-lock ./eslint/rules/" }, "author": { "name": "Tinkoff Team",