@cabin-icarus/tooltip_generator 1.7.7 → 1.7.8

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/init.ts CHANGED
@@ -36,8 +36,8 @@ function copyFiles() {
36
36
  fs.copyFileSync(filePath, resultPath);
37
37
  console.log(`Not found, languages.ts copied to ${resultPath} folder`);
38
38
  }
39
- filePath = __dirname + "/languages.js";
40
- resultPath = resourcePath + "/languages.js";
39
+ filePath = __dirname + "/languages.ts";
40
+ resultPath = resourcePath + "/languages.ts";
41
41
  console.log(`Checking if languages.js exsts in ${filePath}`)
42
42
  if (fs.existsSync(resultPath))
43
43
  {
@@ -65,9 +65,9 @@ function copyFiles() {
65
65
  {
66
66
  fs.copyFileSync(dirPath + "/localizationData.ts", resultPath + "/localizationData.ts");
67
67
  }
68
- if (!fs.existsSync(resultPath + "/localizationData.js"))
68
+ if (!fs.existsSync(resultPath + "/localizationData.ts"))
69
69
  {
70
- fs.copyFileSync(dirPath + "/localizationData.js", resultPath + "/localizationData.js");
70
+ fs.copyFileSync(dirPath + "/localizationData.ts", resultPath + "/localizationData.ts");
71
71
  }
72
72
  }
73
73
  }
@@ -92,7 +92,7 @@ function changeImports()
92
92
  })
93
93
  }
94
94
 
95
- const compilerJSFilePath = __dirname + "/localizationCompiler.js";
95
+ const compilerJSFilePath = __dirname + "/localizationCompiler.ts";
96
96
 
97
97
  if (fs.existsSync(compilerJSFilePath))
98
98
  {
package/install.ts CHANGED
@@ -46,7 +46,7 @@ function CheckPackage() {
46
46
  hasDev = true;
47
47
  }
48
48
  if (name == "init") {
49
- if (scripts[name] !== "link-module-alias && node node_modules/~generator/init.js") {
49
+ if (scripts[name] !== "link-module-alias && node node_modules/~generator/init.ts") {
50
50
  console.log("\x1b[31m%s\x1b[0m", "Unexpected 'init' script in package.json!");
51
51
  return;
52
52
  }
@@ -121,14 +121,8 @@ function CheckPackage() {
121
121
 
122
122
  // copy the default package.json if there wasn't any previously
123
123
  } else {
124
- const copyPackage = scriptPath + "_package.json";
125
- if (fs.existsSync(copyPackage)) {
126
- console.log("Copying new package.json");
127
- fs.copyFileSync(copyPackage, rootPath + "package.json");
128
- } else {
129
- console.log("\x1b[31m%s\x1b[0m", "\nCouldn't find _package.json! Have you installed this module correctly?")
130
- return;
131
- }
124
+ console.log("\x1b[31m%s\x1b[0m", "\n项目根目录没有package.json文件")
125
+ return;
132
126
  }
133
127
  console.log("Running final installation, please wait for the success message...")
134
128
  child.exec("yarn install", {
package/package.json CHANGED
@@ -45,5 +45,5 @@
45
45
  "dev:runlocalizationWatcher": "ts-node node_modules/~generator/fsWatcher.ts",
46
46
  "init": "link-module-alias && ts-node node_modules/~generator/init.ts"
47
47
  },
48
- "version": "1.7.7"
48
+ "version": "1.7.8"
49
49
  }
package/_package.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "name": "tooltip_generator",
3
- "version": "1.3.14",
4
- "scripts": {
5
- "build": "run-p build:*",
6
- "dev": "run-p dev:*",
7
- "dev:localizationCompiler": "tsc --project node_modules/~resource/tsconfig.json",
8
- "dev:localizationCompilerWatcher": "tsc --project node_modules/~resource/tsconfig.json --watch",
9
- "dev:runlocalizationWatcher": "node node_modules/~generator/fsWatcher.js",
10
- "dev:localizationGeneratorWatcher": "tsc --project node_modules/~generator/tsconfig.json",
11
- "init": "link-module-alias && node node_modules/~generator/init.js"
12
- },
13
- "_moduleAliases": {
14
- "~resource": "resource",
15
- "~generator": "node_modules/@shushishtok/tooltip_generator"
16
- },
17
- "devDependencies": {
18
- "@types/node": "^14.14.20",
19
- "fs-extra": "^9.0.1",
20
- "ts-node": "^9.1.1"
21
- },
22
- "dependencies": {
23
- "@shushishtok/tooltip_generator": "^1.2.3",
24
- "link-module-alias": "^1.2.0",
25
- "node-watch": "^0.7.1",
26
- "npm-run-all": "^4.1.5",
27
- "typescript": "^4.1.3",
28
- "valve-kv": "^1.0.1"
29
- }
30
- }