@backstage/plugin-scaffolder-backend 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @backstage/plugin-scaffolder-backend
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Don't resolve symlinks, treat them as binary files and copy them as-is
8
+
3
9
  ## 1.3.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs.js CHANGED
@@ -571,8 +571,9 @@ function createFetchTemplateAction(options) {
571
571
  await fs__default["default"].ensureDir(outputPath);
572
572
  } else {
573
573
  const inputFilePath = backendCommon.resolveSafeChildPath(templateDir, location);
574
- if (await isbinaryfile.isBinaryFile(inputFilePath)) {
575
- ctx.logger.info(`Copying binary file ${location} to template output path.`);
574
+ const stats = await fs__default["default"].promises.lstat(inputFilePath);
575
+ if (stats.isSymbolicLink() || await isbinaryfile.isBinaryFile(inputFilePath)) {
576
+ ctx.logger.info(`Copying file binary or symbolic link at ${location}, to template output path.`);
576
577
  await fs__default["default"].copy(inputFilePath, outputPath);
577
578
  } else {
578
579
  const statsObj = await fs__default["default"].stat(inputFilePath);