Skip to content

Commit

Permalink
chore: use @monorepo-utils/workspaces-to-typescript-project-references (
Browse files Browse the repository at this point in the history
  • Loading branch information
azu authored Aug 30, 2020
1 parent 59f69a5 commit eff1943
Show file tree
Hide file tree
Showing 19 changed files with 521 additions and 855 deletions.
6 changes: 4 additions & 2 deletions examples/use-as-ts-module/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"outDir": "lib"
},
"references": [
{ "path": "../../packages/textlint" }
{
"path": "../../packages/textlint"
}
],
"include": [
"src/**/*"
Expand All @@ -14,4 +16,4 @@
".git",
"node_modules"
]
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
"test:examples": "lerna run test:ci --scope textlint-example-*",
"test:integration": "lerna run test --scope integration-test",
"test:packages": "lerna run test --ignore integration-test --ignore textlint-example-* --ignore textlint-script-* --ignore textlint-website",
"test:projectReferences": "lerna-to-typescript-project-references",
"update:projectReferences": "lerna-to-typescript-project-references --update",
"test:projectReferences": "workspaces-to-typescript-project-references --check",
"update:projectReferences": "workspaces-to-typescript-project-references",
"prettier": "prettier --write \"packages/**/*.{js,jsx,ts,tsx,css}\"",
"yarn-check": "yarn check --integrity || (echo '=> Please run `$ yarn bootstrap`' && exit 1)"
},
"devDependencies": {
"@azu/lerna-to-typescript-project-references": "^1.0.3",
"@azu/travis-scripts": "^3.0.3",
"@monorepo-utils/collect-changelog": "^2.1.1",
"@monorepo-utils/collect-changelog": "^2.3.0",
"@monorepo-utils/workspaces-to-typescript-project-references": "^2.3.1",
"@typescript-eslint/eslint-plugin": "^3.6.0",
"@typescript-eslint/parser": "^3.6.0",
"conventional-changelog-angular-all": "^1.7.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/@textlint/ast-node-types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"exclude": [
".git",
"node_modules"
]
}
],
"references": []
}
22 changes: 17 additions & 5 deletions packages/@textlint/ast-tester/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"references": [{ "path": "../ast-node-types" }]
}
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{
"path": "../ast-node-types"
}
]
}
22 changes: 17 additions & 5 deletions packages/@textlint/ast-traverse/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"references": [{ "path": "../ast-node-types" }]
}
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{
"path": "../ast-node-types"
}
]
}
8 changes: 4 additions & 4 deletions packages/@textlint/feature-flag/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"rootDir": "src",
"outDir": "lib"

},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
]
}
],
"references": []
}
25 changes: 20 additions & 5 deletions packages/@textlint/fixer-formatter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"references": [{ "path": "../module-interop" }, { "path": "../types" }]
}
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{
"path": "../module-interop"
},
{
"path": "../types"
}
]
}
40 changes: 30 additions & 10 deletions packages/@textlint/kernel/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{ "path": "../ast-node-types" },
{ "path": "../ast-tester" },
{ "path": "../ast-traverse" },
{ "path": "../feature-flag" },
{ "path": "../types" },
{ "path": "../utils" }
{
"path": "../ast-node-types"
},
{
"path": "../ast-tester"
},
{
"path": "../ast-traverse"
},
{
"path": "../feature-flag"
},
{
"path": "../types"
},
{
"path": "../utils"
}
]
}
}
25 changes: 20 additions & 5 deletions packages/@textlint/linter-formatter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"references": [{ "path": "../module-interop" }, { "path": "../types" }]
}
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{
"path": "../module-interop"
},
{
"path": "../types"
}
]
}
2 changes: 1 addition & 1 deletion packages/@textlint/markdown-to-ast/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"path": "../ast-node-types"
}
]
}
}
8 changes: 4 additions & 4 deletions packages/@textlint/module-interop/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"rootDir": "src",
"outDir": "lib"

},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
]
}
],
"references": []
}
2 changes: 1 addition & 1 deletion packages/@textlint/text-to-ast/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"path": "../ast-node-types"
}
]
}
}
22 changes: 17 additions & 5 deletions packages/@textlint/textlint-plugin-markdown/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"references": [{ "path": "../markdown-to-ast" }]
}
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{
"path": "../markdown-to-ast"
}
]
}
22 changes: 17 additions & 5 deletions packages/@textlint/textlint-plugin-text/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"references": [{ "path": "../text-to-ast" }]
}
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{
"path": "../text-to-ast"
}
]
}
22 changes: 17 additions & 5 deletions packages/@textlint/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"references": [{ "path": "../ast-node-types" }]
}
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{
"path": "../ast-node-types"
}
]
}
5 changes: 3 additions & 2 deletions packages/@textlint/utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"exclude": [
".git",
"node_modules"
]
}
],
"references": []
}
28 changes: 21 additions & 7 deletions packages/textlint-tester/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": { "rootDir": "src", "outDir": "lib" },
"include": ["src/**/*"],
"exclude": [".git", "node_modules"],
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src/**/*"
],
"exclude": [
".git",
"node_modules"
],
"references": [
{ "path": "../@textlint/feature-flag" },
{ "path": "../@textlint/kernel" },
{ "path": "../textlint" }
{
"path": "../@textlint/feature-flag"
},
{
"path": "../@textlint/kernel"
},
{
"path": "../textlint"
}
]
}
}
Loading

0 comments on commit eff1943

Please sign in to comment.