Skip to content

Commit

Permalink
Remove Deno specific imports, publish to JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Sep 8, 2024
1 parent 300d9cc commit ee9df75
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 75 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deno-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
strategy:
matrix:
deno-version:
- v1.20
- v1.25
- v1.35
- v1.40
- v1.45
- canary
fail-fast: false # run each branch to completion

Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/jsr-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish
on:
push:
branches:
- main
paths:
- src/jsr.json

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- run: npx jsr publish
66 changes: 0 additions & 66 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
5 changes: 5 additions & 0 deletions src/jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@cloudydeno/stream-observables",
"version": "1.0.0",
"exports": "./mod.ts"
}
3 changes: 0 additions & 3 deletions src/sources/from-deno-reader.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/sources/from-iterable.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export {
readableStreamFromIterable as fromIterable,
} from "https://deno.land/std@0.170.0/streams/readable_stream_from_iterable.ts";
export const fromIterable = ReadableStream.from;
1 change: 0 additions & 1 deletion src/sources/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

export * from "./external.ts";
export * from "./from-async-function.ts";
export * from "./from-deno-reader.ts";
export * from "./from-event.ts";
export * from "./from-generator.ts";
export * from "./from-iterable.ts";
Expand Down

0 comments on commit ee9df75

Please sign in to comment.