Skip to content

Commit 0ec7386

Browse files
committed
fix(linting): add missing tsc project references between lint packages
Without these references, tsc -b couldn't resolve @equinor/fusion-framework-lint-core / lint-config types when a package was built in isolation (as happens during npm publish's prepack step). This caused the publish job for PR #5166 to fail partway through, leaving react-router@2.4.0, the CLI, and most other packages tagged but never published to npm.
1 parent 3fe37ab commit 0ec7386

5 files changed

Lines changed: 18 additions & 4 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@equinor/fusion-lint": patch
3+
"@equinor/fusion-framework-lint-lsp": patch
4+
"@equinor/fusion-framework-lint-config": patch
5+
"@equinor/fusion-framework-lint-rules": patch
6+
---
7+
8+
Internal: add missing TypeScript project `references` between the linting packages (`lint-core`, `lint-rules`, `lint-config`, `fusion-lint`, `lint-lsp`).
9+
10+
Without these references, `tsc -b` couldn't resolve `@equinor/fusion-framework-lint-core`/`lint-config` types when a package was built in isolation (as happens during `npm publish`'s `prepack` step), causing the previous release's publish to fail partway through.

packages/linting/cli/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"declarationDir": "./dist/types"
77
},
88
"include": ["src/**/*"],
9-
"exclude": ["node_modules"]
9+
"exclude": ["node_modules"],
10+
"references": [{ "path": "../core" }, { "path": "../config" }]
1011
}

packages/linting/config/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"declarationDir": "./dist/types"
77
},
88
"include": ["src/**/*"],
9-
"exclude": ["node_modules"]
9+
"exclude": ["node_modules"],
10+
"references": [{ "path": "../core" }, { "path": "../rules" }]
1011
}

packages/linting/lsp/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"declarationDir": "./dist/types"
99
},
1010
"include": ["src/**/*"],
11-
"exclude": ["node_modules"]
11+
"exclude": ["node_modules"],
12+
"references": [{ "path": "../core" }, { "path": "../config" }]
1213
}

packages/linting/rules/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"declarationDir": "./dist/types"
77
},
88
"include": ["src/**/*"],
9-
"exclude": ["node_modules"]
9+
"exclude": ["node_modules"],
10+
"references": [{ "path": "../core" }]
1011
}

0 commit comments

Comments
 (0)