Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Fix ts-node for Windows (#2101)
Browse files Browse the repository at this point in the history
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: #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
  • Loading branch information
passy authored and facebook-github-bot committed Mar 25, 2021
1 parent 790f233 commit a0a28c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions desktop/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"keywords": [
"Flipper"
],
"author": "Facebook, Inc",
"scripts": {
"postinstall": "../ts-node ../scripts/gen-type-index.ts"
}
"author": "Facebook, Inc"
}

0 comments on commit a0a28c2

Please sign in to comment.