create-jant 0.1.16 → 0.1.18

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.js CHANGED
@@ -8,7 +8,7 @@ import path from "path";
8
8
  import { fileURLToPath } from "url";
9
9
  var __filename = fileURLToPath(import.meta.url);
10
10
  var __dirname = path.dirname(__filename);
11
- var CORE_VERSION = "0.2.13";
11
+ var CORE_VERSION = "0.2.16";
12
12
  var TEMPLATE_DIR = fs.existsSync(path.resolve(__dirname, "../template")) ? path.resolve(__dirname, "../template") : path.resolve(__dirname, "../../../templates/jant-site");
13
13
  function isValidProjectName(name) {
14
14
  return /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/.test(name);
@@ -93,6 +93,28 @@ AUTH_SECRET=${authSecret}
93
93
  );
94
94
  await fs.writeFile(viteConfigPath, content, "utf-8");
95
95
  }
96
+ const tsconfigPath = path.join(targetDir, "tsconfig.json");
97
+ if (await fs.pathExists(tsconfigPath)) {
98
+ const tsconfig = await fs.readJson(tsconfigPath);
99
+ if (tsconfig.extends) {
100
+ const rootTsconfigPath = path.resolve(
101
+ TEMPLATE_DIR,
102
+ "../../tsconfig.json"
103
+ );
104
+ if (await fs.pathExists(rootTsconfigPath)) {
105
+ const rootTsconfig = await fs.readJson(rootTsconfigPath);
106
+ const merged = {
107
+ compilerOptions: {
108
+ ...rootTsconfig.compilerOptions,
109
+ ...tsconfig.compilerOptions
110
+ },
111
+ include: tsconfig.include,
112
+ exclude: tsconfig.exclude
113
+ };
114
+ await fs.writeJson(tsconfigPath, merged, { spaces: 2 });
115
+ }
116
+ }
117
+ }
96
118
  }
97
119
  async function main() {
98
120
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jant",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Create a new Jant project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,12 +24,10 @@
24
24
  "@lingui/swc-plugin": "^5.10.1",
25
25
  "@swc/core": "^1.15.11",
26
26
  "@tailwindcss/vite": "^4.1.18",
27
- "basecoat-css": "^0.3.10",
28
27
  "tailwindcss": "^4.1.18",
29
28
  "typescript": "^5.9.3",
30
29
  "unplugin-swc": "^1.5.9",
31
30
  "vite": "^7.3.1",
32
- "vite-ssr-components": "^0.5.2",
33
31
  "wrangler": "^4.61.1"
34
32
  }
35
33
  }