create-unmint 1.0.0 → 1.0.1

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
@@ -312,15 +312,19 @@ async function init(projectName, options = {}) {
312
312
  gitSpinner.warn("Could not initialize git repository");
313
313
  }
314
314
  }
315
+ let depsInstalled = false;
315
316
  if (config.installDeps) {
316
317
  const installSpinner = ora("Installing dependencies...").start();
317
318
  try {
318
319
  const packageManager = await detectPackageManager();
319
- await execa(packageManager, ["install"], { cwd: targetDir });
320
+ await execa(packageManager, ["install"], { cwd: targetDir, stdio: "pipe" });
320
321
  installSpinner.succeed(`Dependencies installed with ${packageManager}`);
322
+ depsInstalled = true;
321
323
  } catch (error) {
322
324
  installSpinner.warn("Could not install dependencies");
323
- console.log(chalk2.dim(` Run "npm install" manually to install dependencies`));
325
+ if (error instanceof Error && "stderr" in error) {
326
+ console.log(chalk2.dim(` ${error.stderr?.slice(0, 200) || error.message}`));
327
+ }
324
328
  }
325
329
  }
326
330
  console.log();
@@ -329,7 +333,7 @@ async function init(projectName, options = {}) {
329
333
  console.log(" Next steps:");
330
334
  console.log();
331
335
  console.log(chalk2.cyan(` cd ${config.projectName}`));
332
- if (!config.installDeps) {
336
+ if (!depsInstalled) {
333
337
  console.log(chalk2.cyan(" npm install"));
334
338
  }
335
339
  console.log(chalk2.cyan(" npm run dev"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-unmint",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Create a new Unmint documentation project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,7 +49,7 @@ Unmint is designed to be forked and customized. All the code is yours to modify.
49
49
 
50
50
  ```bash
51
51
  # Clone the repository
52
- git clone https://github.com/your-org/unmint.git my-docs
52
+ git clone https://github.com/gregce/unmint.git my-docs
53
53
 
54
54
  # Install dependencies
55
55
  cd my-docs
@@ -20,7 +20,7 @@ Before you begin, make sure you have:
20
20
  Start by cloning the Unmint template:
21
21
 
22
22
  ```bash
23
- git clone https://github.com/your-org/unmint.git my-docs
23
+ git clone https://github.com/gregce/unmint.git my-docs
24
24
  cd my-docs
25
25
  ```
26
26
  </Step>
@@ -18,7 +18,7 @@
18
18
  "fumadocs-core": "^16.4.7",
19
19
  "fumadocs-mdx": "^14.2.5",
20
20
  "lucide-react": "^0.483.0",
21
- "next": "^15.5.7",
21
+ "next": "^16.0.0",
22
22
  "next-themes": "^0.4.6",
23
23
  "react": "^19.0.0",
24
24
  "react-dom": "^19.0.0",
@@ -35,8 +35,8 @@
35
35
  "@vitejs/plugin-react": "^4.3.4",
36
36
  "autoprefixer": "^10.4.21",
37
37
  "eslint": "^9",
38
- "eslint-config-next": "^15.5.7",
39
- "happy-dom": "^17.4.4",
38
+ "eslint-config-next": "^16.0.0",
39
+ "happy-dom": "^20.3.4",
40
40
  "postcss": "^8.5.4",
41
41
  "tailwindcss": "^4",
42
42
  "typescript": "^5",
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES2017",
4
- "lib": ["dom", "dom.iterable", "esnext"],
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
5
9
  "allowJs": true,
6
10
  "skipLibCheck": true,
7
11
  "strict": true,
@@ -11,7 +15,7 @@
11
15
  "moduleResolution": "bundler",
12
16
  "resolveJsonModule": true,
13
17
  "isolatedModules": true,
14
- "jsx": "preserve",
18
+ "jsx": "react-jsx",
15
19
  "incremental": true,
16
20
  "plugins": [
17
21
  {
@@ -19,7 +23,9 @@
19
23
  }
20
24
  ],
21
25
  "paths": {
22
- "@/*": ["./*"]
26
+ "@/*": [
27
+ "./*"
28
+ ]
23
29
  }
24
30
  },
25
31
  "include": [
@@ -27,7 +33,10 @@
27
33
  "**/*.ts",
28
34
  "**/*.tsx",
29
35
  ".next/types/**/*.ts",
30
- ".source/**/*.ts"
36
+ ".source/**/*.ts",
37
+ ".next/dev/types/**/*.ts"
31
38
  ],
32
- "exclude": ["node_modules"]
39
+ "exclude": [
40
+ "node_modules"
41
+ ]
33
42
  }