Skip to content

Commit b855663

Browse files
author
Codesphere Developer
committed
fix(ci): prevent rebranding of package scopes to avoid build failures
- Added negative lookbehind for @ in enforce-branding.sh to exclude @VSCodium and @VScode scopes
1 parent 056a5ef commit b855663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/enforce-branding.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ cd "$VSCODE_DIR" || exit 1
3030
echo " Replacing 'VSCodium' -> 'Codesphere'..."
3131
find . -type f \( -name "*.ts" -o -name "*.js" -o -name "*.html" -o -name "*.json" -o -name "*.md" \) \
3232
-not -path "*/node_modules/*" -not -path "*/.git/*" \
33-
-exec perl -pi -e 's/(?<!github.com\/)VSCodium/Codesphere/g' {} +
33+
-exec perl -pi -e 's/(?<!github.com\/)(?<!\@)VSCodium/Codesphere/g' {} +
3434

3535
echo " Replacing 'vscodium' -> 'codesphere'..."
3636
find . -type f \( -name "*.ts" -o -name "*.js" -o -name "*.html" -o -name "*.json" -o -name "*.md" \) \
3737
-not -path "*/node_modules/*" -not -path "*/.git/*" \
38-
-exec perl -pi -e 's/(?<!github.com\/)vscodium/codesphere/g' {} +
38+
-exec perl -pi -e 's/(?<!github.com\/)(?<!\@)vscodium/codesphere/g' {} +
3939

4040
echo " Replacing 'Visual Studio Code' -> 'Codesphere IDE'..."
4141
find . -type f \( -name "*.ts" -o -name "*.js" -o -name "*.html" -o -name "*.json" -o -name "*.md" \) \

0 commit comments

Comments
 (0)