create-cedar-app 4.2.1-next.0 → 4.2.1-next.269

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.
Files changed (41) hide show
  1. package/database-overlays/neon-postgres/.env.defaults +20 -0
  2. package/database-overlays/neon-postgres/api/package.json +2 -2
  3. package/database-overlays/pglite/api/package.json +4 -4
  4. package/dist/create-cedar-app.js +430 -408
  5. package/package.json +6 -6
  6. package/templates/esm-js/api/package.json +3 -2
  7. package/templates/esm-js/api/prisma.config.cjs +1 -1
  8. package/templates/esm-js/package.json +6 -6
  9. package/templates/esm-js/scripts/jsconfig.json +6 -0
  10. package/templates/esm-js/web/{src/index.html → index.html} +1 -1
  11. package/templates/esm-js/web/package.json +4 -4
  12. package/templates/esm-js/web/src/entry.client.jsx +8 -8
  13. package/templates/esm-ts/api/package.json +3 -2
  14. package/templates/esm-ts/api/prisma.config.cjs +1 -1
  15. package/templates/esm-ts/package.json +6 -6
  16. package/templates/esm-ts/scripts/tsconfig.json +6 -0
  17. package/templates/esm-ts/web/{src/index.html → index.html} +1 -1
  18. package/templates/esm-ts/web/package.json +4 -4
  19. package/templates/esm-ts/web/src/entry.client.tsx +8 -8
  20. package/templates/js/api/package.json +3 -2
  21. package/templates/js/api/prisma.config.cjs +1 -1
  22. package/templates/js/package.json +4 -4
  23. package/templates/js/scripts/jsconfig.json +6 -0
  24. package/templates/js/web/{src/index.html → index.html} +1 -1
  25. package/templates/js/web/package.json +4 -4
  26. package/templates/js/web/src/entry.client.jsx +8 -8
  27. package/templates/overlays/cjs/npm/package.json +4 -4
  28. package/templates/overlays/cjs/pnpm/package.json +11 -9
  29. package/templates/overlays/cjs/pnpm/pnpm-workspace.yaml +18 -0
  30. package/templates/overlays/cjs/yarn/package.json +19 -7
  31. package/templates/overlays/esm/npm/package.json +4 -4
  32. package/templates/overlays/esm/pnpm/package.json +11 -9
  33. package/templates/overlays/esm/pnpm/pnpm-workspace.yaml +18 -0
  34. package/templates/overlays/esm/yarn/package.json +21 -9
  35. package/templates/ts/api/package.json +3 -2
  36. package/templates/ts/api/prisma.config.cjs +1 -1
  37. package/templates/ts/package.json +4 -4
  38. package/templates/ts/scripts/tsconfig.json +6 -0
  39. package/templates/ts/web/{src/index.html → index.html} +1 -1
  40. package/templates/ts/web/package.json +4 -4
  41. package/templates/ts/web/src/entry.client.tsx +8 -8
@@ -6,11 +6,11 @@
6
6
  "web"
7
7
  ],
8
8
  "devDependencies": {
9
- "@cedarjs/core": "4.2.1-next.0",
10
- "@cedarjs/eslint-config": "4.2.1-next.0",
11
- "@cedarjs/project-config": "4.2.1-next.0",
12
- "@cedarjs/testing": "4.2.1-next.0",
13
- "vitest": "3.2.4"
9
+ "@cedarjs/core": "4.2.1-next.269",
10
+ "@cedarjs/eslint-config": "4.2.1-next.269",
11
+ "@cedarjs/project-config": "4.2.1-next.269",
12
+ "@cedarjs/testing": "4.2.1-next.269",
13
+ "vitest": "3.2.6"
14
14
  },
15
15
  "engines": {
16
16
  "node": "=24.x"
@@ -18,15 +18,18 @@
18
18
  "packageManager": "yarn@4.14.1",
19
19
  "resolutions": {
20
20
  "react-is": "19.2.3",
21
- "vite": "7.3.2"
21
+ "vite": "7.3.5"
22
22
  },
23
23
  "dependenciesMeta": {
24
24
  "@clerk/shared": {
25
- "built": true
25
+ "built": false
26
26
  },
27
27
  "@firebase/util": {
28
28
  "built": true
29
29
  },
30
+ "@prisma/client": {
31
+ "built": false
32
+ },
30
33
  "@prisma/engines": {
31
34
  "built": true
32
35
  },
@@ -36,6 +39,12 @@
36
39
  "better-sqlite3": {
37
40
  "built": true
38
41
  },
42
+ "core-js": {
43
+ "built": false
44
+ },
45
+ "core-js-pure": {
46
+ "built": false
47
+ },
39
48
  "esbuild": {
40
49
  "built": true
41
50
  },
@@ -43,10 +52,13 @@
43
52
  "built": true
44
53
  },
45
54
  "prisma": {
46
- "built": true
55
+ "built": false
47
56
  },
48
57
  "protobufjs": {
49
- "built": true
58
+ "built": false
59
+ },
60
+ "unrs-resolver": {
61
+ "built": false
50
62
  }
51
63
  }
52
64
  }
@@ -4,9 +4,10 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "dependencies": {
7
- "@cedarjs/api": "4.2.1-next.0",
8
- "@cedarjs/graphql-server": "4.2.1-next.0",
7
+ "@cedarjs/api": "4.2.1-next.269",
8
+ "@cedarjs/graphql-server": "4.2.1-next.269",
9
9
  "@prisma/adapter-better-sqlite3": "7.8.0",
10
+ "@prisma/client": "7.8.0",
10
11
  "better-sqlite3": "12.9.0"
11
12
  }
12
13
  }
@@ -4,7 +4,7 @@ module.exports = defineConfig({
4
4
  schema: 'db/schema.prisma',
5
5
  migrations: {
6
6
  path: 'db/migrations',
7
- seed: 'yarn cedar exec seed',
7
+ seed: '{{CEDAR_CLI}} exec seed',
8
8
  },
9
9
  datasource: {
10
10
  url: env('DATABASE_URL'),
@@ -6,10 +6,10 @@
6
6
  "web"
7
7
  ],
8
8
  "devDependencies": {
9
- "@cedarjs/core": "4.2.1-next.0",
10
- "@cedarjs/eslint-config": "4.2.1-next.0",
11
- "@cedarjs/project-config": "4.2.1-next.0",
12
- "@cedarjs/testing": "4.2.1-next.0"
9
+ "@cedarjs/core": "4.2.1-next.269",
10
+ "@cedarjs/eslint-config": "4.2.1-next.269",
11
+ "@cedarjs/project-config": "4.2.1-next.269",
12
+ "@cedarjs/testing": "4.2.1-next.269"
13
13
  },
14
14
  "engines": {
15
15
  "node": "=24.x"
@@ -7,6 +7,12 @@
7
7
  "module": "node20",
8
8
  "moduleResolution": "node16",
9
9
  "allowImportingTsExtensions": true,
10
+ "rootDirs": [
11
+ "../api/src",
12
+ "../.cedar/types/mirror/api/src",
13
+ "../web/src",
14
+ "../.cedar/types/mirror/web/src"
15
+ ],
10
16
  "paths": {
11
17
  "$api/*": ["../api/*"],
12
18
  "api/*": ["../api/*"],
@@ -9,7 +9,7 @@
9
9
 
10
10
  <body>
11
11
  <!-- Please keep this div empty -->
12
- <div id="redwood-app"></div>
12
+ <div id="cedar-app"></div>
13
13
  </body>
14
14
 
15
15
  </html>
@@ -12,14 +12,14 @@
12
12
  ]
13
13
  },
14
14
  "dependencies": {
15
- "@cedarjs/forms": "4.2.1-next.0",
16
- "@cedarjs/router": "4.2.1-next.0",
17
- "@cedarjs/web": "4.2.1-next.0",
15
+ "@cedarjs/forms": "4.2.1-next.269",
16
+ "@cedarjs/router": "4.2.1-next.269",
17
+ "@cedarjs/web": "4.2.1-next.269",
18
18
  "react": "18.3.1",
19
19
  "react-dom": "18.3.1"
20
20
  },
21
21
  "devDependencies": {
22
- "@cedarjs/vite": "4.2.1-next.0",
22
+ "@cedarjs/vite": "4.2.1-next.269",
23
23
  "@types/react": "^18.2.55",
24
24
  "@types/react-dom": "^18.2.19"
25
25
  }
@@ -4,29 +4,29 @@ import App from './App'
4
4
  import Routes from './Routes'
5
5
 
6
6
  /**
7
- * When `#redwood-app` isn't empty then it's very likely that you're using
7
+ * When `#cedar-app` isn't empty then it's very likely that you're using
8
8
  * prerendering. So React attaches event listeners to the existing markup
9
9
  * rather than replacing it.
10
10
  * https://react.dev/reference/react-dom/client/hydrateRoot
11
11
  */
12
- const redwoodAppElement = document.getElementById('redwood-app')
12
+ const cedarAppElement = document.getElementById('cedar-app')
13
13
 
14
- if (!redwoodAppElement) {
14
+ if (!cedarAppElement) {
15
15
  throw new Error(
16
- "Could not find an element with ID 'redwood-app'. Please ensure it " +
17
- "exists in your 'web/src/index.html' file."
16
+ 'Could not find an element with ID "cedar-app". Please ensure it exists ' +
17
+ 'in your `web/index.html` file.'
18
18
  )
19
19
  }
20
20
 
21
- if (redwoodAppElement.children?.length > 0) {
21
+ if (cedarAppElement.children?.length > 0) {
22
22
  hydrateRoot(
23
- redwoodAppElement,
23
+ cedarAppElement,
24
24
  <App>
25
25
  <Routes />
26
26
  </App>
27
27
  )
28
28
  } else {
29
- const root = createRoot(redwoodAppElement)
29
+ const root = createRoot(cedarAppElement)
30
30
  root.render(
31
31
  <App>
32
32
  <Routes />