Skip to content

Commit

Permalink
Fix caching
Browse files Browse the repository at this point in the history
TypeScript can take a directory name in its `include` field, but Nx also
uses that to determine which files are inputs, for calculating the cache
hash, and it *doesn't* support a directory name. Instead, it requires a
full glob.
  • Loading branch information
Peeja committed Feb 18, 2025
1 parent 95f3695 commit 142b73d
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.tsconfigs.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ should look like the following:
// tsconfig.lib.json or tsconfig.app.json
{
"extends": "./tsconfig.json",
"include": ["src"],
"include": ["src/**/*"],
"references": []
}

// tsconfig.spec.json
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/access-client/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/blob-index/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src", "src/api.js"],
"include": ["src/**/*"],
"references": [
{
"path": "../capabilities/tsconfig.lib.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/blob-index/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/capabilities/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
"include": ["src/**/*"],
"references": [
{
"path": "../eslint-config-w3up/tsconfig.lib.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/capabilities/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/did-mailto/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/filecoin-api/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/filecoin-client/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/examples/react/components/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/examples/react/file-upload/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test", "./*.js"],
"include": ["test/**/*", "./*.js"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/examples/react/sign-up-in/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/examples/react/uploads-list/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/examples/test/playwright/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["."],
"include": ["./**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/packages/core/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/packages/react/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-api/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-client/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/w3up-client/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["test"],
"include": ["test/**/*"],
"compilerOptions": {
"rootDir": "."
},
Expand Down

0 comments on commit 142b73d

Please sign in to comment.