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
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ charset = utf-8
end_of_line = lf
indent_style = tab
insert_final_newline = true
max_line_length = 100
tab_width = 4
trim_trailing_whitespace = true
29 changes: 16 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,38 @@ jobs:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v5
- name: Setup publish to npmjs.org
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: '22.x'
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install Dependencies
run: npm ci
run: pnpm i --frozen-lockfile
- name: Format Check
run: npm run check:format
run: pnpm format:check
- name: Type Check
run: npm run check:types
run: pnpm types:check
- name: Lint
run: npm run lint
run: pnpm lint
- name: Test
run: npm run test
run: pnpm test
- name: Build Package
run: npm run build
run: pnpm build
- name: Publish Package to npmjs.org
run: npm publish --access=public
run: pnpm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup publish to Github Packages
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: '22.x'
node-version: '24.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@ldrick'
- name: Publish Package to Github Packages
run: npm publish
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 11 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,26 @@ jobs:
node-version: [22.x, 24.x]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v5
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install Dependencies
run: npm ci
run: pnpm i --frozen-lockfile
- name: Format Check
run: npm run check:format
run: pnpm format:check
- name: Type Check
run: npm run check:types
run: pnpm types:check
- name: Lint
run: npm run lint
run: pnpm lint
- name: Test
run: npm run test
run: pnpm test
- name: Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage
Expand Down
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"oxc.oxc-vscode",
"vitest.explorer"
]
}
8 changes: 5 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
// trigger linting and fixes
"oxc.fmt.configPath": "oxfmt.config.ts",
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
Expand All @@ -21,8 +23,8 @@
"vue"
],
// package manager
"npm.packageManager": "npm",
"typescript.enablePromptUseWorkspaceTsdk": true,
"npm.packageManager": "pnpm",
// typescript
"typescript.tsdk": "node_modules/typescript/lib"
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
"js/ts.tsdk.path": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default defineConfig(
},
// overrides for Config files
{
files: ['eslint.config.js', 'vitest.config.ts'],
files: ['eslint.config.js', 'oxfmt.config.ts', 'vitest.config.ts'],
rules: {
'import-x/no-default-export': 'off',
},
Expand Down
6 changes: 6 additions & 0 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'oxfmt';

export default defineConfig({
ignorePatterns: ['**/node_modules/', 'dist/', 'coverage/'],
singleQuote: true,
});
Loading
Loading