Skip to content

Commit

Permalink
fix(create-analog): add tsconfig references so IDE can recognise proj…
Browse files Browse the repository at this point in the history
…ects (#65)
  • Loading branch information
iamandrewluca authored Aug 30, 2022
1 parent 0aafe06 commit 08c7467
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
10 changes: 3 additions & 7 deletions packages/create-analog/template-angular-v14/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./out-tsc/app",
"types": []
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"]
}
11 changes: 6 additions & 5 deletions packages/create-analog/template-angular-v14/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@
"importHelpers": true,
"target": "es2020",
"module": "es2020",
"lib": [
"es2020",
"dom"
]
"lib": ["es2020", "dom"]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
},
"references": [
{ "path": "tsconfig.app.json" },
{ "path": "tsconfig.spec.json" }
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./out-tsc/spec",
"types": ["node", "vitest/globals"]
},
"files": ["src/test.ts", "src/polyfills.ts"],
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
"include": ["src/**/*.spec.ts", "src/**/*.ts"]
}

0 comments on commit 08c7467

Please sign in to comment.