nextjs-hackathon-stack 0.1.13 → 0.1.14

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 +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -112,13 +112,6 @@ async function scaffold(projectName, skipInstall) {
112
112
  p3.log.error(stderr || "pnpm install failed");
113
113
  p3.log.info("You can install manually: cd " + projectName + " && pnpm install");
114
114
  }
115
- spinner2.start("Setting up husky pre-commit hooks");
116
- try {
117
- execSync("pnpm exec husky", { cwd: targetDir, stdio: "pipe" });
118
- spinner2.stop("Husky pre-commit hooks set up");
119
- } catch {
120
- spinner2.stop("Husky setup failed \u2014 run manually: pnpm exec husky");
121
- }
122
115
  spinner2.start("Initializing shadcn/ui");
123
116
  try {
124
117
  execSync("npx shadcn@latest init --yes --defaults --force --silent", {
@@ -151,6 +144,13 @@ async function scaffold(projectName, skipInstall) {
151
144
  } catch {
152
145
  spinner2.stop("Could not create initial commit");
153
146
  }
147
+ spinner2.start("Setting up husky pre-commit hooks");
148
+ try {
149
+ execSync("pnpm exec husky", { cwd: targetDir, stdio: "pipe" });
150
+ spinner2.stop("Husky pre-commit hooks set up");
151
+ } catch {
152
+ spinner2.stop("Husky setup failed \u2014 run manually: pnpm exec husky");
153
+ }
154
154
  success(pc2.bold(`Project "${projectName}" created!`));
155
155
  console.log(`
156
156
  ${pc2.dim("Next steps:")}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextjs-hackathon-stack",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Scaffold a full-stack Next.js hackathon starter",
5
5
  "type": "module",
6
6
  "bin": {