tackl 1.0.5 → 1.0.6

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/bin/tackl.js +13 -0
  2. package/package.json +1 -1
package/bin/tackl.js CHANGED
@@ -213,6 +213,10 @@ ${pc.bold('Repository:')} https://github.com/12-studio/tackl
213
213
  try {
214
214
  log.step('🔧 Initializing git repository...');
215
215
  execSync('git init', { cwd: targetDir, stdio: 'ignore' });
216
+
217
+ // Set default branch to main (not master)
218
+ execSync('git branch -M main', { cwd: targetDir, stdio: 'ignore' });
219
+
216
220
  execSync('git add -A', { cwd: targetDir, stdio: 'ignore' });
217
221
  execSync('git commit -m "chore: scaffold with tackl"', {
218
222
  cwd: targetDir,
@@ -227,7 +231,16 @@ ${pc.bold('Repository:')} https://github.com/12-studio/tackl
227
231
  if (doInstall) {
228
232
  try {
229
233
  log.step('📦 Installing dependencies with npm...');
234
+
235
+ // Disable Husky during installation to prevent Git issues
236
+ const originalEnv = { ...process.env };
237
+ process.env.HUSKY = '0';
238
+
230
239
  execSync('npm install', { cwd: targetDir, stdio: 'inherit' });
240
+
241
+ // Restore environment
242
+ process.env = originalEnv;
243
+
231
244
  log.ok('Dependencies installed successfully!');
232
245
  } catch (e) {
233
246
  log.warn(`Install failed: ${e.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tackl",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "The ultimate Next.js starter kit with Waffl Grid system",
5
5
  "type": "module",
6
6
  "bin": {