Skip to content

Commit 021249d

Browse files
authored
fix(tsconfig): add paths for typescript to resolve tns modules correctly (#150)
1 parent d365b2f commit 021249d

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

tsconfig.aot.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,35 @@
99
"removeComments": false,
1010
"noImplicitAny": false,
1111
"suppressImplicitAnyIndexErrors": true,
12-
"types": []
13-
},
12+
"types": [],
13+
"baseUrl": ".",
14+
"paths": {
15+
"ui/*": ["node_modules/tns-core-modules/ui/*"],
16+
"platform": ["node_modules/tns-core-modules/platform"],
17+
"image-source": ["node_modules/tns-core-modules/image-source"],
18+
"xml": ["node_modules/tns-core-modules/xml"],
19+
"xhr": ["node_modules/tns-core-modules/xhr"],
20+
"text": ["node_modules/tns-core-modules/text"],
21+
"data": ["node_modules/tns-core-modules/data"],
22+
"fetch": ["node_modules/tns-core-modules/fetch"],
23+
"trace": ["node_modules/tns-core-modules/trace"],
24+
"fps-meter": ["node_modules/tns-core-modules/fps-meter"],
25+
"color": ["node_modules/tns-core-modules/color"],
26+
"application-settings": ["node_modules/tns-core-modules/application-settings"],
27+
"http": ["node_modules/tns-core-modules/http"],
28+
"camera": ["node_modules/tns-core-modules/camera"],
29+
"console": ["node_modules/tns-core-modules/console"],
30+
"timer": ["node_modules/tns-core-modules/timer"],
31+
"utils": ["node_modules/tns-core-modules/utils"],
32+
"location": ["node_modules/tns-core-modules/location"],
33+
"file-system": ["node_modules/tns-core-modules/file-system"],
34+
"application": ["node_modules/tns-core-modules/application"],
35+
"image-asset": ["node_modules/tns-core-modules/image-asset"],
36+
"connectivity": ["node_modules/tns-core-modules/connectivity"],
37+
"globals": ["node_modules/tns-core-modules/globals"]
38+
39+
}
40+
},
1441
"exclude": [
1542
"node_modules",
1643
"platforms"

0 commit comments

Comments
 (0)