Re-use base tsconfig options
Summary: Added tsconfig.base.json and extend other tsconfigs from it. Reviewed By: passy Differential Revision: D20594653 fbshipit-source-id: 28dd80262613e78a7c4ce25fa31f251537ec2b06
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a2c43653cf
commit
06cd90562d
3
desktop/.gitignore
vendored
Normal file
3
desktop/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
lib/
|
||||||
|
node_modules/
|
||||||
|
*.tsbuildinfo
|
||||||
2
desktop/doctor/.gitignore
vendored
2
desktop/doctor/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
/lib
|
|
||||||
node_modules/
|
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
"typescript": "^3.7.2"
|
"typescript": "^3.7.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc -b",
|
||||||
"prepare": "yarn run build",
|
"prepare": "yarn run build",
|
||||||
"prepublishOnly": "yarn test && yarn run lint",
|
"prepublishOnly": "yarn test && yarn run lint",
|
||||||
"preversion": "yarn run lint",
|
"preversion": "yarn run lint",
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["es7", "dom", "es2017"],
|
"outDir": "lib",
|
||||||
"target": "es5",
|
"rootDir": "src"
|
||||||
"module": "commonjs",
|
|
||||||
"declaration": true,
|
|
||||||
"outDir": "./lib",
|
|
||||||
"strict": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["node_modules", "**/__tests__/*"]
|
"exclude": ["node_modules", "**/__tests__/*"]
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
/lib
|
|
||||||
2
desktop/pkg/.gitignore
vendored
2
desktop/pkg/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
/lib
|
|
||||||
/node_modules/
|
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
"typescript": "^3.7.2"
|
"typescript": "^3.7.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc -b",
|
||||||
"postpack": "rm -f oclif.manifest.json",
|
"postpack": "rm -f oclif.manifest.json",
|
||||||
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
|
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
|
||||||
"prepare": "yarn run build",
|
"prepare": "yarn run build",
|
||||||
|
|||||||
@@ -1,17 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2017",
|
|
||||||
"module": "commonjs",
|
|
||||||
"declaration": true,
|
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"strict": true,
|
|
||||||
"importHelpers": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"allowJs": true
|
"allowJs": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src"],
|
||||||
"src/**/*"
|
"exclude": ["node_modules", "**/__tests__/*"]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
16
desktop/tsconfig.base.json
Normal file
16
desktop/tsconfig.base.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"lib": ["es7", "dom", "es2017"],
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"target": "ES2017",
|
||||||
|
"removeComments": true,
|
||||||
|
"preserveConstEnums": true,
|
||||||
|
"sourceMap": true,
|
||||||
|
"jsx": "react",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": true,
|
||||||
|
"incremental": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,25 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "./tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
|
||||||
"lib": ["es7", "dom", "es2017"],
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"target": "es6",
|
|
||||||
"removeComments": true,
|
|
||||||
"preserveConstEnums": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"jsx": "react",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"downlevelIteration": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"flipper": ["./app/src"],
|
"flipper": ["./app/src"],
|
||||||
"flipper-doctor": ["./doctor/src"],
|
"flipper-doctor": ["./doctor/src"],
|
||||||
"flipper-pkg": ["./pkg/src"],
|
"flipper-pkg": ["./pkg/src"],
|
||||||
"live-plugin-manager": ["./types/live-plugin-manager.d.tsx"]
|
"live-plugin-manager": ["./types/live-plugin-manager.d.tsx"]
|
||||||
},
|
}
|
||||||
"strict": true
|
|
||||||
},
|
},
|
||||||
"include": ["src/**/*", "doctor/**/*", "pkg/**/*", "static/**/*", "scripts/**/*", "types/**/*", "headless/**/*", "plugins/**/*"],
|
"include": [
|
||||||
|
"src/**/*",
|
||||||
|
"doctor/**/*",
|
||||||
|
"pkg/**/*",
|
||||||
|
"static/**/*",
|
||||||
|
"scripts/**/*",
|
||||||
|
"types/**/*",
|
||||||
|
"headless/**/*",
|
||||||
|
"plugins/**/*"
|
||||||
|
],
|
||||||
"exclude": ["node_modules", "**/*.spec.ts"]
|
"exclude": ["node_modules", "**/*.spec.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user