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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
790f23301e
commit
a0a28c2e21
@@ -233,7 +233,7 @@
|
|||||||
"lint:tsc": "tsc --noemit",
|
"lint:tsc": "tsc --noemit",
|
||||||
"list-plugins": "./ts-node scripts/list-plugins.ts",
|
"list-plugins": "./ts-node scripts/list-plugins.ts",
|
||||||
"open-dist": "open ../dist/mac/Flipper.app --args --launcher=false --inspect=9229",
|
"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",
|
"prebuild": "yarn build:tsc && yarn rm-dist && yarn build:themes",
|
||||||
"predev-server": "yarn build:tsc",
|
"predev-server": "yarn build:tsc",
|
||||||
"preinstall": "node scripts/prepare-watchman-config.js && yarn config set ignore-engines",
|
"preinstall": "node scripts/prepare-watchman-config.js && yarn config set ignore-engines",
|
||||||
|
|||||||
@@ -10,8 +10,5 @@
|
|||||||
"keywords": [
|
"keywords": [
|
||||||
"Flipper"
|
"Flipper"
|
||||||
],
|
],
|
||||||
"author": "Facebook, Inc",
|
"author": "Facebook, Inc"
|
||||||
"scripts": {
|
|
||||||
"postinstall": "../ts-node ../scripts/gen-type-index.ts"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user