Skip to content

Commit

Permalink
Momentary lapse in how templating works
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jun 13, 2024
1 parent a6763df commit 72e1390
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions files/__addonLocation__/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ export default {
* but our consumers may not be using those, or have a new enough ember-source that provides them.
*/
console.log("Building types");
let command = npm ? 'npm exec glint -- --declaration' : `${packageManager} glint --declaration`;

await $({ stdio: 'inherit' })`${command}`;
<% if (npm) { %>
await $({ stdio: 'inherit' })`npm exec glint -- --declaration`;
<% } else { %>
await $({ stdio: 'inherit' })`<%= packageManager %> glint --declaration`;
<% } %>

/**
* https://github.com/microsoft/TypeScript/issues/56571#
Expand Down

0 comments on commit 72e1390

Please sign in to comment.