Skip to content

Commit

Permalink
fix: ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg committed Nov 20, 2024
1 parent 3bf6ecf commit 2f99fde
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 34 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
node-version:
- 20.x
- 22.x
- 23.x
name: Use ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -36,7 +35,7 @@ jobs:

- run: npm run build:ts && npm run build:neon

- run: npm run check
- run: npm run test

test-bun:
strategy:
Expand All @@ -62,4 +61,4 @@ jobs:

- run: bun run build:ts && bun run build:neon

- run: bun run check
- run: bun run test
28 changes: 4 additions & 24 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,7 @@ import { audiolab } from '@swrlab/style-guide/eslint/index'
export default audiolab(
[
{
ignores: [
/* ignore these files, since biome already covers them */
'**/*.mjs',
'**/*.js',
'**/*.jsx',
'**/*.ts',
'**/*.tsx',
'**/*.json',
'**/*.jsonc',
/* ignore these directories */
'**/static/**',
'**/store/**',
'**/keys/**',
'**/node_modules/**',
'**/test/*.json',
'**/test/*.xml',
],
ignores: ['node_modules/**', 'lib/**', 'target/**', 'test/*.json', 'test/*.xml'],
},
{
languageOptions: {
Expand Down Expand Up @@ -59,18 +43,14 @@ export default audiolab(
ignores: [],
},
],
},
},
{
files: ['**/*.vue'],
rules: {
'n/no-unsupported-features/node-builtins': 'off',
'jsonc/no-comments': 'warn',
'jsonc/sort-keys': 'warn',
},
},
],
{
prettier: true,
comments: true,
vue: true,
vue: false,
}
)
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@
"build:neon": "cargo-cp-artifact -nc index.node -- cargo build --release --message-format=json-render-diagnostics",
"build:bin": "./build.sh",
"build:clean": "rimraf target && rimraf bin && cargo clean && mkdir -p bin",
"lint": "eslint src tests --fix",
"test": "mocha -r ts-node/register tests/**/*.test.ts",
"check": "bun run lint && bun run test",
"prepublishOnly": "bun run build:bin && bun run lint && bun run test"
},
"engines": {
"node": ">=20"
"lint": "eslint .",
"test": "mocha -r ts-node/register tests/**/*.test.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swrlab/node-crc.git"
},
"engines": {
"node": ">=20"
},
"keywords": ["node.js", "crc64"],
"author": "Magic Len <[email protected]> (https://magiclen.org)",
"license": "MIT",
Expand Down
File renamed without changes.

0 comments on commit 2f99fde

Please sign in to comment.