Skip to content

Commit

Permalink
fix: Do not fail on symlink creation if node_modules doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Jul 19, 2024
1 parent 6b3e8e2 commit d90dadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/setup-dependency/setup-local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = async (dependencyContext, userConfiguration, inputOptions, prog
);
const isInstalled = await lstat(path, { loose: true });
await rm(path, { loose: true, recursive: true, force: true });
await fsp.symlink(linkedPath, path);
await fsp.symlink(linkedPath, path, { intermediate: true });
dependentContext.installationJobs.add(
`${ isInstalled ? "update" : "install" }-dependency:${ name }`
);
Expand Down

0 comments on commit d90dadb

Please sign in to comment.