@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 +6 -0
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
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
|
-
|
|
575
|
-
|
|
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);
|