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/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
node-version: 24
build-script: build
test-script: test
test-script: test:cicd
npm-tag: ${{ inputs.npm-tag || 'latest' }}
dry-run: ${{ inputs.dry-run || false }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
with:
node-version: 24
build-script: build
test-script: test
test-script: test:cicd
build: false
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test:unit": "vitest",
"test": "npm run test:unit -- --run",
"test:cicd": "npx playwright install && npm run test",
"test:e2e": "playwright test"
},
"files": [
Expand All @@ -46,8 +47,8 @@
}
},
"peerDependencies": {
"svelte": "^5.0.0",
"@collagejs/core": "^0.1.0"
"@collagejs/core": "^0.1.2",
"svelte": "^5.0.0"
},
"devDependencies": {
"@playwright/test": "^1.57.0",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Piece/Piece.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* The `CorePiece` instance to render.
*/
piece: CorePiece<TProps>;
piece: CorePiece<TProps> | Promise<CorePiece<TProps>>;
/**
* Optional HTML attributes to set on the container element that wraps the piece.
*/
Expand All @@ -40,7 +40,7 @@
export function piece<
TProps extends Record<string, any> = Record<string, any>,
>(
piece: CorePiece<TProps>,
piece: CorePiece<TProps> | Promise<CorePiece<TProps>>,
containerProps?: HTMLAttributes<HTMLDivElement>,
) {
return {
Expand Down