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
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ on:
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
Expand All @@ -18,3 +24,13 @@ jobs:
- run: bun test ./src
- run: bunx prettier --check src
- run: bun run build
- name: Import packed dist with Node
run: |
set -euo pipefail
tarball=$(npm pack)
tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir" "$tarball"' EXIT
cd "$tmpdir"
npm init -y >/dev/null
npm install "$OLDPWD/$tarball"
node --input-type=module -e "import { embedTexts } from '@corbits/embedding'; if (typeof embedTexts !== 'function') process.exit(1)"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Not published to npm yet. Until a registry publish, `npm install @corbits/embedd
bun add github:corbitsdev/corbits-embedding
```

Requires Node >= 20 or Bun >= 1.2. The default export is built `dist/`; native Node
Requires Node >= 24 or Bun >= 1.2. The default export is built `dist/`; native Node
does not load this package's extensionless TypeScript source.

```ts
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
},
"engines": {
"bun": ">=1.2.0",
"node": ">=20"
"node": ">=24"
}
}
Loading