[jira] [Updated] (CB-12787) cordova@7 plugin add --link is broken
[ https://issues.apache.org/jira/browse/CB-12787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Gill updated CB-12787: Labels: cordova-next (was: cordova-8.0.0) > cordova@7 plugin add --link is broken > - > > Key: CB-12787 > URL: https://issues.apache.org/jira/browse/CB-12787 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-fetch, cordova-lib >Affects Versions: 7.0.0 >Reporter: Steve Gill >Assignee: Nikita Matrosov > Labels: cordova-next > > with the change to cordova-fetch for local paths, cordova plugin add > SOMELOCALPATH --link doesn't work anymore. > The plugin first gets `npm installed` into your cordova project (so it now > lives in node_modules), and then it gets copied into your plugins directory. > During the copy to your plugins directory step, that is when the symlink gets > created. So the symlink points to your node_modules/PLUGINDIR and not the > local path to your plugin. > I believe the solution to fixing this would be to `npm link` the plugin > instead of `npm install` when adding it with `--link` flag. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-12787) cordova@7 plugin add --link is broken
[ https://issues.apache.org/jira/browse/CB-12787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Gill updated CB-12787: Labels: cordova-8.0.0 (was: ) > cordova@7 plugin add --link is broken > - > > Key: CB-12787 > URL: https://issues.apache.org/jira/browse/CB-12787 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-fetch, cordova-lib >Affects Versions: 7.0.0 >Reporter: Steve Gill > Labels: cordova-8.0.0 > > with the change to cordova-fetch for local paths, cordova plugin add > SOMELOCALPATH --link doesn't work anymore. > The plugin first gets `npm installed` into your cordova project (so it now > lives in node_modules), and then it gets copied into your plugins directory. > During the copy to your plugins directory step, that is when the symlink gets > created. So the symlink points to your node_modules/PLUGINDIR and not the > local path to your plugin. > I believe the solution to fixing this would be to `npm link` the plugin > instead of `npm install` when adding it with `--link` flag. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org