Skip to content

Commit 1831f12

Browse files
authored
Post install script fix (#9524)
Update the override detection logic to make sure the full path exists in project (not just the module).
1 parent a94dc0b commit 1831f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm-postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const getPath = (p) => {
1414

1515
if (
1616
pathParts[0] === 'modules' &&
17-
fs.existsSync(path.join(__dirname, 'project', 'modules', pathParts[1]))
17+
fs.existsSync(path.join(__dirname, 'project', ...pathParts))
1818
) {
1919
return path.join('project', p);
2020
}

0 commit comments

Comments
 (0)