Skip to content

Commit 984b5fa

Browse files
committed
fix: add exception for kinvey nativescript sdk
1 parent 1632ed1 commit 984b5fa

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

lib/project.service.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const testDirectory = 'test';
1010
const testProject = 'baseNG';
1111
const testProjectOriginalSuffix = '_original';
1212
const exceptions = {
13+
'kinvey-nativescript-sdk': {
14+
command: 'npm i rxjs-compat'
15+
},
1316
'nativescript-plugin-google-places': {
1417
file: 'google-places.config.json',
1518
content: `{
@@ -184,7 +187,11 @@ export namespace ProjectService {
184187
if (exceptions[name]) {
185188
try {
186189
Logger.log(`Applying plugin exception for ${name}`);
187-
writeFileSync(path.join(cwd, exceptions[name].file), exceptions[name].content, 'utf8');
190+
if (exceptions[name].file) {
191+
writeFileSync(path.join(cwd, exceptions[name].file), exceptions[name].content, 'utf8');
192+
} else if (exceptions[name].command) {
193+
await execPromise(cwd, exceptions[name].command);
194+
}
188195
} catch (ex) {
189196
Logger.log('Error when applying plugin exception: ' + ex.message);
190197
}

0 commit comments

Comments
 (0)