Skip to content

Commit 1e0423b

Browse files
authored
fix(js): provide absolute paths to hashFile function in @nx/js/typescript plugin (#28690)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
1 parent dbbc3fc commit 1e0423b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/js/src/plugins/typescript/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ async function createNodesInternal(
187187
);
188188
const nodeHash = hashArray([
189189
...[
190-
configFilePath,
190+
fullConfigPath,
191191
...extendedConfigFiles.files,
192192
...Object.keys(internalReferencedFiles),
193-
lockFileName,
193+
join(context.workspaceRoot, lockFileName),
194194
].map(hashFile),
195195
hashObject(options),
196196
]);

0 commit comments

Comments
 (0)