Skip to content

Commit c08b989

Browse files
authored
Merge pull request #2 from tenex-engineering/develop
update ci
2 parents c05a41c + e7b2892 commit c08b989

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Use Node.js
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: '20.x'
28+
node-version: '22.x'
2929
registry-url: 'https://registry.npmjs.org'
3030
cache: 'pnpm'
3131

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,23 @@
2525
"!**/*.js.map"
2626
],
2727
"bin": {
28-
"graphql-x": "./bin/graphql-x"
28+
"graphql-x": "bin/graphql-x"
2929
},
3030
"imports": {
3131
"#app/*": "./dist/*",
3232
"#documents/*": "./documents/*"
3333
},
3434
"scripts": {
3535
"prepublishOnly": "npm run ci",
36+
"ci": "npm run check-lint && npm run check-exports && npm run build && npm run test && npm run check-format && npm run check-spelling",
3637
"dev": "concurrently --names=\"build,test\" --prefix-colors=\"cyan,green\" \"npm run watch:build -- --noEmit\" \"npm run watch:test\"",
37-
"ci": "npm run lint && npm run build && npm run check-format && npm run check-exports && npm run test",
3838
"build": "tsc",
39-
"lint": "eslint . --fix",
40-
"format": "prettier --write .",
39+
"lint": "eslint ./ --fix",
40+
"format": "prettier --write ./",
41+
"check-lint": "eslint ./",
4142
"check-format": "prettier --check .",
42-
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
43+
"check-exports": "attw --pack ./ --ignore-rules=cjs-resolves-to-esm",
44+
"check-spelling": "cspell **",
4345
"test": "vitest run",
4446
"watch:build": "tsc --watch --preserveWatchOutput",
4547
"watch:test": "vitest --exclude=\"**/*.integration.spec.*\" --coverage --clearScreen=false"

0 commit comments

Comments
 (0)