axmap-cli 1.2.4 โ 1.2.5
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/axmap.mjs +1 -1
- package/package.json +1 -1
- package/src/update.mjs +20 -2
package/bin/axmap.mjs
CHANGED
|
@@ -2690,7 +2690,7 @@ async function cmdUpdate(flags) {
|
|
|
2690
2690
|
if (notice) {
|
|
2691
2691
|
for (const l of notice.split('\n')) console.log(l)
|
|
2692
2692
|
console.log('')
|
|
2693
|
-
console.log(' ๐ด ์ ์ ๋ก ๋ฐ๋์ง ์์ต๋๋ค. ์
|
|
2693
|
+
console.log(' ๐ด ์ ์ ๋ก ๋ฐ๋์ง ์์ต๋๋ค. ์ ๋ช
๋ น์ ์ง์ ์คํํ ๋๋ง ๋ฐ๋๋๋ค.')
|
|
2694
2694
|
} else if (skewed) {
|
|
2695
2695
|
// ์ฌ๊ธฐ์ "์ต์ ์
๋๋ค" ๋ผ๊ณ ๋งํ๋ฉด ๊ฑฐ์ง์ด ๋๋ค. ์ด PC ์ ์ค๋ ฅ์ **๊ฐ์ฅ ๋ก์ ๊ฒ**์ด๋ค.
|
|
2696
2696
|
console.log('๋ ์ง์คํธ๋ฆฌ ๊ธฐ์ค์ผ๋ก๋ ์ต์ ์ด์ง๋ง, ์ ์ฌ๋ณธ์ด ์์ง ์ ๋ง์ต๋๋ค.')
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"//name": "๐ด npm ์ 'axmap' ์ 2022๋
๋ถํฐ ๋จ์ด ์ฐ๊ณ ์๋ ๋ค๋ฅธ ๊พธ๋ฌ๋ฏธ๋ค(leozin_ ์ Map ๋ผ์ด๋ธ๋ฌ๋ฆฌ, 1.1.2). ๊ทธ๋์ `npx axmap` ์ ์ฐ๋ฆฌ ๊ฒ์ด ์๋๊ณ , ๋๊ตฌ์๊ฒ๋ ๊ทธ๋ ๊ฒ ์๋ดํ๋ฉด ์ ๋๋ค. 2026-08-28 ์ axmap-cli ๋ก ์ ํ๋ค โ ์ค์ฝํ(@์ฌ์ฉ์/์ด๋ฆ)๋ฅผ ์ฐ์ง ์๋ ์ด์ ๋ ์ค์ฝํ๊ฐ npm ๊ณ์ ์ด๋ฆ์ ๋ฌถ์ฌ์ ๋์ค์ ํ์ด๋ ์กฐ์ง์ผ๋ก ์ฎ๊ธธ ๋ ์ด๋ฆ์ด ํต์งธ๋ก ๋ฐ๋๊ธฐ ๋๋ฌธ์ด๋ค. ์ฌ๋์ด ์น๋ **๋ช
๋ น** ์ด๋ฆ์ ๊ทธ๋๋ก axmap ์ด๋ค (์๋ bin) โ ๊พธ๋ฌ๋ฏธ ์ด๋ฆ๊ณผ ๋ช
๋ น ์ด๋ฆ์ ๋ฌ๋ผ๋ ๋๋ค.",
|
|
3
3
|
"name": "axmap-cli",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.5",
|
|
5
5
|
"//private": "๐ด ์ฌ๊ธฐ ์๋ \"private\": true ๋ฅผ 2026-08-28 ์ ์ง์ ๋ค. ๊ทธ ์ค์ด ์๋ ๋์ npm publish ๋ ๊ฑฐ๋ถ๋๋ค. ๋๋๋ฆฌ๋ ค๋ฉด ๋ค์ ๋ฃ์ผ๋ฉด ๋์ง๋ง, ์ด๋ฏธ ์ฌ๋ผ๊ฐ ๋ฒ์ ์ ๊ทธ๋๋ ์ ์ฌ๋ผ์ง๋ค โ npm ์ ๊ฐ์ ๋ฒํธ๋ฅผ ๋ฎ์ด์ฐ์ง ๋ชปํ๊ณ ์ญ์ ๋ 72์๊ฐ ์์๋ง ๋๋ค. ์ฆ ์ด ์ค์ ๋์ด๋ฆฌ๋ ๊ฒ์ '์์ผ๋ก ์ ์ฌ๋ฆฐ๋ค' ๋ ๋ป์ด์ง '์ฌ๋ฆฐ ๊ฒ์ ์์ค๋ค' ๋ ๋ป์ด ์๋๋ค.",
|
|
6
6
|
"//publishConfig": "axmap-cli ๋ ์ค์ฝํ๊ฐ ์์ด์ ๊ธฐ๋ณธ์ด ์ด๋ฏธ ๊ณต๊ฐ๋ค. ์ฆ ์ง๊ธ์ ์์ด๋ ๋๋ค. ๊ทธ๋๋ ๋จ๊ฒจ ๋๋ ์ด์ : ๋์ค์ @์กฐ์ง/axmap ์ฒ๋ผ ์ค์ฝํ๋ฅผ ๋ถ์ด๋ ๋ ์ด ์ค์ด ์์ผ๋ฉด publish ๊ฐ '์ ๋ฃ ํ๋์ด ํ์ํ๋ค'๋ ์๋ฑํ ๋ง๋ก ์คํจํ๋ค.",
|
|
7
7
|
"publishConfig": {
|
package/src/update.mjs
CHANGED
|
@@ -131,15 +131,33 @@ export const isStale = (rec, nowMs, interval = CHECK_INTERVAL_MS) =>
|
|
|
131
131
|
!rec || typeof rec.checkedAt !== 'number' || nowMs - rec.checkedAt >= interval
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* ์ฌ๋์๊ฒ ๋ณด์ฌ์ค
|
|
134
|
+
* ์ฌ๋์๊ฒ ๋ณด์ฌ์ค ์๋ด. ์๋ฆด ๊ฒ์ด ์์ผ๋ฉด `null`.
|
|
135
135
|
*
|
|
136
136
|
* ๐ด ๋ถ๋ฅด๋ ์ชฝ์ ์ด๊ฒ์ **stderr ๋ก** ๋ธ๋ค. stdout ์ `--json` ์ด ์ฐ๋ ์๋ฆฌ๋ผ,
|
|
137
137
|
* ์ฌ๊ธฐ์ ์ฌ๋์ด ์ฝ๋ ๊ธ์ ์์ผ๋ฉด ๊ทธ ์ถ๋ ฅ์ ํ์ฑํ๋ ์ชฝ์ด ์กฐ์ฉํ ๊นจ์ง๋ค.
|
|
138
|
+
*
|
|
139
|
+
* ๐ด **๋ ์ค์ ๋ค ๋ธ๋ค (2026-09-12).** ์ด PC ์ ํ์ด ๋ ๊ตฐ๋ฐ ์๊ธฐ ๋๋ฌธ์ด๋ค โ
|
|
140
|
+
* `axmap` ๋ช
๋ น(์ ์ญ ์ค์น)๊ณผ git ํ
์ด ๋ถ๋ฅด๋ ์ฌ๋ณธ(`~/.axmap/app`). ์๋ก ์
|
|
141
|
+
* ๋ฐ๋ผ๊ฐ๋ค.
|
|
142
|
+
*
|
|
143
|
+
* ์ ์๋ `npx โฆ setup` ํ ์ค๋ง ์๋ดํ๋ค. ๊ทธ๋ฐ๋ฐ **`setup` ์ ์ ์ญ ์ค์น๋ฅผ ์ ํ
|
|
144
|
+
* ๊ฑด๋๋ฆฌ์ง ์๋๋ค** (`tools/setup.mjs` ์ `npm i` ๊ฐ 0๊ฑด์ด๋ค โ ๊ฑฐ๊ธฐ ์๋
|
|
145
|
+
* `--commands global` ์ "global" ์ ์ฌ๋์ ๋ช
๋ น์ ์ด๋ ๋์ง์ด์ง ์ ์ญ ์ค์น๊ฐ
|
|
146
|
+
* ์๋๋ค). ๊ทธ๋์ ๊ทธ ์๋ด๋ฅผ ๊ทธ๋๋ก ๋ฐ๋ฅด๋ฉด **์ฌ๋ณธ๋ง ์ ํ์ด ๋๊ณ `axmap` ๋ช
๋ น์
|
|
147
|
+
* ์ ํ์ผ๋ก ๋จ๋๋ค.**
|
|
148
|
+
*
|
|
149
|
+
* ๊ทธ๊ฑด ์ด ๋ช
๋ น์ด 1.2.4 ์์ ๊ณ ์น ๋ฌธ์ (์ฌ๋ณธ์ด ๋ก์๋๋ฐ "์ต์ ์
๋๋ค" ๋ผ๊ณ ํ ๊ฒ)๋ฅผ
|
|
150
|
+
* **์๋ด๊ฐ ์ค์ค๋ก ๋ง๋ค์ด ๋ด๋ ๊ฒ**์ด๋ค. ๋ฐ์ชฝ์ง๋ฆฌ ์๋ด๋ ํ๋ฆฐ ์๋ด๋ณด๋ค ๋ซ์ง
|
|
151
|
+
* ์๋ค โ ์ํจ ๋๋ก ํ๋๋ฐ ์ ๊ณ ์ณ์ง๋ฉด ์ฌ๋์ ๋๊ตฌ๋ฅผ ์ ๋ฏฟ๊ฒ ๋๋ค.
|
|
138
152
|
*/
|
|
139
153
|
export function noticeLine(current, latest) {
|
|
140
154
|
if (!current || !latest) return null
|
|
141
155
|
if (compareVersions(latest, current) <= 0) return null
|
|
142
|
-
return `์ ๋ฒ์ ์ด ์์ต๋๋ค: ${current} โ ${latest}\n
|
|
156
|
+
return `์ ๋ฒ์ ์ด ์์ต๋๋ค: ${current} โ ${latest}\n`
|
|
157
|
+
+ ` ๋ฐ์ผ๋ ค๋ฉด: npm i -g ${PACKAGE_NAME}@latest\n`
|
|
158
|
+
+ ` npx -y ${PACKAGE_NAME}@latest setup\n`
|
|
159
|
+
+ ' ๐ด ๋ ์ค ๋ค ํ์ํฉ๋๋ค โ ์์ axmap ๋ช
๋ น์, ๋ค๋ git ํ
์ด ๋ถ๋ฅด๋ ์ฌ๋ณธ์\n'
|
|
160
|
+
+ ' ์ฌ๋ฆฝ๋๋ค. ์๋ก ์ ๋ฐ๋ผ๊ฐ๋๋ค.'
|
|
143
161
|
}
|
|
144
162
|
|
|
145
163
|
/**
|