File tree 1 file changed +13
-6
lines changed
packages/js/src/plugins/typescript 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -173,18 +173,25 @@ async function createNodesInternal(
173
173
* - hashes of the content of the relevant files that can affect what's inferred by the plugin:
174
174
* - current config file
175
175
* - config files extended by the current config file (recursively up to the root config file)
176
+ * - referenced config files that are internal to the owning Nx project of the current config file
176
177
* - lock file
177
178
* - hash of the plugin options
178
179
* - current config file path
179
180
*/
180
- const extendedConfigFiles = getExtendedConfigFiles (
181
- fullConfigPath ,
182
- readCachedTsConfig ( fullConfigPath )
181
+ const tsConfig = readCachedTsConfig ( fullConfigPath ) ;
182
+ const extendedConfigFiles = getExtendedConfigFiles ( fullConfigPath , tsConfig ) ;
183
+ const internalReferencedFiles = resolveInternalProjectReferences (
184
+ tsConfig ,
185
+ context . workspaceRoot ,
186
+ projectRoot
183
187
) ;
184
188
const nodeHash = hashArray ( [
185
- ...[ configFilePath , ...extendedConfigFiles . files , lockFileName ] . map (
186
- hashFile
187
- ) ,
189
+ ...[
190
+ configFilePath ,
191
+ ...extendedConfigFiles . files ,
192
+ ...Object . keys ( internalReferencedFiles ) ,
193
+ lockFileName ,
194
+ ] . map ( hashFile ) ,
188
195
hashObject ( options ) ,
189
196
] ) ;
190
197
const cacheKey = `${ nodeHash } _${ configFilePath } ` ;
You can’t perform that action at this time.
0 commit comments