ai-heatmap 1.17.0 → 1.17.1
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/cli.mjs +5 -1
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -145,7 +145,11 @@ switch (command) {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
// 2. generate: 이 컴퓨터 데이터 수집 + 모든 data-*.json 합산 → data.json 생성
|
|
148
|
-
|
|
148
|
+
// machineName을 명시적으로 전달해 cli.mjs와 generate.mjs가 동일한 값을 사용하도록 보장
|
|
149
|
+
const genArgsWithName = genArgs.some((a) => a.startsWith("--name="))
|
|
150
|
+
? genArgs
|
|
151
|
+
: [`--name=${machineName}`, ...genArgs];
|
|
152
|
+
execSync(`node ${genScript} ${genArgsWithName.join(" ")}`, { stdio: "inherit" });
|
|
149
153
|
|
|
150
154
|
// 3. data-{name}.json push (이 컴퓨터 개별 파일)
|
|
151
155
|
const machineFile = `data-${machineName}.json`;
|