tackl 1.0.5 → 1.0.7

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 +23 -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,26 @@ ${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
+
244
+ // Try to fix audit issues automatically
245
+ try {
246
+ log.step('🔧 Fixing security vulnerabilities...');
247
+ execSync('npm audit fix', { cwd: targetDir, stdio: 'inherit' });
248
+ log.ok('Security vulnerabilities fixed!');
249
+ } catch (e) {
250
+ log.warn('Some vulnerabilities could not be automatically fixed.');
251
+ log.info('You can run "npm audit fix --force" manually if needed.');
252
+ }
253
+
231
254
  log.ok('Dependencies installed successfully!');
232
255
  } catch (e) {
233
256
  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.7",
4
4
  "description": "The ultimate Next.js starter kit with Waffl Grid system",
5
5
  "type": "module",
6
6
  "bin": {