Skip to content

Commit

Permalink
packages/js: next auth package restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
merlindru committed Nov 30, 2023
1 parent 4887846 commit 9ad2cb7
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
- run: bun i
- run: bun run build
- name: publish passkeys-next-auth-provider
run: npm publish --access=public
run: cd ./dist && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISHING_SECRET }}
3 changes: 2 additions & 1 deletion packages/js/passkeys-next-auth-provider/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated OpenAPI client
src/generated/
dist/
dist/*
!dist/package.json

# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

Expand Down
25 changes: 25 additions & 0 deletions packages/js/passkeys-next-auth-provider/dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "@teamhanko/passkeys-next-auth-provider",
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.8",
"exports": {
".": "./index.js",
"./client": "./client.js"
},
"scripts": {
"build": "tsc"
},
"devDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@teamhanko/passkeys-sdk": "^0.1.7",
"@github/webauthn-json": "^2.1.1",
"jose": "^5.1.1"
},
"peerDependencies": {
"next-auth": "^4.24.5"
}
}
11 changes: 0 additions & 11 deletions packages/js/passkeys-next-auth-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"name": "@teamhanko/passkeys-next-auth-provider",
"license": "MIT",
"private": false,
"type": "module",
"version": "0.1.9",
"module": "src/index.ts",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"exports": {
".": "./dist/src/index.js",
"./client": "./dist/src/client.js"
},
"scripts": {
"build": "tsc"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/js/passkeys-next-auth-provider/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"allowJs": true,
"outDir": "dist"
},
"include": ["src/**/*"]
"include": ["client.ts", "index.ts"]
}

0 comments on commit 9ad2cb7

Please sign in to comment.