tackl 1.0.3 → 1.0.4
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/bin/tackl.js +4 -23
- package/package.json +1 -1
package/bin/tackl.js
CHANGED
|
@@ -221,17 +221,9 @@ ${pc.bold('Repository:')} https://github.com/12-studio/tackl
|
|
|
221
221
|
|
|
222
222
|
if (doInstall) {
|
|
223
223
|
try {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
pm === 'pnpm'
|
|
228
|
-
? 'pnpm install'
|
|
229
|
-
: pm === 'yarn'
|
|
230
|
-
? 'yarn'
|
|
231
|
-
: 'npm install',
|
|
232
|
-
{ cwd: targetDir, stdio: 'inherit' }
|
|
233
|
-
);
|
|
234
|
-
log.ok('Dependencies installed.');
|
|
224
|
+
log.step('📦 Installing dependencies with npm...');
|
|
225
|
+
execSync('npm install', { cwd: targetDir, stdio: 'inherit' });
|
|
226
|
+
log.ok('Dependencies installed successfully!');
|
|
235
227
|
} catch (e) {
|
|
236
228
|
log.warn(`Install failed: ${e.message}`);
|
|
237
229
|
}
|
|
@@ -245,21 +237,10 @@ ${pc.bold('Repository:')} https://github.com/12-studio/tackl
|
|
|
245
237
|
);
|
|
246
238
|
console.log(` Next steps:`);
|
|
247
239
|
console.log(` 1) cd ${rel}`);
|
|
248
|
-
if (!doInstall) console.log(` 2) npm install
|
|
240
|
+
if (!doInstall) console.log(` 2) npm install`);
|
|
249
241
|
console.log(` ${doInstall ? '2' : '3'}) npm run dev`);
|
|
250
242
|
}
|
|
251
243
|
|
|
252
|
-
function detectPM() {
|
|
253
|
-
try {
|
|
254
|
-
execSync('pnpm --version', { stdio: 'ignore' });
|
|
255
|
-
return 'pnpm';
|
|
256
|
-
} catch {}
|
|
257
|
-
try {
|
|
258
|
-
execSync('yarn --version', { stdio: 'ignore' });
|
|
259
|
-
return 'yarn';
|
|
260
|
-
} catch {}
|
|
261
|
-
return 'npm';
|
|
262
|
-
}
|
|
263
244
|
|
|
264
245
|
main().catch(e => {
|
|
265
246
|
console.error(e);
|