Skip to content

Commit 86296ab

Browse files
committed
NPM needs a '--' to signify args should be passed to the underlying command, and not to NPM
1 parent adc57b2 commit 86296ab

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

files/rollup.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ export default {
6464

6565
// Emit .d.ts declaration files
6666
addon.declarations(
67-
'declarations',
68-
`<%= packageManager %> exec glint --declaration --project ${configs.ts}`,
67+
'declarations',<% if (packageManager === 'pnpm') { %>
68+
`pnpm glint --declaration --project ${configs.ts}`,<% } else { %>
69+
`npm exec glint -- --declaration --project ${configs.ts}`,<% } %>
6970
),<% } %>
7071

7172
// addons are allowed to contain imports of .css files, which we want rollup

0 commit comments

Comments
 (0)