From 74fa34fe984586ae11c4ff1535c82878e5de3bd4 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Wed, 22 Dec 2021 03:17:46 -0800 Subject: [PATCH] Fixed generation of plugin entry point after compilation Summary: This diff fixes an issue, that due to recent changes `defaultPlugins/index.tsx` wouldn't compile without being regenerated. This caused issue for people after updating and running `yarn install`. This diff fixes the build order to first generate the file, then compile Reviewed By: nikoant Differential Revision: D33276108 fbshipit-source-id: 318a9c8434ecf3cae3b15474fa045e93ad5ffc42 --- desktop/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/package.json b/desktop/package.json index 7eb6ea86b..3efd52e5b 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -134,7 +134,7 @@ "lint:tsc": "tsc -p tsc-root/tsconfig.json --noemit", "list-plugins": "./ts-node scripts/list-plugins.ts", "open-dist": "open ../dist/mac/Flipper.app --args --launcher=false --inspect=9229", - "postinstall": "patch-package && yarn --cwd plugins install --mutex network:30331 && yarn build:tsc && ./ts-node scripts/generate-plugin-entry-points.ts && yarn build:themes", + "postinstall": "patch-package && yarn --cwd plugins install --mutex network:30331 && yarn tsc -b pkg-lib/tsconfig.json && ./ts-node scripts/generate-plugin-entry-points.ts && yarn build:tsc && yarn build:themes", "prebuild": "yarn build:tsc && yarn rm-dist && yarn build:themes", "preinstall": "node scripts/prepare-watchman-config.js && yarn config set ignore-engines", "prelint:eslint": "yarn build:eslint",