nextjs-hasura-auth 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nextjs-hasura-auth",
3
3
  "shortName": "nha",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "engines": {
6
6
  "node": "22.14"
7
7
  },
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "scripts": {
13
13
  "dev": "next dev --turbopack",
14
- "build": "next build && npm run build:lib",
15
- "build:lib": "tsc -p tsconfig.lib.json",
14
+ "build": "npm run build:lib && next build",
15
+ "build:lib": "rm -rf dist && tsc -p tsconfig.lib.json",
16
16
  "build:next": "next build --turbopack",
17
17
  "start": "next start --turbopack",
18
18
  "lint": "next lint --turbopack",
@@ -21,7 +21,9 @@
21
21
  "postinstall": "npm run ws -- -y",
22
22
  "ws": "npx --yes next-ws-cli@latest patch",
23
23
  "nha:migrate": "tsx ./migrations/nha/up.ts",
24
- "nha:unmigrate": "tsx ./migrations/nha/down.ts"
24
+ "nha:unmigrate": "tsx ./migrations/nha/down.ts",
25
+ "hasura:schema": "tsx ./lib/hasura-schema.ts",
26
+ "codegen": "graphql-codegen --config codegen.ts"
25
27
  },
26
28
  "main": "dist/lib/index.js",
27
29
  "types": "dist/lib/index.d.ts",
@@ -101,7 +103,11 @@
101
103
  "@babel/preset-react": "^7.26.3",
102
104
  "@babel/preset-typescript": "^7.27.0",
103
105
  "@deep-foundation/hasura": "^0.0.68",
106
+ "@graphql-codegen/cli": "^5.0.5",
107
+ "@graphql-codegen/typescript": "^4.1.6",
104
108
  "@jest/globals": "^29.7.0",
109
+ "@swc/core": "^1.11.21",
110
+ "@swc/jest": "^0.2.37",
105
111
  "@tailwindcss/postcss": "^4",
106
112
  "@testing-library/jest-dom": "^6.4.0",
107
113
  "@testing-library/react": "^15.0.0",
@@ -114,6 +120,7 @@
114
120
  "babel-jest": "^29.7.0",
115
121
  "jest": "^29.7.0",
116
122
  "jest-environment-jsdom": "^29.7.0",
123
+ "prettier": "^3.5.3",
117
124
  "tailwindcss": "^4",
118
125
  "ts-jest": "^29.1.2",
119
126
  "ts-node": "^10.9.2",