Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.
Draft
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
35 changes: 17 additions & 18 deletions .github/workflows/build-test-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: true
needs: build
steps:
# Check out + install rather than restoring the build job's workspace via
# actions/cache. That cross-job cache handoff (path: ./*) stopped working
# after the forced cache@v2 -> v4 migration, leaving these jobs with no
# package.json (npm ENOENT). Each job is now self-contained.
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14

- uses: actions/cache@v4
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- name: Install dependencies
run: npm install

- name: Run linter
run: npm run lint:ci
Expand All @@ -88,35 +91,31 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: true
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "14"
- uses: actions/cache@v4
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- name: Install dependencies
run: npm install
- name: Run type-check
run: npm run tsc

test-unit:
runs-on: ubuntu-latest
strategy:
fail-fast: true
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "14"
- uses: actions/cache@v4
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- name: Install dependencies
run: npm install
- name: Run unit tests
run: npm run test

Expand Down
7 changes: 6 additions & 1 deletion rollup.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ const config = {
],
}),
esbuild({
include: [`${ROOT}/**/*.ts+(|x)`],
// Transpile every .ts/.tsx by extension, regardless of cwd. The previous
// glob `${ROOT}/**/*.ts+(|x)` relied on an extglob that newer picomatch
// (floated in via `npm install`, which ignores our yarn.lock) no longer
// matches — so esbuild silently stopped transpiling TS and every component
// build choked on raw TS in commons (e.g. define-component-patch.ts).
include: /\.tsx?$/,
minify: !!production,
}),
commonjs(),
Expand Down
Loading