Use typescript references for incremental compilation of pkg

Summary: "flipper-pkg" has dependency to "flipper-babel-transformer" and we use typescript to compile both of them, so we can use references here for incremental compilation.

Reviewed By: mweststrate

Differential Revision: D21070251

fbshipit-source-id: eadef024cebe8a85ddb8ef4e62bd613752a13c06
This commit is contained in:
Anton Nikolaev
2020-04-17 05:15:55 -07:00
committed by Facebook GitHub Bot
parent ebfd045328
commit f0ee6f9749
4 changed files with 3 additions and 12 deletions

View File

@@ -4,7 +4,8 @@
"outDir": "lib",
"rootDir": "src",
"allowJs": true,
"esModuleInterop": true
"esModuleInterop": true,
"composite": true
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*"]

View File

@@ -38,7 +38,6 @@
},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",
"prebuild": "cd ../babel-transformer && yarn build",
"build": "tsc -b",
"postpack": "rimraf oclif.manifest.json",
"prepack": "yarn reset && yarn build && oclif-dev manifest && oclif-dev readme",

View File

@@ -6,6 +6,7 @@
"allowJs": true,
"esModuleInterop": true
},
"references": [{"path": "../babel-transformer"}],
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*"]
}

View File

@@ -10,15 +10,5 @@
"flipper-babel-transformer": ["./babel-transformer/src"]
}
},
"include": [
"src/**/*",
"doctor/**/*",
"pkg/**/*",
"static/**/*",
"scripts/**/*",
"types/**/*",
"headless/**/*",
"plugins/**/*"
],
"exclude": ["node_modules", "**/*.spec.ts"]
}