Skip to content

Commit 7d9622d

Browse files
authored
fix: resolve main.tns.ts with webpack's VFS instead with TS (#174)
This PR unifies the TypeScript configs for normal and code-sharing {N} apps. This should fix #173. fixes #173
1 parent 6c835b1 commit 7d9622d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/add-ns/_ns-files/__sourceDir__/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"android": {
33
"v8Flags": "--expose_gc"
44
},
5-
"main": "<%= main %><%= nsext %>.js",
5+
"main": "<%= main %>.js",
66
"name": "migration-ng",
77
"version": "4.1.0"
88
}

src/add-ns/_ns-files/tsconfig__nsext__.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
]
1515
}
1616
},
17-
"files": [
18-
"src/main<%= nsext %>.ts"
17+
"exclude": [
18+
"**/*.tns.ts",
19+
"**/*.android.ts",
20+
"**/*.ios.ts",
21+
"**/*.spec.ts"
1922
]
2023
}

src/ng-new/shared/_files/__sourcedir__/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"android": {
33
"v8Flags": "--expose_gc"
44
},
5-
"main": "main.tns.js",
5+
"main": "main.js",
66
"name": "migration-ng",
77
"version": "4.1.0"
88
}

src/ng-new/shared/_files/tsconfig.tns.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
"compilerOptions": {
44
"module": "es2015",
55
"moduleResolution": "node"
6-
},
7-
"files": [
8-
"src/main.tns.ts"
9-
]
6+
}
107
}

0 commit comments

Comments
 (0)