Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: skeleton
node-version: 22
command: |
pnpm run --filter="@skeletonlabs/*" --sequential build
pnpm run --filter="@skeletonlabs/*" --filter="!*skeleton.dev" --sequential build
pnpm test
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
31 changes: 22 additions & 9 deletions ecosystem-ci/patch-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,27 +132,40 @@ async function patchSkeleton() {

// Patch pnpm-workspace.yaml
const pnpmWorkspacePath = join(projectDir, 'skeleton', 'pnpm-workspace.yaml');
const pnpmWorkspaceContent = fs
let pnpmWorkspaceContent = fs
.readFileSync(pnpmWorkspacePath, 'utf8')
.replace(`trustPolicy: no-downgrade`, '\n')
.replace(
/'@vitest\/browser-playwright': [\d.]+/,
`'@vitest/browser-playwright': ${vitestVersion}`,
);
const appendContent = `
minimumReleaseAgeExclude:
- '@voidzero-dev/*'
- '@vitest/*'
- oxlint
- oxfmt
- oxlint-tsgolint

// Add entries to existing minimumReleaseAgeExclude if it exists, otherwise append new section
const newExcludes = ["'@voidzero-dev/*'", "'@vitest/*'", 'oxlint', 'oxfmt', 'oxlint-tsgolint'];
Comment thread
Brooooooklyn marked this conversation as resolved.
if (pnpmWorkspaceContent.includes('minimumReleaseAgeExclude:')) {
// Find the minimumReleaseAgeExclude section and add new entries
pnpmWorkspaceContent = pnpmWorkspaceContent.replace(
/minimumReleaseAgeExclude:\n((?: - .+\n)+)/,
(_, existingEntries) => {
const newEntriesStr = newExcludes.map((e) => ` - ${e}\n`).join('');
return `minimumReleaseAgeExclude:\n${existingEntries}${newEntriesStr}`;
},
);
Comment thread
Brooooooklyn marked this conversation as resolved.
} else {
pnpmWorkspaceContent += `\nminimumReleaseAgeExclude:\n${newExcludes.map((e) => ` - ${e}`).join('\n')}\n`;
}

// Add peerDependencyRules if not present
if (!pnpmWorkspaceContent.includes('peerDependencyRules:')) {
pnpmWorkspaceContent += `
peerDependencyRules:
allowAny:
- vite
- vitest
`;
fs.writeFileSync(pnpmWorkspacePath, pnpmWorkspaceContent + appendContent);
}

fs.writeFileSync(pnpmWorkspacePath, pnpmWorkspaceContent);

// Update vite.config.ts files to import from vitest/browser-playwright instead of @vitest/browser-playwright
// This is needed because pnpm overrides don't affect Node.js module resolution at config load time
Expand Down
2 changes: 1 addition & 1 deletion ecosystem-ci/repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"skeleton": {
"repository": "https://github.com/skeletonlabs/skeleton.git",
"branch": "main",
"hash": "1d59e077dbf28d1931405864b06f06f9d3578903"
"hash": "6f613fe3326ed483885e4acc6f49e2044aa9ab79"
},
"vibe-dashboard": {
"repository": "https://github.com/voidzero-dev/vibe-dashboard.git",
Expand Down
Loading