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
|
node-version: 20.x
|
||||||
- run: yarn workspaces focus hono-middleware @hono/auth-js
|
- run: yarn workspaces focus hono-middleware @hono/auth-js
|
||||||
- run: yarn workspace @hono/auth-js build
|
- run: yarn workspace @hono/auth-js build
|
||||||
|
- run: yarn workspace @hono/auth-js publint
|
||||||
- run: yarn test --coverage --project @hono/auth-js
|
- run: yarn test --coverage --project @hono/auth-js
|
||||||
- uses: codecov/codecov-action@v5
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -3,25 +3,26 @@
|
||||||
"version": "1.0.15",
|
"version": "1.0.15",
|
||||||
"description": "A third-party Auth js middleware for Hono",
|
"description": "A third-party Auth js middleware for Hono",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./dist/index.d.mts",
|
|
||||||
"default": "./dist/index.mjs"
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"default": "./dist/index.js"
|
"default": "./dist/index.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"./react": {
|
"./react": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./dist/react.d.mts",
|
|
||||||
"default": "./dist/react.mjs"
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"types": "./dist/react.d.ts",
|
"types": "./dist/react.d.ts",
|
||||||
"default": "./dist/react.js"
|
"default": "./dist/react.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/react.d.cts",
|
||||||
|
"default": "./dist/react.cjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -36,10 +37,10 @@
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest --run",
|
"build": "tsup src/index.ts src/react.tsx",
|
||||||
"build": "tsup",
|
"prepack": "yarn build",
|
||||||
"prerelease": "yarn build && yarn test",
|
"publint": "attw --pack --profile node16 && publint",
|
||||||
"release": "yarn publish"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
@ -48,7 +49,8 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"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",
|
"homepage": "https://github.com/honojs/middleware",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@ -57,15 +59,16 @@
|
||||||
"react": "^18 || ^19 || ^19.0.0-rc"
|
"react": "^18 || ^19 || ^19.0.0-rc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"@auth/core": "^0.35.3",
|
"@auth/core": "^0.35.3",
|
||||||
"@types/react": "^18",
|
"@types/react": "^18",
|
||||||
"hono": "^3.11.7",
|
"hono": "^3.11.7",
|
||||||
|
"publint": "^0.3.9",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"tsup": "^8.0.1",
|
"tsup": "^8.4.0",
|
||||||
"typescript": "^5.3.3",
|
|
||||||
"vitest": "^3.0.8"
|
"vitest": "^3.0.8"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.4.0"
|
"node": ">=18.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,10 +4,8 @@
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"rootDir": "./",
|
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"types": ["node", "vitest/globals"]
|
"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
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/auth-js@workspace:packages/auth-js"
|
resolution: "@hono/auth-js@workspace:packages/auth-js"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
"@auth/core": "npm:^0.35.3"
|
"@auth/core": "npm:^0.35.3"
|
||||||
"@types/react": "npm:^18"
|
"@types/react": "npm:^18"
|
||||||
hono: "npm:^3.11.7"
|
hono: "npm:^3.11.7"
|
||||||
|
publint: "npm:^0.3.9"
|
||||||
react: "npm:^18.2.0"
|
react: "npm:^18.2.0"
|
||||||
tsup: "npm:^8.0.1"
|
tsup: "npm:^8.4.0"
|
||||||
typescript: "npm:^5.3.3"
|
|
||||||
vitest: "npm:^3.0.8"
|
vitest: "npm:^3.0.8"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@auth/core": 0.*
|
"@auth/core": 0.*
|
||||||
|
|
Loading…
Reference in New Issue