Open runspired opened 6 months ago
Example tsconfig from a monorepo project (EmberData in this case)
{ "include": ["src/**/*", "../../@types/fastboot", "../../@types/@glimmer/tracking.d.ts"], "glint": { "environment": ["ember-loose", "ember-template-imports"] }, "compilerOptions": { "target": "ESNext", "module": "ESNext", "moduleResolution": "bundler", "skipLibCheck": true, "declarationDir": "unstable-preview-types", "emitDeclarationOnly": true, "noEmit": false, "allowJs": false, "checkJs": false, "alwaysStrict": true, "strict": true, "allowSyntheticDefaultImports": true, "noImplicitAny": true, "noImplicitThis": true, "strictBindCallApply": true, "strictFunctionTypes": true, "strictPropertyInitialization": true, "allowUnreachableCode": false, "allowUnusedLabels": false, "noEmitOnError": false, "strictNullChecks": true, "noErrorTruncation": true, "preserveConstEnums": false, "experimentalDecorators": true, "pretty": true, // Enable faster builds // but causes us to not rebuild properly "composite": true, "incremental": true, "rootDir": "src", "declaration": true, "declarationMap": true, "inlineSourceMap": true, "inlineSources": true, "baseUrl": "src", "paths": { "@ember-data/env": ["../../private-build-infra/virtual-packages/env.d.ts"] }, "types": ["ember-source/types"] }, "references": [{ "path": "../store" }, { "path": "../core-types" }, { "path": "../request" }] }
ts files will properly resolve ember types and references paths, gts files will not.
ts
My naive suspicion is that glint is generating a unique tsconfig for gts files that needs to copy forward these options and doesn't currently.
Example tsconfig from a monorepo project (EmberData in this case)
ts
files will properly resolve ember types and references paths, gts files will not.My naive suspicion is that glint is generating a unique tsconfig for gts files that needs to copy forward these options and doesn't currently.