Skip to content

Commit

Permalink
Merge pull request #702 from JeroenVinke/fix/tsconfig-webpack
Browse files Browse the repository at this point in the history
fix(webpack): explicitly load the webpack typings
  • Loading branch information
JeroenVinke authored Aug 19, 2017
2 parents 6464532 + 2357a62 commit 815aa62
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 22 deletions.
3 changes: 2 additions & 1 deletion lib/commands/new/buildsystems/cli/transpilers/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module.exports = function(project) {

project.addToContent(
ProjectItem.resource('tslint.json', 'content/tslint.json'),
ProjectItem.resource('tsconfig.json', 'content/tsconfig.json'),
ProjectItem.resource('tsconfig.json', 'content/tsconfig.template.json')
.asTemplate(project.model),
ProjectItem.directory('custom_typings')
).addToTasks(
ProjectItem.resource('transpile.ts', 'tasks/transpile.ts')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ const ProjectItem = require('../../../../../project-item').ProjectItem;

module.exports = function(project) {
project.addToContent(
ProjectItem.resource('tsconfig.json', 'content/tsconfig.json'),
ProjectItem.resource('tsconfig.json', 'content/tsconfig.template.json')
.asTemplate(project.model),
ProjectItem.directory('custom_typings')
.add(
ProjectItem.resource('fetch.d.ts', 'content/custom_typings_webpack/fetch.d.ts'),
Expand Down
20 changes: 0 additions & 20 deletions lib/resources/content/tsconfig-webpack.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"moduleResolution": "node",
"lib": ["es2017", "dom"]
},
// @if bundler.id='webpack'
"files":[
"./node_modules/@types/webpack/index.d.ts"
],
// @endif
"exclude": [
"node_modules",
"aurelia_project"
Expand Down

0 comments on commit 815aa62

Please sign in to comment.