@clazic/urban 0.2.21 → 0.2.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clazic/urban",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "도시계획연구 보고서 자동 수집·지식베이스 데몬",
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,8 +10,6 @@ import { homedir, tmpdir } from 'os';
10
10
  import { join } from 'path';
11
11
  import https from 'https';
12
12
 
13
- if (process.platform !== 'win32') process.exit(0);
14
-
15
13
  const URBAN_HOME = process.env.URBAN_HOME ?? join(homedir(), '.urban');
16
14
  const POPPLER_DIR = join(URBAN_HOME, 'bin', 'poppler');
17
15
  const BIN_PATH_FILE = join(URBAN_HOME, 'bin', 'poppler-bin-path.txt');
@@ -135,9 +133,9 @@ async function main() {
135
133
  console.log(`[urban] poppler 설치 완료 → ${binDir}`);
136
134
  }
137
135
 
138
- main()
139
- .catch(err => {
136
+ if (process.platform === 'win32') {
137
+ await main().catch(err => {
140
138
  console.warn('[urban] poppler 자동 설치 실패 (계속 진행):', err.message);
141
139
  console.warn('[urban] 수동 설치: winget install oschwartz10612.poppler');
142
- })
143
- .finally(() => process.exit(0));
140
+ });
141
+ }