ember-estree 0.4.1 → 0.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/parse.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-estree",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "ESTree generator for gjs and gts file used by ember",
5
5
  "keywords": [
6
6
  "AST",
package/src/parse.js CHANGED
@@ -58,6 +58,9 @@ export function toTree(source, options = {}) {
58
58
  }
59
59
  } else {
60
60
  let filename = options.filePath || "input.ts";
61
+ if (filename.includes(".gts")) {
62
+ filename = filename.replace(/\.gts$/, ".ts");
63
+ }
61
64
  let oxcResult = parseSync(filename, js);
62
65
  result = {
63
66
  ast: {