Skip to content

Commit

Permalink
build(tsconfig): separate tsconfig by package instead of a single root
Browse files Browse the repository at this point in the history
this seems to allow better autocompletion and imports now.
  • Loading branch information
mlaursen committed Apr 21, 2021
1 parent 7e413d6 commit b278230
Show file tree
Hide file tree
Showing 35 changed files with 329 additions and 26 deletions.
10 changes: 10 additions & 0 deletions packages/alert/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/app-bar/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/autocomplete/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/avatar/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/badge/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/button/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/card/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/chip/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/dev-utils/src/configs.ts
Expand Up @@ -11,6 +11,15 @@ import {
} from "./constants";
import { clean, getDependencies, getPackages, glob } from "./utils";

const TSCONFIG = {
extends: "../../tsconfig.base.json",
compilerOptions: {
noEmit: true,
composite: false,
},
include: ["src"],
};

const BASE_ESJ_CONFIG = {
extends: "../../tsconfig.base.json",
compilerOptions: {
Expand Down Expand Up @@ -113,6 +122,7 @@ export async function configs(): Promise<void> {
const ejsConfig = createTSConfig("ejs", rmdTsDependencies);
const cjsConfig = createTSConfig("cjs", rmdTsDependencies);
promises.push(
writeJson(join(path, "tsconfig.json"), TSCONFIG),
writeJson(join(path, "tsconfig.ejs.json"), ejsConfig),
writeJson(join(path, "tsconfig.cjs.json"), cjsConfig)
);
Expand Down
10 changes: 10 additions & 0 deletions packages/dialog/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/divider/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
7 changes: 6 additions & 1 deletion packages/documentation/tsconfig.json
Expand Up @@ -9,7 +9,12 @@
"target": "esnext",
"rootDir": "src",
"baseUrl": "src",
"isolatedModules": true
"isolatedModules": true,
"paths": {
"@react-md/*": [
"../*"
]
}
},
"include": [
"src"
Expand Down
10 changes: 10 additions & 0 deletions packages/expansion-panel/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/form/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/icon/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/layout/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/link/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/list/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
9 changes: 3 additions & 6 deletions packages/material-icons/tsconfig.json
@@ -1,13 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": false,
"outDir": "./bin",
"rootDir": "scripts",
"target": "es5",
"module": "commonjs"
"noEmit": true,
"composite": false
},
"include": [
"scripts"
"src"
]
}
10 changes: 10 additions & 0 deletions packages/media/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/menu/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/overlay/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/portal/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/progress/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/react-md/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/sheet/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/states/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/table/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/tabs/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/tooltip/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/transition/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/tree/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/typography/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions packages/utils/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false
},
"include": [
"src"
]
}

0 comments on commit b278230

Please sign in to comment.