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:
Michael Bradley, Jr 2019-02-06 16:03:13 -06:00 committed by Michael Bradley
parent 41fb31ae73
commit 376b6cacd6
7 changed files with 21 additions and 11 deletions

View File

@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"]
}

View File

@ -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"
}
}

View File

@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"]
}

View File

@ -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"
}
}

View File

@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"]
}

View File

@ -1,7 +1,4 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"noImplicitThis": false
},
"include": ["src/**/*"]
}

View File

@ -5,6 +5,7 @@
"lib": ["ES2017"],
"module": "CommonJS",
"noEmit": true,
"noImplicitThis": false,
"strict": true,
"target": "ES2017"
}