create-factory 0.3.0-alpha.8 → 0.3.0

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 (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -52,7 +52,8 @@ async function extractError(res) {
52
52
  const text = await res.text().catch(() => "");
53
53
  if (!text) return `${res.status} ${res.statusText}`;
54
54
  try {
55
- const detail = extractApiErrorDetail(JSON.parse(text));
55
+ const parsed = JSON.parse(text);
56
+ const detail = extractApiErrorDetail(parsed);
56
57
  if (detail) return detail;
57
58
  } catch {}
58
59
  return text.slice(0, 500);
@@ -252,9 +253,10 @@ async function cloneTemplate(repoUrl, targetPath) {
252
253
  const tempTarget = path.join(tempRoot, "template");
253
254
  try {
254
255
  try {
256
+ const degitRepo = repoUrl.replace("https://github.com/", "");
255
257
  await x("npx", [
256
258
  "degit",
257
- repoUrl.replace("https://github.com/", ""),
259
+ degitRepo,
258
260
  tempTarget
259
261
  ], {
260
262
  throwOnError: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-factory",
3
- "version": "0.3.0-alpha.8",
3
+ "version": "0.3.0",
4
4
  "description": "Create a Mastra Factory project: an agent-powered software delivery environment built on Mastra. Run `npm create factory` to scaffold and get started.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -36,14 +36,14 @@
36
36
  "commander": "^14.0.3",
37
37
  "picocolors": "^1.1.1",
38
38
  "tinyexec": "^1.2.4",
39
- "mastra": "1.35.0-alpha.8"
39
+ "mastra": "1.35.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "22.20.1",
43
43
  "tsdown": "0.22.9",
44
44
  "typescript": "^7.0.2",
45
45
  "vitest": "4.1.11",
46
- "@internal/lint": "0.0.144"
46
+ "@internal/lint": "0.0.145"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsdown --silent --config tsdown.config.ts",