We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d41122 commit b979f8dCopy full SHA for b979f8d
lib/commands/install.ts
@@ -53,8 +53,9 @@ export class InstallCommand implements ICommand {
53
process.env['TNS_PROJECT_DIR'] = projectDir;
54
process.env['TNS_HOOKS_DIR'] = path.join(projectDir, 'hooks');
55
56
- if (!this.$fs.exists(moduleName).wait()) {
57
- moduleName = 'nativescript-dev-' + moduleName;
+ let devPrefix = 'nativescript-dev-';
+ if (!this.$fs.exists(moduleName).wait() && moduleName.indexOf(devPrefix) !== 0) {
58
+ moduleName = devPrefix + moduleName;
59
}
60
61
this.$npm.install(moduleName, projectDir, { 'save-dev': true }).wait();
0 commit comments