Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: CI
on:
push:
branches:
- master
- v10
pull_request:
branches:
- master
- v10
permissions:
contents: read
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Commit changelog
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: master
branch: v10
file_pattern: '*.md'
commit_message: 'chore: sync changelog'

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"@types/minimist": "^1.2.5",
"@types/node": "^22.5.3",
"@types/rc": "^1.2.4",
"@types/serve-handler": "^6.1.4",
"@vitest/coverage-v8": "^2.0.0",
"api-docs-gen": "^0.4.0",
"benchmark": "^2.1.4",
Expand Down Expand Up @@ -121,7 +122,7 @@
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-typescript2": "^0.36.0",
"secretlint": "^3.2.0",
"serve-static": "^1.15.0",
"serve-handler": "^6.1.6",
"textlint": "^12.6.1",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-rule-abbr-within-parentheses": "^1.0.2",
Expand Down
76 changes: 65 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for PKG in packages/* ; do
continue
fi
pushd $PKG
TAG="latest"
TAG="stable"
echo "⚡ Publishing $PKG with tag $TAG"
pnpm publish --access public --no-git-checks --tag $TAG
popd > /dev/null
Expand Down
14 changes: 9 additions & 5 deletions scripts/vitest.globalSetup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import { fileURLToPath } from 'node:url'
import { URL } from 'node:url'
import { fileURLToPath, URL } from 'node:url'

// @ts-ignore
import serveStatic from 'serve-static'
import { listen } from 'listhen'
import handler from 'serve-handler'

const __dirname = fileURLToPath(new URL('..', import.meta.url))

export async function setup() {
const listener = await listen(serveStatic(__dirname), { port: 8080 })
const listener = await listen(
(req, res) => {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
handler(req, res, { public: __dirname })
},
{ port: 8080 }
)
return async () => {
await listener.close()
}
Expand Down