Skip to content

Commit cd9701e

Browse files
ibolton336claude
authored andcommitted
🐛 Fix prebuild script to set MTA package name
Ensures the package.json name field is set to 'mta' during the prebuild process for proper MTA branding. This allows the source package.json to remain as 'konveyor' for CI compatibility while the build transforms it to MTA. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 48f9d91 commit cd9701e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/prebuild.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const __dirname = path.dirname(__filename);
1111
const packagePath = path.join(__dirname, "../vscode/package.json");
1212
const packageJson = JSON.parse(fs.readFileSync(packagePath, "utf8"));
1313

14-
// Use the package name to determine branding
15-
const extensionName = packageJson.name;
14+
// Use the package name to determine branding, but override to 'mta' for MTA builds
15+
const extensionName = "mta";
1616
const displayName = extensionName.toUpperCase();
1717

1818
console.log(`🔄 Running prebuild for ${extensionName}...`);
@@ -29,6 +29,7 @@ const brandWordRegex = new RegExp(`\\b(${brandPattern})(?=\\s|$)`, "gi");
2929

3030
// Apply branding transformations
3131
Object.assign(packageJson, {
32+
name: extensionName,
3233
displayName: `${displayName} Extension for VSCode`,
3334
description:
3435
extensionName === "mta"

0 commit comments

Comments
 (0)