Skip to content

Commit

Permalink
feat: add package to jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
labithiotis committed Mar 5, 2024
1 parent ae24634 commit ac27cfd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/3.publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: true

jobs:
publish:
publish-npm:
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 15
Expand All @@ -19,3 +19,12 @@ jobs:
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}

publish-jsr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- run: npx jsr publish
5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@labithiotis/express-list-routes",
"version": "0.1.0",
"exports": "./index.js"
}
14 changes: 1 addition & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,12 @@ You can pass a second argument to set some options

## FAQ

<details>
<details open>
<summary>Errors with importing this library</summary>
You may need to enable esModuleInterop in your tsconfig.json to support default exports.
</details>


## Migrations
### 0.1 -> 1.0
The order of the params have changed, and dropped support for freeform text.

**BEFORE 0.1<**

```expressListRoutes({ prefix: '/api/v1' }, 'API:', router);```

**AFTER 1.0+**

```expressListRoutes(router, { prefix: '/api/v1' });```

[npm-image]: https://img.shields.io/npm/v/express-list-routes.svg?style=flat
[npm-url]: https://npmjs.org/package/express-list-routes
[downloads-image]: https://img.shields.io/npm/dm/express-list-routes.svg?style=flat
Expand Down

0 comments on commit ac27cfd

Please sign in to comment.