Skip to content

Commit dfaa49e

Browse files
author
sectore
committed
add compiler option "--moduleResolution classic" to avoid issues w/ relative commonJS pathes while upgrading to TS 1.6 // add filesGlob to auto generate pathes by editor (e.g. Atom.io)
1 parent 63dc2fc commit dfaa49e

File tree

1 file changed

+39
-21
lines changed

1 file changed

+39
-21
lines changed

examples/counter/tsconfig.json

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,41 @@
11
{
2-
"version": "1.5.0",
3-
"compilerOptions": {
4-
"target": "es5",
5-
"module": "commonjs",
6-
"declaration": false,
7-
"noImplicitAny": false,
8-
"removeComments": true,
9-
"noLib": false,
10-
"emitDecoratorMetadata": true,
11-
"experimentalDecorators": true,
12-
"sourceMap": true,
13-
"listFiles": true,
14-
"outDir": "dist"
15-
},
16-
"files": [
17-
"./node_modules/typescript/bin/lib.dom.d.ts",
18-
"./typings/_custom/custom.d.ts",
19-
"./typings/tsd.d.ts",
20-
"./containers/App.ts",
21-
"./bootstrap.ts"
22-
]
2+
"version": "1.6.2",
3+
"compilerOptions": {
4+
"target": "es5",
5+
"module": "commonjs",
6+
"declaration": false,
7+
"noImplicitAny": false,
8+
"removeComments": true,
9+
"noLib": false,
10+
"emitDecoratorMetadata": true,
11+
"experimentalDecorators": true,
12+
"sourceMap": true,
13+
"listFiles": true,
14+
"moduleResolution": "classic",
15+
"outDir": "dist"
16+
},
17+
"filesGlob": [
18+
"./**/*.ts",
19+
"!./node_modules/**/*.ts"
20+
],
21+
"files": [
22+
"./actions/CounterActions.ts",
23+
"./components/Counter.ts",
24+
"./components/hello.ts",
25+
"./containers/App.ts",
26+
"./index.ts",
27+
"./reducers/counter.ts",
28+
"./reducers/index.ts",
29+
"./store/configureStore.ts",
30+
"./typings/_custom/browser.d.ts",
31+
"./typings/_custom/custom.d.ts",
32+
"./typings/_custom/ng2.d.ts",
33+
"./typings/_custom/webpack.d.ts",
34+
"./typings/angular2/angular2.d.ts",
35+
"./typings/es6-promise/es6-promise.d.ts",
36+
"./typings/redux/redux.d.ts",
37+
"./typings/rx/rx-lite.d.ts",
38+
"./typings/rx/rx.d.ts",
39+
"./typings/tsd.d.ts"
40+
]
2341
}

0 commit comments

Comments
 (0)