Skip to content

Commit

Permalink
Use updated fix-bad-declaration-output
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jan 23, 2024
1 parent 4c31dac commit dc2c1ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.2",
"execa": "^8.0.1",
"fix-bad-declaration-output": "^1.0.1",
"fix-bad-declaration-output": "^1.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.1.1",
"rollup": "^4.9.1",
Expand Down
11 changes: 5 additions & 6 deletions addon/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { babel } from '@rollup/plugin-babel';
import { Addon } from '@embroider/addon-dev/rollup';
import { execaCommand } from 'execa';
import { fixBadDeclarationOutput } from 'fix-bad-declaration-output';

const addon = new Addon({
srcDir: 'src',
Expand Down Expand Up @@ -57,12 +58,10 @@ export default {
* README: https://github.com/NullVoxPopuli/fix-bad-declaration-output
*/
console.log('Fixing types');
await execaCommand(
`pnpm fix-bad-declaration-output declarations/**/*.d.ts`,
{
stdio: 'inherit',
},
);
await fixBadDeclarationOutput('declarations/**/*.d.ts', [
'TypeScript#56571',
'Glint#628',
]);
console.log(
'⚠️ Dangerously (but neededly) fixed bad declaration output from typescript',
);
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc2c1ac

Please sign in to comment.