mirror of https://github.com/embarklabs/embark.git
fix: supply missing tsconfig.json in packages/*
Relative `"include"` path/s in a `tsconfig.json` are relative to the directory in which the config is located, so each monorepo package that uses typescript needs its own `tsconfig.json` that `"extends"` the root config. For now, disable the `"typecheck"` script in embark-graph and embark-vyper, but leave the relevant pieces in place (devDeps, configs) so that when they're converted to TypeScript the scripts can simply be re-enabled. The problem is that if no `.ts` files are present in the path/s specified in `"include"` of `tsconfig.json`, tsc will exit with error.
This commit is contained in:
parent
41fb31ae73
commit
376b6cacd6
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src/**/*"]
|
||||
}
|
|
@ -28,13 +28,14 @@
|
|||
"lint:js": "eslint src/",
|
||||
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
|
||||
"package": "npm pack",
|
||||
"qa": "npm-run-all lint typecheck build package",
|
||||
"// qa": "npm-run-all lint typecheck build package",
|
||||
"qa": "npm-run-all lint build package",
|
||||
"reset": "npm run clean && npx rimraf node_modules",
|
||||
"start": "npm run watch",
|
||||
"typecheck": "tsc",
|
||||
"// typecheck": "tsc",
|
||||
"watch": "run-p watch:*",
|
||||
"watch:build": "npm run build -- --verbose --watch",
|
||||
"watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
|
||||
"// watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "../../.eslintrc.json"
|
||||
|
@ -60,4 +61,3 @@
|
|||
"yarn": ">=1.12.3"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src/**/*"]
|
||||
}
|
|
@ -25,13 +25,14 @@
|
|||
"lint:js": "eslint src/",
|
||||
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
|
||||
"package": "npm pack",
|
||||
"qa": "npm-run-all lint typecheck build package",
|
||||
"// qa": "npm-run-all lint typecheck build package",
|
||||
"qa": "npm-run-all lint build package",
|
||||
"reset": "npm run clean && npx rimraf node_modules",
|
||||
"start": "npm run watch",
|
||||
"typecheck": "tsc",
|
||||
"// typecheck": "tsc",
|
||||
"watch": "run-p watch:*",
|
||||
"watch:build": "npm run build -- --verbose --watch",
|
||||
"watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
|
||||
"// watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "../../.eslintrc.json"
|
||||
|
@ -57,4 +58,3 @@
|
|||
"yarn": ">=1.12.3"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src/**/*"]
|
||||
}
|
|
@ -1,7 +1,4 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noImplicitThis": false
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"lib": ["ES2017"],
|
||||
"module": "CommonJS",
|
||||
"noEmit": true,
|
||||
"noImplicitThis": false,
|
||||
"strict": true,
|
||||
"target": "ES2017"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue