File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 "@babel/plugin-proposal-class-properties" : " ^7.18.6" ,
7373 "@babel/plugin-proposal-decorators" : " ^7.23.6" ,
7474 "@ember/library-tsconfig" : " ^2.0.0" ,
75- "@embroider/addon-dev" : " ^4.1.3 " ,
75+ "@embroider/addon-dev" : " ^8.3.0 " ,
7676 "@glint/core" : " ^1.5.2" ,
7777 "@glint/environment-ember-loose" : " ^1.5.2" ,
7878 "@glint/environment-ember-template-imports" : " ^1.5.2" ,
8989 "eslint-plugin-jsonc" : " ^2.11.2" ,
9090 "eslint-plugin-node" : " ^11.1.0" ,
9191 "eslint-plugin-prettier" : " ^5.1.2" ,
92- "execa" : " ^8.0.1" ,
93- "fix-bad-declaration-output" : " ^1.0.2" ,
9492 "npm-run-all" : " ^4.1.5" ,
9593 "prettier" : " ^3.1.1" ,
9694 "rollup" : " ^4.9.1" ,
Original file line number Diff line number Diff line change 11import { babel } from '@rollup/plugin-babel' ;
22import { Addon } from '@embroider/addon-dev/rollup' ;
3- import { execaCommand } from 'execa' ;
4- import { fixBadDeclarationOutput } from 'fix-bad-declaration-output' ;
53
64const addon = new Addon ( {
75 srcDir : 'src' ,
@@ -44,28 +42,6 @@ export default {
4442 // Remove leftover build artifacts when starting a new build.
4543 addon . clean ( ) ,
4644
47- {
48- name : 'fix-bad-declaration-output' ,
49- closeBundle : async ( ) => {
50- /**
51- * Generate the types (these include /// <reference types="ember-source/types"
52- * but our consumers may not be using those, or have a new enough ember-source that provides them.
53- */
54- console . log ( 'Building types' ) ;
55- await execaCommand ( `pnpm glint --declaration` , { stdio : 'inherit' } ) ;
56- /**
57- * https://github.com/microsoft/TypeScript/issues/56571#
58- * README: https://github.com/NullVoxPopuli/fix-bad-declaration-output
59- */
60- console . log ( 'Fixing types' ) ;
61- await fixBadDeclarationOutput ( 'declarations/**/*.d.ts' , [
62- 'TypeScript#56571' ,
63- 'Glint#628' ,
64- ] ) ;
65- console . log (
66- '⚠️ Dangerously (but neededly) fixed bad declaration output from typescript' ,
67- ) ;
68- } ,
69- } ,
45+ addon . declarations ( 'declarations' ) ,
7046 ] ,
7147} ;
You can’t perform that action at this time.
0 commit comments