Skip to content

Commit 3414f2f

Browse files
committed
Add @types/qunit
1 parent dc1ebc6 commit 3414f2f

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

files/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"@glint/template": "^1.4.0",
5252
"@ember/app-tsconfig": "^1.0.0",
5353
"@ember/library-tsconfig": "^1.0.0",<% } %>
54-
"@rollup/plugin-babel": "^6.0.4",
54+
"@rollup/plugin-babel": "^6.0.4",<% if (typescript) { %>
55+
"@types/qunit": "^2.19.12",<% } %>
5556
"babel-plugin-ember-template-compilation": "^2.2.5",
5657
"concurrently": "^9.0.1",
5758
"ember-qunit": "^9.0.2",

files/rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const addon = new Addon({
1010

1111
const rootDirectory = dirname(fileURLToPath(import.meta.url));
1212
const configs = {
13-
babel: resolve(rootDirectory, './babel.pubish.config.cjs'),<% if (typescript) { %>
13+
babel: resolve(rootDirectory, './babel.publish.config.cjs'),<% if (typescript) { %>
1414
ts: resolve(rootDirectory, './tsconfig.publish.json'),<% } %>
1515
};
1616

@@ -63,7 +63,7 @@ export default {
6363
addon.gjs(),<% if (typescript) { %>
6464

6565
// Emit .d.ts declaration files
66-
addon.declarations('declarations', `<%= packageManager %> exec glint --project ${configs.ts}`),<% } %>
66+
addon.declarations('declarations', `<%= packageManager %> exec glint --declaration --project ${configs.ts}`),<% } %>
6767

6868
// addons are allowed to contain imports of .css files, which we want rollup
6969
// to leave alone and keep in the published output.

tests/smoke-tests/--typescript.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ for (let packageManager of SUPPORTED_PACKAGE_MANAGERS) {
2828
declarationsDir = path.join(helper.projectRoot, 'declarations');
2929
});
3030

31-
afterAll(async () => {
32-
await helper.clean();
33-
});
34-
3531
it('was generated correctly', async () => {
3632
await helper.build();
3733

0 commit comments

Comments
 (0)