From 72e13904f0a4b06d8fbcaa91f957d322eb6135d5 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Thu, 13 Jun 2024 10:37:57 -0400 Subject: [PATCH] Momentary lapse in how templating works --- files/__addonLocation__/rollup.config.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/files/__addonLocation__/rollup.config.mjs b/files/__addonLocation__/rollup.config.mjs index cbd6eea..8a895b0 100644 --- a/files/__addonLocation__/rollup.config.mjs +++ b/files/__addonLocation__/rollup.config.mjs @@ -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#