Skip to content

Commit 7156a05

Browse files
author
Gary Gambill
committed
manually integrate PR24 with 0.2.0 release
1 parent 4eab345 commit 7156a05

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: index.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,14 @@ module.exports = (api, projectOptions) => {
118118
env = flags.reduce(addOption, {});
119119
// console.log('env - ', env);
120120

121-
const platform = env && ((env.android && 'android') || (env.ios && 'ios') || (env.web && 'web'));
121+
let platform = env && ((env.android && 'android') || (env.ios && 'ios') || (env.web && 'web'));
122122
// console.log('platform - ', platform);
123123

124124
if (!platform) {
125-
throw new Error('You need to provide a target platform!');
125+
// TNS (iOS/Android) always sets platform, so assume platform = 'web' & Vue-CLI glitch of loosing .env options in the UI
126+
platform = 'web';
127+
// --> TO BE DELETED SOON
128+
// throw new Error('You need to provide a target platform!');
126129
}
127130

128131
const projectRoot = api.service.context;

0 commit comments

Comments
 (0)