Skip to content

Commit

Permalink
chore: publish to jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 26, 2024
1 parent 588a8db commit ce51260
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 10 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ jobs:
name: Publish Beta to NPM
needs: [test, prepare-version]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -142,3 +145,12 @@ jobs:
body: body
})
}
- name: Set up Deno
uses: denoland/setup-deno@v1

- name: Publish to JSR
run: |
deno run -A jsr:@david/[email protected]
env:
GITHUB_REF: refs/tags/v${{ needs.prepare-version.outputs.version }}
5 changes: 5 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@radashi-org/radashi",
"version": "0.0.0",
"exports": "./src/mod.ts"
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
"repository": {
"url": "https://github.com/radashi-org/radashi"
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.cts",
"main": "dist/radashi.cjs",
"module": "dist/radashi.js",
"types": "dist/radashi.d.cts",
"exports": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
"types": "./dist/radashi.d.cts",
"default": "./dist/radashi.cjs"
},
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./dist/radashi.d.ts",
"default": "./dist/radashi.js"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"types": [],
"paths": {
"radashi": [
"./src/index",
"./src/mod",
"./src/array/*",
"./src/async/*",
"./src/curry/*",
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/index.ts'],
entry: { radashi: 'src/mod.ts' },
format: ['cjs', 'esm'],
dts: true,
target: 'node16'
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineConfig({
},
resolve: {
alias: {
radashi: resolve('./src/index.js')
radashi: resolve('./src/mod.js')
}
}
})

0 comments on commit ce51260

Please sign in to comment.