create-tangle-sandbox 0.1.3 → 0.1.4

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.
package/dist/index.mjs CHANGED
@@ -41,18 +41,14 @@ async function selectTemplate() {
41
41
  }
42
42
  function scaffoldProject(projectDir, template, projectName) {
43
43
  const templateDir = join(TEMPLATES_DIR, template);
44
- if (!existsSync(templateDir)) {
45
- console.error(`Template '${template}' not found at ${templateDir}`);
46
- process.exit(1);
47
- }
48
44
  mkdirSync(projectDir, { recursive: true });
49
45
  cpSync(templateDir, projectDir, { recursive: true });
50
46
  const pkgPath = join(projectDir, "package.json");
51
- if (existsSync(pkgPath)) {
52
- const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
53
- pkg.name = projectName;
54
- writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
55
- }
47
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
48
+ const ts = JSON.parse(readFileSync(join(TEMPLATES_DIR, "../package.json"), "utf-8")).devDependencies.typescript;
49
+ pkg.name = projectName;
50
+ pkg.devDependencies.typescript = ts === "catalog:" ? "latest" : ts;
51
+ writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
56
52
  console.log(`\nProject created at ${projectDir}\n`);
57
53
  console.log("Next steps:\n");
58
54
  console.log(` cd ${projectName}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tangle-sandbox",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Scaffold a new Tangle Sandbox project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,8 +20,8 @@
20
20
  "typescript": "^6.0.3"
21
21
  },
22
22
  "tangleRelease": {
23
- "sourceSha": "775395a25d5f014c389905c17858368c59019877",
24
- "mergedAt": "2026-11-07T18:24:33-08:00"
23
+ "sourceSha": "900af5714a1b75658ff2607e421e77bc49d4e1e8",
24
+ "mergedAt": "2026-11-08T23:19:49-08:00"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "tsdown src/index.ts --format esm --dts",
@@ -11,7 +11,6 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.0.0",
14
- "tsx": "^4.19.0",
15
- "typescript": "^6.0.2"
14
+ "tsx": "^4.19.0"
16
15
  }
17
16
  }
@@ -11,7 +11,6 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.0.0",
14
- "tsx": "^4.19.0",
15
- "typescript": "^6.0.2"
14
+ "tsx": "^4.19.0"
16
15
  }
17
16
  }
@@ -11,7 +11,6 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.0.0",
14
- "tsx": "^4.19.0",
15
- "typescript": "^6.0.2"
14
+ "tsx": "^4.19.0"
16
15
  }
17
16
  }