Skip to content

Commit

Permalink
Use composite, incremental, project references
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrttn committed Nov 2, 2023
1 parent ea3d637 commit b3b5de1
Show file tree
Hide file tree
Showing 21 changed files with 102 additions and 40 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
dist/
tsconfig.tsbuildinfo
5 changes: 3 additions & 2 deletions packages/abbr/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
10 changes: 8 additions & 2 deletions packages/analyze-step/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/",
"paths": {
"@transloadit/format-duration-ms": ["../format-duration-ms"],
"@transloadit/prettier-bytes": ["../prettier-bytes"]
}
},
"include": ["./src"]
"references": [{ "path": "../format-duration-ms" }, { "path": "../prettier-bytes" }],
"include": ["src/"]
}
2 changes: 1 addition & 1 deletion packages/enrich-tweet/src/enrichTweet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function tryUnshorten(url: string, unshorten: boolean): Promise<string> {
}

type Tweet = {
full_text: string
full_text?: string
entities?: {
urls: {
display_url: string
Expand Down
5 changes: 3 additions & 2 deletions packages/enrich-tweet/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
5 changes: 3 additions & 2 deletions packages/file-exists/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
5 changes: 3 additions & 2 deletions packages/format-duration-ms/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
5 changes: 3 additions & 2 deletions packages/has-property/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
3 changes: 1 addition & 2 deletions packages/post/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import openInEditor from 'open-in-editor'
import fileExists from '@transloadit/file-exists'
import slugify from '@transloadit/slugify'
import title from 'title'
import packageJson from '../package.json'

async function post(): Promise<void> {
console.log(`Welcome to @transloadit/post@${packageJson.version}. `)
console.log(`Welcome to @transloadit/post.`)
console.log(`Please answer some questions about the blog post, `)
console.log(`and I'll generate a starting point and open your editor. `)

Expand Down
12 changes: 9 additions & 3 deletions packages/post/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"resolveJsonModule": true
"outDir": "dist/",
"resolveJsonModule": true,
"rootDir": "src/",
"paths": {
"@transloadit/file-exists": ["../file-exists"],
"@transloadit/slugify": ["../slugify"]
}
},
"include": ["./src"]
"references": [{ "path": "../file-exists" }, { "path": "../slugify" }],
"include": ["src/"]
}
5 changes: 3 additions & 2 deletions packages/pr/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
5 changes: 3 additions & 2 deletions packages/prd/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
5 changes: 3 additions & 2 deletions packages/prettier-bytes/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
5 changes: 3 additions & 2 deletions packages/slugify/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
15 changes: 13 additions & 2 deletions packages/sort-assembly/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/",
"paths": {
"@transloadit/has-property": ["../has-property"],
"@transloadit/sort-object-by-prio": ["../sort-object-by-prio"],
"@transloadit/sort-result": ["../sort-result"]
}
},
"include": ["./src"]
"references": [
{ "path": "../has-property" },
{ "path": "../sort-object-by-prio" },
{ "path": "../sort-result" }
],
"include": ["src/"]
}
9 changes: 7 additions & 2 deletions packages/sort-object-by-prio/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/",
"paths": {
"@transloadit/has-property": ["../sort-object"]
}
},
"include": ["./src"]
"references": [{ "path": "../sort-object" }],
"include": ["src/"]
}
9 changes: 7 additions & 2 deletions packages/sort-object/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/",
"paths": {
"@transloadit/has-property": ["../has-property"]
}
},
"include": ["./src"]
"references": [{ "path": "../has-property" }],
"include": ["src/"]
}
10 changes: 8 additions & 2 deletions packages/sort-result-meta/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/",
"paths": {
"@transloadit/has-property": ["../has-property"],
"@transloadit/sort-object-by-prio": ["../sort-object-by-prio"]
}
},
"include": ["./src"]
"references": [{ "path": "../has-property" }, { "path": "../sort-object-by-prio" }],
"include": ["src/"]
}
15 changes: 13 additions & 2 deletions packages/sort-result/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/",
"paths": {
"@transloadit/has-property": ["../has-property"],
"@transloadit/sort-object-by-prio": ["../sort-object-by-prio"],
"@transloadit/sort-result": ["../sort-result-meta"]
}
},
"include": ["./src"]
"references": [
{ "path": "../has-property" },
{ "path": "../sort-object-by-prio" },
{ "path": "../sort-result-meta" }
],
"include": ["src/"]
}
5 changes: 3 additions & 2 deletions packages/trigger-pager/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "dist/",
"rootDir": "src/"
},
"include": ["./src"]
"include": ["src/"]
}
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"sourceMap": true,
"skipLibCheck": true,
"lib": ["es2022"],
"types": ["node", "jest"]
"types": ["node", "jest"],
"composite": true,
"incremental": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}

0 comments on commit b3b5de1

Please sign in to comment.