build(auth-js): lint published package (#1034)
* build(auth-js): lint published package * ci(auth-js): run publint * build(auth-js): remove no splitting flagpull/1017/head
parent
4b66525ad3
commit
d65cc146f9
|
@ -19,6 +19,7 @@ jobs:
|
|||
node-version: 20.x
|
||||
- run: yarn workspaces focus hono-middleware @hono/auth-js
|
||||
- run: yarn workspace @hono/auth-js build
|
||||
- run: yarn workspace @hono/auth-js publint
|
||||
- run: yarn test --coverage --project @hono/auth-js
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -3,25 +3,26 @@
|
|||
"version": "1.0.15",
|
||||
"description": "A third-party Auth js middleware for Hono",
|
||||
"main": "dist/index.js",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"default": "./dist/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.cts",
|
||||
"default": "./dist/index.cjs"
|
||||
}
|
||||
},
|
||||
"./react": {
|
||||
"import": {
|
||||
"types": "./dist/react.d.mts",
|
||||
"default": "./dist/react.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/react.d.ts",
|
||||
"default": "./dist/react.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/react.d.cts",
|
||||
"default": "./dist/react.cjs"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -36,10 +37,10 @@
|
|||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "vitest --run",
|
||||
"build": "tsup",
|
||||
"prerelease": "yarn build && yarn test",
|
||||
"release": "yarn publish"
|
||||
"build": "tsup src/index.ts src/react.tsx",
|
||||
"prepack": "yarn build",
|
||||
"publint": "attw --pack --profile node16 && publint",
|
||||
"test": "vitest"
|
||||
},
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
|
@ -48,7 +49,8 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/honojs/middleware.git"
|
||||
"url": "git+https://github.com/honojs/middleware.git",
|
||||
"directory": "packages/auth-js"
|
||||
},
|
||||
"homepage": "https://github.com/honojs/middleware",
|
||||
"peerDependencies": {
|
||||
|
@ -57,12 +59,13 @@
|
|||
"react": "^18 || ^19 || ^19.0.0-rc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.17.4",
|
||||
"@auth/core": "^0.35.3",
|
||||
"@types/react": "^18",
|
||||
"hono": "^3.11.7",
|
||||
"publint": "^0.3.9",
|
||||
"react": "^18.2.0",
|
||||
"tsup": "^8.0.1",
|
||||
"typescript": "^5.3.3",
|
||||
"tsup": "^8.4.0",
|
||||
"vitest": "^3.0.8"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -4,10 +4,8 @@
|
|||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"rootDir": "./",
|
||||
"outDir": "./dist",
|
||||
"jsx": "react",
|
||||
"types": ["node", "vitest/globals"]
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
import { defineConfig } from 'tsup'
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts', 'src/react.tsx'],
|
||||
format: ['esm', 'cjs'],
|
||||
dts: true,
|
||||
splitting: false,
|
||||
clean: true,
|
||||
})
|
|
@ -2600,12 +2600,13 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "@hono/auth-js@workspace:packages/auth-js"
|
||||
dependencies:
|
||||
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||
"@auth/core": "npm:^0.35.3"
|
||||
"@types/react": "npm:^18"
|
||||
hono: "npm:^3.11.7"
|
||||
publint: "npm:^0.3.9"
|
||||
react: "npm:^18.2.0"
|
||||
tsup: "npm:^8.0.1"
|
||||
typescript: "npm:^5.3.3"
|
||||
tsup: "npm:^8.4.0"
|
||||
vitest: "npm:^3.0.8"
|
||||
peerDependencies:
|
||||
"@auth/core": 0.*
|
||||
|
|
Loading…
Reference in New Issue