Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

refactor: enhance relative path resolution in updateFiles utility for improved flexibility

Jakub Sieradzki6d5feb26285d
diff --git a/packages/cli/src/utils/update-files.ts b/packages/cli/src/utils/update-files.ts
index 2221c1b3e..5fcd589d1 100644
--- a/packages/cli/src/utils/update-files.ts
+++ b/packages/cli/src/utils/update-files.ts
@@ -51,7 +51,7 @@ export async function updateFiles(
for (const file of files) {
const fileType = getTargetDir(file);
- const relativePath = getRelativePath(file.path);
+ const relativePath = file.target ?? getRelativePath(file.path);
const basePath = options.path || config.resolvedPaths[fileType];
let filePath = path.resolve(basePath, relativePath);