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
60 changes: 56 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ jobs:
npm install
npm install rollup@${{ matrix.rollup }} --force
npx rollup -v
working-directory: test/package
working-directory: test/package/rollup

- name: "Test package"
run: npm run test:package -- -t rollup
run: npm run test:package:rollup

test-package-rolldown:
name: "rolldown v${{ matrix.rolldown }} / node ${{ matrix.node }} / ${{ matrix.os }}"
Expand Down Expand Up @@ -145,15 +145,67 @@ jobs:
run: |
npm install
npx rolldown -v
working-directory: test/package
working-directory: test/package/rolldown

- name: "Test package"
run: npm run test:package -- -t rolldown
run: npm run test:package:rolldown

test-package-vite:
name: "vite v${{ matrix.vite }} / node ${{ matrix.node }} / ${{ matrix.os }}"
needs:
- build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ["22", "20", "18"]
os: [ubuntu-latest, windows-latest]
vite: ["5", "6", "7"]
exclude:
- os: windows-latest
node: 20
- os: windows-latest
node: 18
- vite: 7
node: 18

steps:
- name: "Checkout repo"
uses: actions/checkout@v4.2.2

- name: "Setup node & npm"
uses: "relative-ci/.github/actions/setup-node-npm@v1.1.0"
with:
cache: "never"
version: ${{ matrix.node }}
install: false

- name: "Install test dependencies"
run: npm install vitest

- name: "Download build files"
uses: actions/download-artifact@v4.3.0
with:
name: build-artifacts

- name: "Setup local npm registry"
run: ./scripts/setup-registry.sh

- name: "Install test package dependencies"
run: |
npm install
npm install vite@${{ matrix.vite }} --force
npx vite -v
working-directory: test/package/vite

- name: "Test package"
run: npm run test:package:vite

tests:
needs:
- test-package-rollup
- test-package-rolldown
- test-package-vite
runs-on: ubuntu-latest
steps:
- run: exit 0
Expand Down
31 changes: 0 additions & 31 deletions artifacts/stats.json

This file was deleted.

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"require": "./dist/index.cjs"
},
"./extract": {
"types": "./dist/extract.d.ts",
"import": "./dist/extract.mjs",
"require": "./dist/extract.cjs",
"types": "./dist/extract.d.ts"
"require": "./dist/extract.cjs"
}
},
"engines": {
Expand All @@ -49,7 +49,10 @@
"lint": "eslint .",
"format": "prettier --write .",
"test:unit": "vitest test/unit",
"test:package": "vitest test/package",
"test:package": "npm run test:package:rolldown && npm run test:package:rollup && npm run test:package:vite",
"test:package:rolldown": "vitest test/package/rolldown",
"test:package:rollup": "vitest test/package/rollup",
"test:package:vite": "vitest test/package/vite",
"bump": "./scripts/bump.sh",
"release": "./scripts/release.sh"
},
Expand Down Expand Up @@ -77,7 +80,7 @@
"vitest": "3.1.4"
},
"peerDependencies": {
"vite": "^5.0.0 || ^6.0.0",
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
"rollup": "^3.0.0 || ^4.0.0"
},
"peerDependenciesMeta": {
Expand Down
Loading
Loading