From d5b1d044a38f39180e164e52b799cf9c76a03b94 Mon Sep 17 00:00:00 2001 From: patrick Date: Wed, 21 Sep 2022 12:17:30 +0200 Subject: [PATCH] fix --- glint/glint-hbs-imports-env.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glint/glint-hbs-imports-env.js b/glint/glint-hbs-imports-env.js index b1d9ad7..107b0d9 100644 --- a/glint/glint-hbs-imports-env.js +++ b/glint/glint-hbs-imports-env.js @@ -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, '/'); diff --git a/package.json b/package.json index c2bb08f..a7a2755 100644 --- a/package.json +++ b/package.json @@ -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"