From a0a28c2e21b0662a60fd37264b912a46e8b21e6c Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 25 Mar 2021 16:26:47 -0700 Subject: [PATCH] Fix ts-node for Windows (#2101) Summary: Somehow referring to the parent directory doesn't work on Windows. Please don't ask me why. Given that we run a script from outside the package doing it on the top-level seems more consistent anyway. Pull Request resolved: https://github.com/facebook/flipper/pull/2101 Test Plan: Yarn on Windows succeeds: https://github.com/facebook/flipper/pull/2101/checks?check_run_id=2195613718 Reviewed By: fabiomassimo Differential Revision: D27335250 Pulled By: passy fbshipit-source-id: aaccdb3f7e78ca264b371a7723c9bad065919d45 --- desktop/package.json | 2 +- desktop/types/package.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/desktop/package.json b/desktop/package.json index a20775f0b..853c33f3e 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -233,7 +233,7 @@ "lint:tsc": "tsc --noemit", "list-plugins": "./ts-node scripts/list-plugins.ts", "open-dist": "open ../dist/mac/Flipper.app --args --launcher=false --inspect=9229", - "postinstall": "patch-package && ./ts-node scripts/yarn-install-fb-plugins.ts && yarn build:tsc && ./ts-node scripts/generate-plugin-entry-points.ts && yarn build:themes", + "postinstall": "patch-package && ./ts-node scripts/gen-type-index.ts &&./ts-node scripts/yarn-install-fb-plugins.ts && yarn build:tsc && ./ts-node scripts/generate-plugin-entry-points.ts && yarn build:themes", "prebuild": "yarn build:tsc && yarn rm-dist && yarn build:themes", "predev-server": "yarn build:tsc", "preinstall": "node scripts/prepare-watchman-config.js && yarn config set ignore-engines", diff --git a/desktop/types/package.json b/desktop/types/package.json index bcb027fc2..9225a26d2 100644 --- a/desktop/types/package.json +++ b/desktop/types/package.json @@ -10,8 +10,5 @@ "keywords": [ "Flipper" ], - "author": "Facebook, Inc", - "scripts": { - "postinstall": "../ts-node ../scripts/gen-type-index.ts" - } + "author": "Facebook, Inc" }