@cedarjs/internal 4.0.0 → 4.0.1-next.67

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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from "node:fs";
3
- import path from "path";
3
+ import path from "node:path";
4
4
  import ansis from "ansis";
5
5
  import chokidar from "chokidar";
6
6
  import { getPaths } from "@cedarjs/project-config";
@@ -14,6 +14,7 @@ import {
14
14
  import { warningForDuplicateRoutes } from "../routes.js";
15
15
  import { generateClientPreset } from "./clientPreset.js";
16
16
  import { generate } from "./generate.js";
17
+ import { generateGqlormArtifacts } from "./gqlormSchema.js";
17
18
  import {
18
19
  generateTypeDefGraphQLApi,
19
20
  generateTypeDefGraphQLWeb
@@ -29,13 +30,16 @@ import {
29
30
  } from "./typeDefinitions.js";
30
31
  const rwjsPaths = getPaths();
31
32
  const generatedDirName = path.basename(rwjsPaths.generated.base);
32
- const watcher = chokidar.watch("(web|api)/src/**/*.{ts,js,jsx,tsx}", {
33
- persistent: true,
34
- ignored: ["node_modules", generatedDirName],
35
- ignoreInitial: true,
36
- cwd: rwjsPaths.base,
37
- awaitWriteFinish: true
38
- });
33
+ const watcher = chokidar.watch(
34
+ ["(web|api)/src/**/*.{ts,js,jsx,tsx}", "api/db/**/*.prisma"],
35
+ {
36
+ persistent: true,
37
+ ignored: ["node_modules", generatedDirName],
38
+ ignoreInitial: true,
39
+ cwd: rwjsPaths.base,
40
+ awaitWriteFinish: true
41
+ }
42
+ );
39
43
  const action = {
40
44
  add: "Created",
41
45
  unlink: "Deleted",
@@ -110,6 +114,9 @@ Created ${files.length} in ${Date.now() - start} ms`);
110
114
  await generateGraphQLSchema();
111
115
  await generateTypeDefGraphQLApi();
112
116
  finished("GraphQL Schema");
117
+ } else if (absPath.startsWith(path.join(rwjsPaths.base, "api/db/")) && absPath.endsWith(".prisma")) {
118
+ await generateGqlormArtifacts();
119
+ finished("Prisma Schema");
113
120
  }
114
121
  if (routesWarningMessage) {
115
122
  console.warn(routesWarningMessage);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/internal",
3
- "version": "4.0.0",
3
+ "version": "4.0.1-next.67+ad97a60c79",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -159,23 +159,24 @@
159
159
  "@babel/plugin-transform-react-jsx": "7.28.6",
160
160
  "@babel/plugin-transform-typescript": "^7.26.8",
161
161
  "@babel/traverse": "7.29.0",
162
- "@cedarjs/babel-config": "4.0.0",
163
- "@cedarjs/cli-helpers": "4.0.0",
164
- "@cedarjs/graphql-server": "4.0.0",
165
- "@cedarjs/project-config": "4.0.0",
166
- "@cedarjs/router": "4.0.0",
167
- "@cedarjs/structure": "4.0.0",
168
- "@graphql-codegen/add": "6.0.0",
169
- "@graphql-codegen/cli": "6.2.1",
170
- "@graphql-codegen/client-preset": "5.2.4",
171
- "@graphql-codegen/core": "5.0.1",
172
- "@graphql-codegen/fragment-matcher": "6.0.0",
173
- "@graphql-codegen/schema-ast": "5.0.1",
174
- "@graphql-codegen/typed-document-node": "6.1.7",
175
- "@graphql-codegen/typescript": "5.0.9",
176
- "@graphql-codegen/typescript-operations": "5.0.9",
177
- "@graphql-codegen/typescript-react-apollo": "4.4.1",
178
- "@graphql-codegen/typescript-resolvers": "5.1.7",
162
+ "@cedarjs/babel-config": "4.0.1-next.67+ad97a60c79",
163
+ "@cedarjs/cli-helpers": "4.0.1-next.67+ad97a60c79",
164
+ "@cedarjs/graphql-server": "4.0.1-next.67+ad97a60c79",
165
+ "@cedarjs/project-config": "4.0.1-next.67+ad97a60c79",
166
+ "@cedarjs/router": "4.0.1-next.67+ad97a60c79",
167
+ "@cedarjs/structure": "4.0.1-next.67+ad97a60c79",
168
+ "@cedarjs/utils": "4.0.1-next.67+ad97a60c79",
169
+ "@graphql-codegen/add": "6.0.1",
170
+ "@graphql-codegen/cli": "6.3.1",
171
+ "@graphql-codegen/client-preset": "5.3.0",
172
+ "@graphql-codegen/core": "5.0.2",
173
+ "@graphql-codegen/fragment-matcher": "6.0.1",
174
+ "@graphql-codegen/schema-ast": "5.0.2",
175
+ "@graphql-codegen/typed-document-node": "6.1.8",
176
+ "@graphql-codegen/typescript": "5.0.10",
177
+ "@graphql-codegen/typescript-operations": "5.1.0",
178
+ "@graphql-codegen/typescript-react-apollo": "4.4.2",
179
+ "@graphql-codegen/typescript-resolvers": "5.1.8",
179
180
  "@graphql-tools/documents": "1.0.1",
180
181
  "@prisma/dmmf": "7.7.0",
181
182
  "@prisma/internals": "7.7.0",
@@ -186,18 +187,19 @@
186
187
  "fast-glob": "3.3.3",
187
188
  "graphql": "16.13.2",
188
189
  "kill-port": "1.6.1",
189
- "prettier": "3.8.1",
190
+ "prettier": "3.8.3",
190
191
  "rimraf": "6.1.3",
191
192
  "source-map": "0.7.6",
192
193
  "string-env-interpolation": "1.0.1",
193
194
  "systeminformation": "5.31.5",
194
195
  "termi-link": "1.1.0",
195
196
  "ts-node": "10.9.2",
196
- "typescript": "5.9.3"
197
+ "typescript": "5.9.3",
198
+ "vite": "7.3.2"
197
199
  },
198
200
  "devDependencies": {
199
201
  "@arethetypeswrong/cli": "0.18.2",
200
- "@cedarjs/framework-tools": "0.0.0",
202
+ "@cedarjs/framework-tools": "4.0.1-next.67",
201
203
  "concurrently": "9.2.1",
202
204
  "graphql-tag": "2.12.6",
203
205
  "publint": "0.3.18",
@@ -210,5 +212,5 @@
210
212
  "publishConfig": {
211
213
  "access": "public"
212
214
  },
213
- "gitHead": "b73014711894261b601a749b8caa2ae3bb1bec07"
215
+ "gitHead": "ad97a60c793c21b3263b4178e339d89406f7a7a3"
214
216
  }