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
5 changes: 3 additions & 2 deletions .configs/vitest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ export default defineConfig({
reporters: ["dot"],
coverage: {
provider: "v8",
// wisp publishes src/ directly (no dist build), plus the two entry points.
include: ["src/**/*.mjs", "index.mjs", "index.cjs"],
// Measured on src/ (ESM entry, library and the CJS shim). The published dist/ is
// built from it and checked separately by tests/cjs + tests/bundle under node --test.
include: ["src/**/*.mjs", "src/**/*.cjs"],
exclude: ["**/*.json", "tests/**", "src/types/**"],
reporter: ["text", "html", "json-summary", "json"]
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bundle-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
build_command: "npm run build:ci"
# Every pattern starts with `*` on purpose: the v4.29.2 measure action matches nothing for a bare top-level file and double-counts files when patterns have different roots.
dist_paths: "*index.mjs,*index.cjs,*src/**/*.mjs"
dist_paths: "*dist/index.mjs,*dist/index.cjs"
# warning_pct: 5
# warning_bytes: 500
# comment_mode: "update"
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,15 @@ jobs:
lint_fix_command: ${{ github.event.inputs.lint_fix_command || 'npm run lint:fix --if-present' }}
lint_command: ${{ github.event.inputs.lint_command || 'npm run lint --if-present' }}
format_check_command: ${{ github.event.inputs.format_check_command || 'npm run format:check --if-present' }}
# wisp's "build" is type-declaration generation. `build:types` (tsc) both
# emits types/ AND type-checks (tsc fails on type errors), so it carries
# the type check on every matrix node. Not `build:ci` β€” that also re-runs
# the test suite, which `test_command` above already ran.
build_command: "npm run build:types"
# The coverage legs run their own build step before measuring. wisp ships
# src/ directly (no bundle), so its real build is the same type-declaration
# generation as the CI build; it leaves src/ in place, which is what the
# coverage include measures.
coverage_build_command: "npm run build:types"
# The real build: `types:build` (tsc) emits types/ AND type-checks (tsc fails
# on type errors), so it carries the type check on every matrix node; `build`
# (tsup) bundles src/ into dist/. Not `build:ci` β€” that also re-runs the test
# suite, which `test_command` above already ran.
build_command: "npm run types:build && npm run build"
# Coverage legs build with the full gate (lint + format:check + types:build +
# tsup + tests) before measuring. Coverage is measured on src/**, which the
# build leaves in place.
coverage_build_command: "npm run build:ci"
skip_performance_tests: false
skip_matrix_tests: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hotfixes-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: CLDMV/.github/.github/workflows/workflow-hotfixes-release.yml@v4
with:
package_name: "@cldmv/wisp"
build_command: "npm run build:types"
build_command: "npm run types:build && npm run build"
secrets:
# Map your repo/org secrets to the expected names.
BOT_APP_CLIENT_ID: ${{ secrets.CLDMV_BOT_APP_CLIENT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: CLDMV/.github/.github/workflows/workflow-next-release.yml@v4
with:
package_name: "@cldmv/wisp"
build_command: "npm run build:types"
build_command: "npm run types:build && npm run build"
secrets:
# Map your repo/org secrets to the expected names.
BOT_APP_CLIENT_ID: ${{ secrets.CLDMV_BOT_APP_CLIENT_ID }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ jobs:
# test_command: "NODE_ENV=test npm test" # Override NODE_ENV only
# test_command: "NODE_ENV=test NODE_OPTIONS='--conditions=slothlet-dev' npm test" # Override both
test_environment: ${{ github.event.inputs.test_environment || 'development' }} # Alternative to setting in test_command
# build:types (tsc) emits the published types/ dir and type-checks it.
build_command: "npm run build:types"
# types:build (tsc) emits the published types/ dir and type-checks it; build (tsup)
# bundles src/ into the published dist/.
build_command: "npm run types:build && npm run build"
# --- Satellite packages (optional) ----------------------------------------
# Publish extra packages carved from this build's output (e.g. locale JSON,
# generated types) at the SAME version/commit as the core, each with its own
Expand Down
Loading
Loading