@cedarjs/cli 7.0.1-next.310 → 7.0.1-next.311

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,5 +1,8 @@
1
1
  import path from "node:path";
2
- import { transformTSToJS } from "../../../lib/index.js";
2
+ import {
3
+ getInstalledCedarVersion,
4
+ transformTSToJS
5
+ } from "../../../lib/index.js";
3
6
  import { templateForFile } from "../yargsHandlerHelpers.js";
4
7
  const files = async ({
5
8
  name,
@@ -33,7 +36,12 @@ const files = async ({
33
36
  side: "packages",
34
37
  generator: "package",
35
38
  templatePath: "package.json.template",
36
- templateVars: { packageName, ...rest },
39
+ // Pin @cedarjs/testing to the Cedar version the project is on
40
+ templateVars: {
41
+ packageName,
42
+ cedarVersion: await getInstalledCedarVersion(),
43
+ ...rest
44
+ },
37
45
  outputPath: path.join(folderName, "package.json")
38
46
  });
39
47
  const tsconfigFile = await templateForFile({
@@ -16,7 +16,7 @@
16
16
  "watch": "tsc --watch"
17
17
  },
18
18
  "devDependencies": {
19
- "@cedarjs/testing": "2.2.1",
19
+ "@cedarjs/testing": "${cedarVersion}",
20
20
  "typescript": "5.9.3"
21
21
  }
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "7.0.1-next.310",
3
+ "version": "7.0.1-next.311",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,17 +36,17 @@
36
36
  "@babel/preset-typescript": "7.29.7",
37
37
  "@babel/traverse": "7.29.8",
38
38
  "@babel/types": "7.29.8",
39
- "@cedarjs/api-server": "7.0.1-next.310",
40
- "@cedarjs/babel-config": "7.0.1-next.310",
41
- "@cedarjs/cli-helpers": "7.0.1-next.310",
42
- "@cedarjs/internal": "7.0.1-next.310",
43
- "@cedarjs/prerender": "7.0.1-next.310",
44
- "@cedarjs/project-config": "7.0.1-next.310",
45
- "@cedarjs/structure": "7.0.1-next.310",
46
- "@cedarjs/telemetry": "7.0.1-next.310",
47
- "@cedarjs/utils": "7.0.1-next.310",
48
- "@cedarjs/vite": "7.0.1-next.310",
49
- "@cedarjs/web-server": "7.0.1-next.310",
39
+ "@cedarjs/api-server": "7.0.1-next.311",
40
+ "@cedarjs/babel-config": "7.0.1-next.311",
41
+ "@cedarjs/cli-helpers": "7.0.1-next.311",
42
+ "@cedarjs/internal": "7.0.1-next.311",
43
+ "@cedarjs/prerender": "7.0.1-next.311",
44
+ "@cedarjs/project-config": "7.0.1-next.311",
45
+ "@cedarjs/structure": "7.0.1-next.311",
46
+ "@cedarjs/telemetry": "7.0.1-next.311",
47
+ "@cedarjs/utils": "7.0.1-next.311",
48
+ "@cedarjs/vite": "7.0.1-next.311",
49
+ "@cedarjs/web-server": "7.0.1-next.311",
50
50
  "@listr2/prompt-adapter-enquirer": "4.3.2",
51
51
  "@opentelemetry/api": "1.9.1",
52
52
  "@opentelemetry/core": "2.11.0",
@@ -94,7 +94,7 @@
94
94
  "yargs": "17.7.3"
95
95
  },
96
96
  "devDependencies": {
97
- "@cedarjs/framework-tools": "7.0.1-next.310",
97
+ "@cedarjs/framework-tools": "7.0.1-next.311",
98
98
  "@prisma/dmmf": "7.10.0",
99
99
  "@types/archiver": "^7.0.0",
100
100
  "memfs": "4.79.0",