Skip to content

Commit 7525b40

Browse files
committed
create-servest bug fixed
1 parent 910fb27 commit 7525b40

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

packages/create-servest/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to **create-servest** will be documented here.
44

5+
## [1.1.0] – 2025-08-25
6+
### Fixed
7+
- Bug where `--template` argument was ignored in some package managers (npm works consistently now)
8+
- Minor fixes and cleanup in scaffolding logic
9+
10+
---
11+
512
## [1.0.0] – 2025-08-25
613
### Added
714
- Stable 1.0.0 release of **creative-servest** — production-ready

packages/create-servest/src/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ async function init() {
5454
const argOverwrite = argv.overwrite;
5555
const addonsArg = argv.a || argv.addons;
5656

57-
console.log('argv:', argv);
58-
console.log('argvTemplate', argTemplate);
59-
6057
const help = argv.help || argv.h;
6158
if (help) {
6259
console.log(helpMessage);
@@ -172,15 +169,11 @@ async function init() {
172169
}
173170

174171
// 5️⃣ Running custom command if exists
175-
console.log(pkgInfo);
176-
177172
const pkgManager = pkgInfo ? pkgInfo.name : detectPkgManager();
178173

179174
const { customCommand } =
180175
FRAMEWORKS.flatMap((f) => f.variants).find((v) => v.value === template) ?? {};
181176

182-
console.log(customCommand);
183-
184177
if (customCommand) {
185178
const fullCustomCommand = getFullCustomCommand(customCommand, pkgInfo);
186179

@@ -249,6 +242,5 @@ async function init() {
249242

250243
// ───── INIT ─────
251244
init().catch((err) => {
252-
console.error(err);
253-
process.exit(1);
245+
cancelOperation(red(err));
254246
});

0 commit comments

Comments
 (0)