ember-cli / ember-cli/ember-addon-blueprint
Adding "src" to the "files" in package.json is throwing TypeScript errors in our consuming app
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
```
[lint:types] node_modules/.pnpm/@getflights+ember-data-utils@0.0.1_@babel+core@7.29.0_@warp-drive+core@5.8.0_@babel+cor_fe390bbe2475c54779f4ec3e838150d6/node_modules/@getflights/ember-data-utils/src/query/query.ts(10,29): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
```
Our consuming app's tsconfig:
```
{
"extends": "@tsconfig/ember",
"compilerOptions": {
"allowJs": true,
"skipLibCheck": true,
// The combination of `baseUrl` with `paths` allows Ember's classic package
// layout, which is not resolvable with the Node resolution algorithm, to
// work with TypeScript.
"baseUrl": ".",
"paths": {
"atlas/tests/*": ["tests/*"],
"atlas/*": ["app/*"],
"*": ["types/*"]
},
"types": [
"ember-source/types",
"@glint/ember-tsc/types",
"@getflights/ember-attribute-validations"
]
},
"include": ["app", "tests", "types"]
}
```
Exports etc of the addon:
```
"imports": {
"#src/*": "./src/*"
},
"exports": {
".": {
"types": "./declarations/index.d.ts",
"default": "./dist/index.js"
},
"./addon-main.js": "./addon-main.cjs",
"./*.css": "./dist/*.css",
"./query/*": {
"types": "./declarations/query/*.d.ts",
"default": "./dist/query/*.js"
},
"./utils/*": {
"types": "./declarations/utils/*.d.ts",
"default": "./dist/utils/*.js"
},
"./*": {
"types": "./declarations/*.d.ts",
"default": "./dist/*.js"
}
},
"files": [
"addon-main.cjs",
"declarations",
"dist",
"src"
],
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.