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
26 changes: 11 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.23.0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
check-latest: true
cache: npm
cache: pnpm

- name: Install dependencies
run: npm ci

- name: Typecheck
run: npm run typecheck

- name: Lint
run: npm run lint

- name: Format check
run: npm run format:check
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build
- name: Check
run: pnpm run check

- name: Test
run: npm test
- name: Check docs
run: pnpm run check:docs
22 changes: 16 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
with:
version: 10.23.0

- uses: actions/setup-node@v4
with:
node-version: 24
check-latest: true
cache: npm
cache: pnpm

- run: git config user.name "github-actions[bot]"
- run: git config user.email "github-actions[bot]@users.noreply.github.com"
- run: npm ci
- run: pnpm install --frozen-lockfile

- name: Validate package metadata for trusted publishing
run: |
node - <<'NODE'
Expand Down Expand Up @@ -71,9 +78,11 @@ jobs:

console.log("Package metadata validated.");
NODE
- run: npm run lint
- run: npm run typecheck
- run: npm run build

- run: pnpm run lint
- run: pnpm run typecheck
- run: pnpm run build

# Fetch latest version from npm, bump it, write to package.json.
# Nothing is committed — the bumped version lives only in the CI
# runner's working directory. release-it tags + publishes from it.
Expand All @@ -85,10 +94,11 @@ jobs:
npm version --no-git-tag-version ${{ inputs.increment }}
VERSION=$(node -p 'require("./package.json").version')
echo "Releasing: $VERSION"

- name: Release
run: |
VERSION=$(node -p 'require("./package.json").version')
npm run release:ci -- --increment "$VERSION"
pnpm run release:ci -- --increment "$VERSION"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: "true"
12 changes: 12 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// Keep docs checks useful without forcing a full historical docs rewrite.
"config": {
"MD013": false,
"MD025": false,
"MD028": false,
"MD029": false,
"MD033": false,
"MD034": false,
"MD041": false,
},
}
12 changes: 12 additions & 0 deletions .oxfmtrc.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"experimentalSortImports": {
"newlinesBetween": false,
},
"experimentalSortPackageJson": {
"sortScripts": true,
},
"tabWidth": 2,
"useTabs": false,
"ignorePatterns": ["dist/", "dist-test/", "node_modules/", "package-lock.json", "*.tgz"],
}
26 changes: 26 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc"],
"categories": {
"correctness": "error",
"perf": "error",
"suspicious": "error"
},
"rules": {
"curly": "error",
"eslint-plugin-unicorn/prefer-array-find": "off",
"eslint/no-await-in-loop": "off",
"eslint/no-new": "off",
"eslint/no-shadow": "off",
"eslint/no-unmodified-loop-condition": "off",
"oxc/no-accumulating-spread": "off",
"oxc/no-async-endpoint-handlers": "off",
"oxc/no-map-spread": "off",
"typescript/no-explicit-any": "error",
"typescript/no-extraneous-class": "off",
"typescript/no-unsafe-type-assertion": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/require-post-message-target-origin": "off"
},
"ignorePatterns": ["dist/", "dist-test/", "node_modules/", "*.tgz"]
}
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"autoGenerate": true
},
"hooks": {
"before:init": "npm run lint && npm run typecheck && npm test"
"before:init": "pnpm run lint && pnpm run typecheck && pnpm test"
}
}
36 changes: 0 additions & 36 deletions eslint.config.js

This file was deleted.

Loading