typed-ember / glint

TypeScript powered tooling for Glimmer templates
https://typed-ember.gitbook.io/glint
MIT License
108 stars 50 forks source link

auto-import / import-suggestions only work on gts files #692

Open NullVoxPopuli opened 5 months ago

NullVoxPopuli commented 5 months ago

like in https://github.com/typed-ember/glint/issues/676 it seems none of the language features are available in gjs.

Demo project: https://github.com/NullVoxPopuli/is-polaris-ready-yet/

My tsconfig.json:

{
  "extends": "@tsconfig/ember/tsconfig.json",
  "glint": {
    "environment": ["ember-loose", "ember-template-imports"],
  },
  "compilerOptions": {
    // The combination of `baseUrl` with `paths` allows Ember's classic package
    // layout, which is not resolveable with the Node resolution algorithm, to
    // work with TypeScript.
    "baseUrl": ".",
    "allowJs": true,
    // Apps don't need to publish declarations
    "declaration": false,
    "paths": {
      "is-ready/tests/*": ["tests/*"],
      "is-ready/*": ["app/*"],
      "*": ["types/*"],
    },
  },
  "include": ["app/**/*", "tests/**/*", "types/**/*"],
}