Skip to content

Commit 8749fd1

Browse files
author
VladimirAmiorkov
committed
fix: Add 'tns build' to ios scripts #2
1 parent 543ae93 commit 8749fd1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-dev-debugging",
3-
"version": "0.2.0",
3+
"version": "1.0.1",
44
"description": "This dev plugin allows an NativeScript plugin authors to use a predefined workflow with which you can develop and debug both the native iOS/Android and the TypeScript/JavaScript wrapper source code of their NS plugin. The main API that this plugin exposes is through `npm scripts` which will be saved to your package.json of your plugin's source code.",
55
"main": "index.js",
66
"dependencies": {

src/scripts/predefined-scripts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function getPluginPreDefinedScripts(srcPath, demoFolder, demoAngularFolder, demo
285285
},
286286
{
287287
key: "nd.demo.tns.run.ios",
288-
value: "cd " + demoFolder + " && tns run ios --syncAllFiles" + provisioningParam,
288+
value: "cd " + demoFolder + " && tns build ios && tns run ios --syncAllFiles" + provisioningParam,
289289
description: "Runs the 'demo' app on iOS with '--syncAllFiles' argument",
290290
category: "secondary"
291291
},
@@ -297,7 +297,7 @@ function getPluginPreDefinedScripts(srcPath, demoFolder, demoAngularFolder, demo
297297
},
298298
{
299299
key: "nd.demo.angular.tns.run.ios",
300-
value: "cd " + demoAngularFolder + " && tns run ios --syncAllFiles" + provisioningParam,
300+
value: "cd " + demoAngularFolder + " && tns build ios && tns run ios --syncAllFiles" + provisioningParam,
301301
description: "Runs the 'demo-angular' app on iOS with '--syncAllFiles' argument",
302302
category: "secondary"
303303
},
@@ -309,7 +309,7 @@ function getPluginPreDefinedScripts(srcPath, demoFolder, demoAngularFolder, demo
309309
},
310310
{
311311
key: "nd.demo.vue.tns.run.ios",
312-
value: "cd " + demoVueFolder + " && tns run ios --syncAllFiles" + provisioningParam,
312+
value: "cd " + demoVueFolder + " && tns build ios && tns run ios --syncAllFiles" + provisioningParam,
313313
description: "Runs the 'demo-vue' app on iOS with '--syncAllFiles' argument",
314314
category: "secondary"
315315
},

0 commit comments

Comments
 (0)