Skip to content

Commit 6e47610

Browse files
committed
Follow symbolic links when collecting package.json files
1 parent b344a95 commit 6e47610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/copyPackageJsonFiles.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525
echo "copyPackageJsonFiles: Existing package.json files will be copied from from ${SOURCE_DIRECTORY} to ../${ARTIFACTS_DIRECTORY}/${NPM_PACKAGE_JSON_ARTIFACTS_DIRECTORY}"
2626
echo "copyPackageJsonFiles: Author will be removed as workaround for https://github.com/jqassistant-plugin/jqassistant-npm-plugin/issues/5"
2727

28-
for file in $( find . -type d -name node_modules -prune -o -name 'package.json' -print0 | xargs -0 -r -I {}); do
28+
for file in $( find -L . -type d -name node_modules -prune -o -name 'package.json' -print0 | xargs -0 -r -I {}); do
2929
fileDirectory=$(dirname "${file}")
3030
targetDirectory="../${ARTIFACTS_DIRECTORY}/${NPM_PACKAGE_JSON_ARTIFACTS_DIRECTORY}/${fileDirectory}"
3131
# echo "copyPackageJsonFiles: Copying ${file} to ${targetDirectory}"

0 commit comments

Comments
 (0)