File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 41
41
"lint:errors" : " eslint . --quiet" ,
42
42
"lint:js:fix" : " eslint . --fix" ,
43
43
"lint:types" : " glint" ,
44
- "prepack" : " tsc --project tsconfig. declarations.json " ,
44
+ "prepack" : " glint --declaration && rimraf declarations/app declarations/tests declarations/playwright.config.d.ts declarations/playwright.config.d.ts.map " ,
45
45
"postpack" : " rimraf declarations" ,
46
46
"start" : " concurrently -c \" auto\" -P \" npm:serve -- {@}\" \" npm:typecheck\" --" ,
47
- "typecheck" : " tsc --noEmit --watch" ,
47
+ "typecheck" : " glint --watch" ,
48
48
"serve" : " ember serve" ,
49
49
"test" : " concurrently \" npm:lint\" \" npm:test:*\" --names \" lint,test:\" " ,
50
50
"test:ember" : " ember test" ,
Original file line number Diff line number Diff line change
1
+ /// <reference types="node" />
1
2
import { defineConfig , devices } from '@playwright/test' ;
2
3
3
4
/**
Original file line number Diff line number Diff line change 15
15
"@lblod/ember-rdfa-editor/test-support" : [" addon-test-support" ],
16
16
"@lblod/ember-rdfa-editor/test-support/*" : [" addon-test-support/*" ],
17
17
"*" : [" types/*" ]
18
- }
18
+ },
19
+ // These settings copied over from tsconfig.declarations.json as glint seems to ignore
20
+ // the --project argument. This is also why the --project has been replaced with a
21
+ // rimraf of the extra files in the npm script.
22
+ "declarationDir" : " declarations" ,
23
+ // glint has a bug that leads to inconsistent behaviour in watch mode
24
+ // See https://github.com/typed-ember/glint/issues/649
25
+ // If you want to use it, comment out the declarationDir and uncomment the allowJs
26
+ // "allowJs": true,
27
+ "emitDeclarationOnly" : true ,
28
+ "noEmit" : false ,
29
+ "rootDir" : " ." ,
30
+ // glint has another bug which means that glint directive comments cause an internal error,
31
+ // so to get declarations we need to also emit when we get an error (which is every time)
32
+ // See https://github.com/typed-ember/glint/issues/599
33
+ "noEmitOnError" : false ,
19
34
},
20
35
"include" : [
21
36
" app/**/*" ,
You can’t perform that action at this time.
0 commit comments