@cedarjs/cli 3.0.0-canary.13205 → 3.0.0-canary.13206

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.
@@ -139,7 +139,7 @@ async function runPreUpgradeScripts(ctx, task, { verbose, force }) {
139
139
  }
140
140
  }
141
141
  const scriptContent = await fs.promises.readFile(scriptPath, "utf8");
142
- const deps = extractDependencies(scriptContent);
142
+ const deps = extractDependencies(scriptContent, version);
143
143
  if (deps.length > 0) {
144
144
  const depList = deps.join(", ");
145
145
  task.output = `Installing dependencies for ${scriptName}: ${depList}...`;
@@ -201,7 +201,7 @@ ${errorOutput}`;
201
201
  }
202
202
  }
203
203
  }
204
- const extractDependencies = (content) => {
204
+ const extractDependencies = (content, version) => {
205
205
  const deps = /* @__PURE__ */ new Map();
206
206
  const commentRegex = /\/\/\s*@dependency:\s*(\S+)/g;
207
207
  let match;
@@ -225,7 +225,11 @@ const extractDependencies = (content) => {
225
225
  name = parts[0];
226
226
  }
227
227
  if (!deps.has(name)) {
228
- deps.set(name, name);
228
+ if (version && name.startsWith("@cedarjs/")) {
229
+ deps.set(name, `${name}@${version}`);
230
+ } else {
231
+ deps.set(name, name);
232
+ }
229
233
  }
230
234
  }
231
235
  return Array.from(deps.values());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "3.0.0-canary.13205+8801487af",
3
+ "version": "3.0.0-canary.13206+a314df167",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,15 +33,15 @@
33
33
  "dependencies": {
34
34
  "@babel/preset-typescript": "7.28.5",
35
35
  "@babel/runtime-corejs3": "7.28.4",
36
- "@cedarjs/api-server": "3.0.0-canary.13205",
37
- "@cedarjs/cli-helpers": "3.0.0-canary.13205",
38
- "@cedarjs/fastify-web": "3.0.0-canary.13205",
39
- "@cedarjs/internal": "3.0.0-canary.13205",
40
- "@cedarjs/prerender": "3.0.0-canary.13205",
41
- "@cedarjs/project-config": "3.0.0-canary.13205",
42
- "@cedarjs/structure": "3.0.0-canary.13205",
43
- "@cedarjs/telemetry": "3.0.0-canary.13205",
44
- "@cedarjs/web-server": "3.0.0-canary.13205",
36
+ "@cedarjs/api-server": "3.0.0-canary.13206",
37
+ "@cedarjs/cli-helpers": "3.0.0-canary.13206",
38
+ "@cedarjs/fastify-web": "3.0.0-canary.13206",
39
+ "@cedarjs/internal": "3.0.0-canary.13206",
40
+ "@cedarjs/prerender": "3.0.0-canary.13206",
41
+ "@cedarjs/project-config": "3.0.0-canary.13206",
42
+ "@cedarjs/structure": "3.0.0-canary.13206",
43
+ "@cedarjs/telemetry": "3.0.0-canary.13206",
44
+ "@cedarjs/web-server": "3.0.0-canary.13206",
45
45
  "@listr2/prompt-adapter-enquirer": "2.0.16",
46
46
  "@opentelemetry/api": "1.8.0",
47
47
  "@opentelemetry/core": "1.22.0",
@@ -103,5 +103,5 @@
103
103
  "publishConfig": {
104
104
  "access": "public"
105
105
  },
106
- "gitHead": "8801487af31b76dec2eec50ca3ad6b5b45277a7c"
106
+ "gitHead": "a314df1678c4c4907e6b08314fea48ab27a35650"
107
107
  }