@rhseung/ps-cli 1.9.8 → 1.10.2

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.
@@ -3,9 +3,9 @@ import {
3
3
  TestCommand,
4
4
  TestView,
5
5
  test_default
6
- } from "../chunk-2YSOO6AM.js";
7
- import "../chunk-YZUGYJA4.js";
8
- import "../chunk-Q5NECGFA.js";
6
+ } from "../chunk-CUSSKX2F.js";
7
+ import "../chunk-GV265WOR.js";
8
+ import "../chunk-AHE4QHJD.js";
9
9
  export {
10
10
  TestCommand,
11
11
  TestView,
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
+ findProjectRoot,
3
4
  generateGlobalHelp,
4
5
  logger
5
- } from "./chunk-Q5NECGFA.js";
6
+ } from "./chunk-AHE4QHJD.js";
6
7
 
7
8
  // src/index.ts
8
- import { existsSync } from "fs";
9
9
  import { readdir } from "fs/promises";
10
10
  import { join, dirname } from "path";
11
11
  import { fileURLToPath as fileURLToPath3 } from "url";
@@ -9532,22 +9532,8 @@ async function main() {
9532
9532
  finalFlags = { ...cli.flags, ...commandCli.flags };
9533
9533
  }
9534
9534
  if (command !== "init") {
9535
- let currentDir = process.cwd();
9536
- let found = false;
9537
- const rootPath = process.platform === "win32" ? currentDir.split("\\")[0] + "\\" : "/";
9538
- while (currentDir !== rootPath && !found) {
9539
- const projectConfigPath = join(currentDir, ".ps-cli.json");
9540
- if (existsSync(projectConfigPath)) {
9541
- found = true;
9542
- break;
9543
- }
9544
- const parentDir = dirname(currentDir);
9545
- if (parentDir === currentDir) {
9546
- break;
9547
- }
9548
- currentDir = parentDir;
9549
- }
9550
- if (!found) {
9535
+ const projectRoot = findProjectRoot();
9536
+ if (!projectRoot) {
9551
9537
  logger.error("\uD604\uC7AC \uB514\uB809\uD1A0\uB9AC\uAC00 ps-cli \uD504\uB85C\uC81D\uD2B8\uAC00 \uC544\uB2D9\uB2C8\uB2E4.");
9552
9538
  logger.tip("\uD504\uB85C\uC81D\uD2B8\uB97C \uCD08\uAE30\uD654\uD558\uB824\uBA74 \uB2E4\uC74C \uBA85\uB839\uC5B4\uB97C \uC2E4\uD589\uD558\uC138\uC694:");
9553
9539
  console.log(" $ ps init");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhseung/ps-cli",
3
- "version": "1.9.8",
3
+ "version": "1.10.2",
4
4
  "description": "백준(BOJ) 문제 해결을 위한 통합 CLI 도구",
5
5
  "type": "module",
6
6
  "bin": {
@@ -56,7 +56,8 @@
56
56
  "gradient-string": "^2.0.2",
57
57
  "ink": "^5.0.1",
58
58
  "meow": "^14.0.0",
59
- "react": "^18.3.1"
59
+ "react": "^18.3.1",
60
+ "yaml": "^2.8.2"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@types/node": "^22.10.2",