diff --git a/templates/app/tsconfig(ts).json b/templates/app/tsconfig(ts).json index c88302289..cddcf25b2 100644 --- a/templates/app/tsconfig(ts).json +++ b/templates/app/tsconfig(ts).json @@ -11,6 +11,10 @@ "target": "ES5", "skipLibCheck": true }, + "moduleResolution": "node", + "typeRoots": [ + "node_modules/@types" + ], "exclude": [ "node_modules" ], diff --git a/templates/app/tsconfig.client.test(ts).json b/templates/app/tsconfig.client.test(ts).json index dea7eba66..65075f53b 100644 --- a/templates/app/tsconfig.client.test(ts).json +++ b/templates/app/tsconfig.client.test(ts).json @@ -1,12 +1,16 @@ { - "compilerOptions": { - "sourceMap": true, - "rootDir": "./client", - "module": "commonjs", - "outDir": ".tmp/test" - }, - "filesGlob": [ - "client/{app,components}/**/*.{spec,mock}.ts", - "client/test_typings/**/*.d.ts" - ] + "compilerOptions": { + "sourceMap": true, + "rootDir": "./client", + "module": "commonjs", + "outDir": ".tmp/test" + }, + "moduleResolution": "node", + "typeRoots": [ + "node_modules/@types" + ], + "filesGlob": [ + "client/{app,components}/**/*.{spec,mock}.ts", + "client/test_typings/**/*.d.ts" + ] }