ember-eslint-parser 0.5.7 → 0.5.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-eslint-parser",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "repository": {
@@ -9,9 +9,12 @@ const mathMLTags = require('mathml-tag-names');
9
9
 
10
10
  let TypescriptScope = null;
11
11
  try {
12
- const path = require.resolve('@typescript-eslint/parser');
12
+ const parserPath = require.resolve('@typescript-eslint/parser');
13
13
  // eslint-disable-next-line n/no-unpublished-require
14
- TypescriptScope = require('@typescript-eslint/scope-manager', { paths: [path] });
14
+ const scopeManagerPath = require.resolve('@typescript-eslint/scope-manager', {
15
+ paths: [parserPath],
16
+ });
17
+ TypescriptScope = require(scopeManagerPath);
15
18
  } catch {
16
19
  // not available
17
20
  }
@@ -5,9 +5,10 @@ const { replaceRange } = require('./transforms');
5
5
  let patchTs, replaceExtensions, syncMtsGtsSourceFiles, typescriptParser, isPatched;
6
6
 
7
7
  try {
8
- const tsPath = require.resolve('@typescript-eslint/parser');
8
+ const parserPath = require.resolve('@typescript-eslint/parser');
9
9
  // eslint-disable-next-line n/no-unpublished-require
10
- const ts = require('typescript', { paths: [tsPath] });
10
+ const tsPath = require.resolve('typescript', { paths: [parserPath] });
11
+ const ts = require(tsPath);
11
12
  typescriptParser = require('@typescript-eslint/parser');
12
13
  patchTs = function patchTs() {
13
14
  if (isPatched) {
@@ -109,6 +110,7 @@ try {
109
110
  path: mtsSourceFile.path,
110
111
  originalFileName: mtsSourceFile.originalFileName,
111
112
  resolvedPath: mtsSourceFile.resolvedPath,
113
+ impliedNodeFormat: mtsSourceFile.impliedNodeFormat,
112
114
  };
113
115
  Object.assign(mtsSourceFile, sourceFile, keep);
114
116
  mtsSourceFile.isVirtualGts = true;