Skip to content

Commit 9ff4f36

Browse files
committed
Refactor: Remove import rewrites from CDN, we will use the CDN copy from each package dist
1 parent 51c2155 commit 9ff4f36

File tree

2 files changed

+1
-396
lines changed

2 files changed

+1
-396
lines changed

.github/workflows/cdn-deploy.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -267,42 +267,11 @@ jobs:
267267
done
268268
cd ..
269269
270-
# Rewrite imports to use absolute CDN URLs
271-
echo "Rewriting imports for CDN compatibility..."
272-
cp $GITHUB_WORKSPACE/scripts/assets/templates/cdn/esbuild/rewrite-imports.js.template scripts/helpers/rewrite-imports.js
273-
274-
# esbuild and glob are already installed as devDependencies
275-
276-
# Process each package directory to rewrite imports
277-
export CDN_URL="https://cdn.semantic-ui.com"
278-
export VERSION=$VERSION
279-
export LIT_VERSION=$LIT_VERSION
280-
281-
echo "Starting import rewriting process..."
282-
echo "Using: VERSION=$VERSION, LIT_VERSION=$LIT_VERSION"
283-
284-
# Process packages in order
285-
echo "Processing @semantic-ui packages..."
286-
node scripts/helpers/rewrite-imports.js ./cdn/@semantic-ui
287-
288-
echo "Processing lit package..."
289-
node scripts/helpers/rewrite-imports.js ./cdn/lit
290-
291-
# Process Lit dependencies
292-
echo "Processing Lit dependencies..."
293-
for dep in $LIT_DEPS; do
294-
if [ -d "./cdn/$dep" ]; then
295-
echo "Processing $dep..."
296-
node scripts/helpers/rewrite-imports.js "./cdn/$dep"
297-
fi
298-
done
299-
300-
echo "Import rewriting completed."
301-
302270
# Generate production importmap
303271
echo "Generating importmaps for version $VERSION"
304272
305273
# Set environment variables for importmap generation
274+
export CDN_URL="https://cdn.semantic-ui.com"
306275
export VERSION=$VERSION
307276
export CORE_VERSION=$CORE_VERSION
308277
export CORE_ENTRY=$core_entry

0 commit comments

Comments
 (0)