Skip to content

Commit

Permalink
fix patcher
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Jun 22, 2023
1 parent b3c3eb5 commit 993224d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template-lint/patch-linter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require("path");
const fs = require("fs");

const index = process.argv.indexOf('--filename')

Expand All @@ -10,7 +11,9 @@ const lookupPaths = [
if (fs.existsSync("node_modules/.pnpm")) {
const entries = fs.readdirSync("node_modules/.pnpm");
const recast = entries.find(d => d.startsWith('ember-template-recast'));
lookupPaths.push(path.join("node_modules/.pnpm", recast, "node_modules"));
if (recast) {
lookupPaths.push(path.join("node_modules/.pnpm", recast, "node_modules"));
}
}

const glimmerPath = require.resolve('@glimmer/syntax', { paths: lookupPaths });
Expand Down

0 comments on commit 993224d

Please sign in to comment.