gpt-po 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpt-po",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "command tool for translate po files by gpt",
5
5
  "main": "lib/src/index.js",
6
6
  "bin": {
package/lib/src/index.js CHANGED
@@ -11,8 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  const commander_1 = require("commander");
14
- const os_1 = require("os");
15
- const path_1 = require("path");
16
14
  const pkg = require("../package.json");
17
15
  const sync_1 = require("./sync");
18
16
  const translate_1 = require("./translate");
@@ -76,9 +74,9 @@ program
76
74
  // open `systemprompt.txt` file by system text default editor
77
75
  const copyFile = __dirname + "/systemprompt.txt";
78
76
  // user home path
79
- const promptHome = (0, path_1.join)((0, os_1.homedir)(), "systemprompt.txt");
80
- (0, utils_1.copyFileIfNotExists)(promptHome, copyFile);
81
- (0, utils_1.openFileByDefault)(promptHome);
77
+ const promptFile = (0, utils_1.findConfig)("systemprompt.txt");
78
+ (0, utils_1.copyFileIfNotExists)(promptFile, copyFile);
79
+ (0, utils_1.openFileByDefault)(promptFile);
82
80
  });
83
81
  // program command `userdict` with help text `open/edit user dictionary`
84
82
  program
@@ -88,9 +86,9 @@ program
88
86
  // open `dictionary.json` file by system text default editor
89
87
  const copyFile = __dirname + "/dictionary.json";
90
88
  // user home path
91
- const dictHome = (0, path_1.join)((0, os_1.homedir)(), "dictionary.json");
92
- (0, utils_1.copyFileIfNotExists)(dictHome, copyFile);
93
- (0, utils_1.openFileByDefault)(dictHome);
89
+ const dictFile = (0, utils_1.findConfig)("dictionary.json");
90
+ (0, utils_1.copyFileIfNotExists)(dictFile, copyFile);
91
+ (0, utils_1.openFileByDefault)(dictFile);
94
92
  });
95
93
  program.parse(process.argv);
96
94
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpt-po",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "command tool for translate po files by gpt",
5
5
  "main": "lib/src/index.js",
6
6
  "bin": {