ts2famix 1.4.0 → 1.4.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/dist/analyze.js CHANGED
@@ -69,7 +69,8 @@ class Importer {
69
69
  return famixRep;
70
70
  }
71
71
  processEntities(project) {
72
- processFunctions.processFiles(project.getSourceFiles());
72
+ const onlyTypeScriptFiles = project.getSourceFiles().filter(f => f.getFilePath().endsWith('.ts'));
73
+ processFunctions.processFiles(onlyTypeScriptFiles);
73
74
  const accesses = processFunctions.accessMap;
74
75
  const methodsAndFunctionsWithId = processFunctions.methodsAndFunctionsWithId;
75
76
  const classes = processFunctions.classes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts2famix",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A TypeScript to JSON importer for Moose 10.",
5
5
  "main": "dist/ts2famix-cli.js",
6
6
  "scripts": {
package/src/analyze.ts CHANGED
@@ -32,6 +32,7 @@ export class Importer {
32
32
 
33
33
  // try {
34
34
  logger.debug(`famixRepFromPaths: paths: ${paths}`);
35
+
35
36
  this.project.addSourceFilesAtPaths(paths);
36
37
 
37
38
  initFamixRep(this.project);
@@ -51,7 +52,8 @@ export class Importer {
51
52
  }
52
53
 
53
54
  private processEntities(project) {
54
- processFunctions.processFiles(project.getSourceFiles());
55
+ const onlyTypeScriptFiles = project.getSourceFiles().filter(f => f.getFilePath().endsWith('.ts'));
56
+ processFunctions.processFiles(onlyTypeScriptFiles);
55
57
  const accesses = processFunctions.accessMap;
56
58
  const methodsAndFunctionsWithId = processFunctions.methodsAndFunctionsWithId;
57
59
  const classes = processFunctions.classes;