Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Sep 21, 2022
1 parent 4b831b3 commit d5b1d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glint/glint-hbs-imports-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const patchedRewriteDiagnostics = function (diagnostics, fileName) {
/Cannot find module '(.*)' or its corresponding type declarations./,
/Namespace '(.*)' has no exported member/
];
const result = regexs.map(r => d.messageText.match?.(r)).find(r => r && result.length > 1)
const result = regexs.map(r => d.messageText.match?.(r)).find(r => r && r.length > 1)
if (result && result.length > 1) {
const importPath = result[1];
const rel = path.relative(cwd, d.file.fileName).replace(/\\/g, '/');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-hbs-imports",
"version": "0.5.10",
"version": "0.5.11",
"repository": {
"type": "git",
"url": "https://github.com/patricklx/ember-hbs-imports"
Expand Down

0 comments on commit d5b1d04

Please sign in to comment.