Skip to content

Commit 31ea15c

Browse files
committed
Use updated fix-bad-declaration-output
1 parent 6b8e7d6 commit 31ea15c

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

addon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"eslint-plugin-node": "^11.1.0",
8888
"eslint-plugin-prettier": "^5.1.2",
8989
"execa": "^8.0.1",
90-
"fix-bad-declaration-output": "^1.0.1",
90+
"fix-bad-declaration-output": "^1.0.2",
9191
"npm-run-all": "^4.1.5",
9292
"prettier": "^3.1.1",
9393
"rollup": "^4.9.1",

addon/rollup.config.mjs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { babel } from '@rollup/plugin-babel';
22
import { Addon } from '@embroider/addon-dev/rollup';
33
import { execaCommand } from 'execa';
4+
import { fixBadDeclarationOutput } from 'fix-bad-declaration-output';
45

56
const addon = new Addon({
67
srcDir: 'src',
@@ -57,12 +58,10 @@ export default {
5758
* README: https://github.com/NullVoxPopuli/fix-bad-declaration-output
5859
*/
5960
console.log('Fixing types');
60-
await execaCommand(
61-
`pnpm fix-bad-declaration-output declarations/**/*.d.ts`,
62-
{
63-
stdio: 'inherit',
64-
},
65-
);
61+
await fixBadDeclarationOutput('declarations/**/*.d.ts', [
62+
'TypeScript#56571',
63+
'Glint#628',
64+
]);
6665
console.log(
6766
'⚠️ Dangerously (but neededly) fixed bad declaration output from typescript',
6867
);

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)