Skip to content

Commit 37b14be

Browse files
authored
Merge pull request #77 from trevorblades/bun-test
use bun to test and upgrade deps
2 parents d5906bd + 3ca3446 commit 37b14be

15 files changed

Lines changed: 236 additions & 8419 deletions

.eslintrc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: oven-sh/setup-bun@v2
11+
- run: bun install
12+
- run: bun test

.vscode/settings.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ query ListCountriesThatUseUSD {
8080
}
8181
}
8282

83-
query ListCountriesInNAFTA {
83+
query ListCountriesInCUSMA {
8484
countries(filter: { code: { in: ["US", "CA", "MX"] } }) {
8585
code
8686
name

bun.lock

Lines changed: 148 additions & 891 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import eslint from "@eslint/js";
2+
import prettier from "eslint-plugin-prettier/recommended";
3+
import simpleImportSort from "eslint-plugin-simple-import-sort";
4+
import tseslint from "typescript-eslint";
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.recommended,
9+
prettier,
10+
{
11+
plugins: {
12+
"simple-import-sort": simpleImportSort,
13+
},
14+
rules: {
15+
"simple-import-sort/imports": "error",
16+
"simple-import-sort/exports": "error",
17+
"@typescript-eslint/consistent-type-imports": "error",
18+
},
19+
},
20+
);

jest.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

logo.png

131 KB
Loading

package.json

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
11
{
22
"scripts": {
3-
"dev": "wrangler dev",
4-
"test": "jest",
5-
"generate-types": "wrangler types"
3+
"dev": "wrangler dev"
64
},
75
"dependencies": {
8-
"@graphql-tools/utils": "^9.2.1",
9-
"@pothos/core": "^3.29.0",
10-
"@pothos/plugin-validation": "^3.9.0",
6+
"@graphql-tools/utils": "^10.9.1",
7+
"@pothos/core": "^4.8.1",
8+
"@pothos/plugin-zod": "^4.2.2",
119
"countries-list": "^2.6.1",
1210
"country-to-aws-region": "^1.0.3",
13-
"graphql": "^16.8.1",
14-
"graphql-yoga": "^3.8.0",
15-
"i18n-iso-countries": "^7.6.0",
11+
"graphql": "^16.11.0",
12+
"graphql-yoga": "^5.15.1",
13+
"i18n-iso-countries": "^7.14.0",
1614
"iso-3166-2": "^1.0.0",
1715
"provinces": "^1.11.0",
18-
"sift": "^17.0.1",
19-
"zod": "^3.21.4"
16+
"sift": "^17.1.3",
17+
"zod": "^4.0.17"
2018
},
2119
"devDependencies": {
22-
"@graphql-tools/executor-http": "^0.1.9",
23-
"@trevorblades/eslint-plugin": "^1.2.3",
24-
"@types/iso-3166-2": "^1.0.0",
25-
"@types/jest": "^29.5.0",
26-
"@types/provinces": "^1.11.4",
27-
"eslint": "^8.23.0",
28-
"eslint-config-prettier": "^8.5.0",
29-
"eslint-plugin-prettier": "^4.2.1",
30-
"jest": "^29.5.0",
31-
"prettier": "2.7.1",
32-
"ts-jest": "^29.0.5",
33-
"ts-node": "^10.9.1",
34-
"typescript": "^5.0.4",
35-
"wrangler": "^4.29.1"
20+
"@eslint/js": "^9.33.0",
21+
"@graphql-eslint/eslint-plugin": "^4.4.0",
22+
"@graphql-tools/executor-http": "^2.1.1",
23+
"@types/iso-3166-2": "^1.0.4",
24+
"@types/provinces": "^1.11.6",
25+
"eslint": "^9.33.0",
26+
"eslint-config-prettier": "^10.1.8",
27+
"eslint-plugin-prettier": "^5.5.4",
28+
"eslint-plugin-simple-import-sort": "^12.1.1",
29+
"prettier": "3.6.2",
30+
"typescript": "^5.9.2",
31+
"typescript-eslint": "^8.39.1",
32+
"wrangler": "^4.30.0"
3633
}
3734
}

0 commit comments

Comments
 (0)