Skip to content

Commit f656746

Browse files
authored
Merge pull request #22 from NativeScript/hdeshev/disable-when-bundling
Don't compile when bundling.
2 parents d0e0501 + aa76a56 commit f656746

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/before-prepare.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
var compiler = require('./compiler');
22

33
module.exports = function ($logger, $projectData, $usbLiveSyncService) {
4-
if (!$usbLiveSyncService.isInitialized) {
5-
return compiler.runTypeScriptCompiler($logger, $projectData.projectDir);
4+
var liveSync = $usbLiveSyncService.isInitialized;
5+
var bundle = $projectData.$options.bundle;
6+
if (liveSync || bundle) {
7+
return;
68
}
9+
return compiler.runTypeScriptCompiler($logger, $projectData.projectDir);
710
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-dev-typescript",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"description": "TypeScript support for NativeScript projects. Install using `tns install typescript`.",
55
"scripts": {
66
"test": "exit 0",

0 commit comments

Comments
 (0)