@cabin-icarus/tooltip_generator 1.7.0 → 1.7.1

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/fsWatcher.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as fs from 'fs';
1
+ const fs = require('fs');
2
2
  import { LocalizationCompiler } from './localizationCompiler';
3
- import { LocalizationData} from './localizationInterfaces';
3
+ import { LocalizationData } from './localizationInterfaces';
4
4
  const watch = require("node-watch");
5
5
 
6
6
  let completeData: {[path: string]: LocalizationData} = {};
@@ -9,13 +9,13 @@ const generatorPath = "node_modules/~generator";
9
9
 
10
10
  console.log(fs.realpathSync(generatorPath));
11
11
 
12
- let watcher = watch([resourcePath + "/localization", generatorPath + "/localizationCompiler.ts"], {recursive: true})
12
+ let watcher = watch([resourcePath + "/localization"], {recursive: true})
13
13
  watcher.on("change", (eventType ?: 'update' | 'remove' | undefined, filePath ?: string) => {
14
14
  if (!filePath) return;
15
15
  if (filePath.includes("localizationCompiler.ts")) {
16
16
  compiler = loadCompiler();
17
17
  }
18
- let match = /(node_modules[\\/])?(.*[\/|\\](\w+)).js/g.exec(filePath);
18
+ let match = /(node_modules[\\/])?(.*[\/|\\](\w+)).ts/g.exec(filePath);
19
19
  if (eventType == "update" && filePath && match) {
20
20
  const curpath = match[2];
21
21
  const data = getDataFromFile(curpath + ".ts");
package/install.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as fs from 'fs';
2
- import * as child from 'child_process';
1
+ const fs = require('fs');
2
+ const child = require('child_process');
3
3
 
4
4
  interface packageSnippet {
5
5
  scripts?: {[name: string]: string};
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.0"
48
+ "version": "1.7.1"
49
49
  }