create-mendix-widget-gleam 2.0.15 → 2.0.16

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/README.md CHANGED
@@ -30,7 +30,7 @@ my-widget/
30
30
  widgets/ # .mpk 위젯 파일 (glendix/widget로 바인딩)
31
31
  bindings.json # 외부 React 컴포넌트 바인딩 설정
32
32
  package.json # npm 의존성 (React, 외부 라이브러리 등)
33
- gleam.toml # Gleam 프로젝트 설정 (glendix >= 2.0.15 의존성 포함)
33
+ gleam.toml # Gleam 프로젝트 설정 (glendix >= 2.0.16 의존성 포함)
34
34
  CLAUDE.md # AI 어시스턴트용 프로젝트 컨텍스트
35
35
  ```
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mendix-widget-gleam",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "Scaffold a Mendix Pluggable Widget powered by Gleam",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/src/index.mjs CHANGED
@@ -136,15 +136,17 @@ export async function main(args) {
136
136
  // git not available — continue
137
137
  }
138
138
 
139
- // Gleam → JS compilation
140
- console.log(`\n${BOLD}${t(lang, "progress.gleamCompiling")}${RESET}\n`);
139
+ // Gleam → JS compilation (pipe로 Erlang 관련 Unused value warning 숨김)
140
+ console.log(`\n${BOLD}${t(lang, "progress.gleamCompiling")}${RESET}`);
141
141
  try {
142
142
  execSync("gleam build --target javascript", {
143
143
  cwd: targetDir,
144
- stdio: "inherit",
144
+ stdio: "pipe",
145
145
  });
146
- console.log(`\n${GREEN}✓${RESET} ${t(lang, "progress.gleamCompiled")}`);
147
- } catch {
146
+ console.log(`${GREEN}✓${RESET} ${t(lang, "progress.gleamCompiled")}`);
147
+ } catch (e) {
148
+ const output = (e.stderr || e.stdout || "").toString();
149
+ if (output) console.error(output);
148
150
  console.error(
149
151
  `\n${YELLOW}${t(lang, "error.gleamCompileFail")}${RESET}`,
150
152
  );
@@ -223,4 +225,7 @@ ${BOLD}${t(lang, "done.nextSteps")}${RESET}
223
225
  ${CYAN}gleam run -m glendix/build${RESET} ${DIM}${t(lang, "done.prodBuild")}${RESET}
224
226
  ${CYAN}gleam run -m glendix/marketplace${RESET} ${DIM}${t(lang, "done.marketplace")}${RESET}
225
227
  `);
228
+
229
+ // etch TUI 이벤트 서버의 stdin 리스너가 이벤트 루프를 유지하므로 명시적 종료
230
+ process.exit(0);
226
231
  }
@@ -8,4 +8,4 @@ runtime = "node"
8
8
 
9
9
  [dependencies]
10
10
  gleam_stdlib = ">= 0.44.0 and < 2.0.0"
11
- glendix = ">= 2.0.15 and < 3.0.0"
11
+ glendix = ">= 2.0.16 and < 3.0.0"