build(qwik-city): lint published package (#1057)
* build(qwik-city): lint published package * ci(qwik-city): add workflow to run build and publintpull/1073/head
parent
ee53464b87
commit
7c0f04486d
|
@ -0,0 +1,30 @@
|
||||||
|
name: ci-qwik-city
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'packages/qwik-city/**'
|
||||||
|
pull_request:
|
||||||
|
branches: ['*']
|
||||||
|
paths:
|
||||||
|
- 'packages/qwik-city/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20.x
|
||||||
|
- run: yarn workspaces focus hono-middleware @hono/qwik-city
|
||||||
|
- run: yarn workspace @hono/qwik-city build
|
||||||
|
- run: yarn workspace @hono/qwik-city publint
|
||||||
|
# - run: yarn test --coverage --project @hono/qwik-city
|
||||||
|
# - uses: codecov/codecov-action@v5
|
||||||
|
# with:
|
||||||
|
# fail_ci_if_error: true
|
||||||
|
# directory: ./coverage
|
||||||
|
# flags: qwik-city
|
||||||
|
# env:
|
||||||
|
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
@ -2,18 +2,28 @@
|
||||||
"name": "@hono/qwik-city",
|
"name": "@hono/qwik-city",
|
||||||
"version": "0.0.5",
|
"version": "0.0.5",
|
||||||
"description": "Qwik City middleware for Hono",
|
"description": "Qwik City middleware for Hono",
|
||||||
"main": "dist/cjs/index.js",
|
"type": "module",
|
||||||
"module": "dist/esm/index.js",
|
"module": "dist/index.js",
|
||||||
"types": "dist/esm/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:cjs": "tsc -p tsconfig.cjs.json",
|
"build": "tsup ./src/index.ts",
|
||||||
"build:esm": "tsc -p tsconfig.esm.json",
|
"prepack": "yarn build",
|
||||||
"build": "rimraf dist && yarn build:cjs && yarn build:esm",
|
"publint": "attw --pack && publint"
|
||||||
"prerelease": "yarn build && yarn test",
|
},
|
||||||
"release": "yarn publish"
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"import": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"default": "./dist/index.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
@ -22,7 +32,8 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/honojs/middleware.git"
|
"url": "git+https://github.com/honojs/middleware.git",
|
||||||
|
"directory": "packages/qwik-city"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/honojs/middleware",
|
"homepage": "https://github.com/honojs/middleware",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@ -31,10 +42,12 @@
|
||||||
"hono": "^3.1.5"
|
"hono": "^3.1.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"@builder.io/qwik": "^1.2.0",
|
"@builder.io/qwik": "^1.2.0",
|
||||||
"@builder.io/qwik-city": "^1.2.0",
|
"@builder.io/qwik-city": "^1.2.0",
|
||||||
"hono": "^3.11.7",
|
"hono": "^3.11.7",
|
||||||
"rimraf": "^5.0.5"
|
"publint": "^0.3.9",
|
||||||
|
"tsup": "^8.4.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"module": "CommonJS",
|
|
||||||
"declaration": false,
|
|
||||||
"outDir": "./dist/cjs"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"module": "ESNext",
|
|
||||||
"declaration": true,
|
|
||||||
"outDir": "./dist/esm"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src",
|
"outDir": "dist"
|
||||||
},
|
}
|
||||||
"include": [
|
}
|
||||||
"src/**/*.ts"
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
|
@ -2777,10 +2777,12 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/qwik-city@workspace:packages/qwik-city"
|
resolution: "@hono/qwik-city@workspace:packages/qwik-city"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
"@builder.io/qwik": "npm:^1.2.0"
|
"@builder.io/qwik": "npm:^1.2.0"
|
||||||
"@builder.io/qwik-city": "npm:^1.2.0"
|
"@builder.io/qwik-city": "npm:^1.2.0"
|
||||||
hono: "npm:^3.11.7"
|
hono: "npm:^3.11.7"
|
||||||
rimraf: "npm:^5.0.5"
|
publint: "npm:^0.3.9"
|
||||||
|
tsup: "npm:^8.4.0"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@builder.io/qwik": ^1.2.0
|
"@builder.io/qwik": ^1.2.0
|
||||||
"@builder.io/qwik-city": ^1.2.0
|
"@builder.io/qwik-city": ^1.2.0
|
||||||
|
|
Loading…
Reference in New Issue