When we add local plugin as
```
cordova plugin add /path/to/local_plugin/
```
in windows environment, a `symlink` is created.

I feel that a `junction` should be created. Becuase `npm` command creates a 
`junction` in windows. 

My question is that symlink in windows is ok?

I checked this by using `cordova-cli` 8.1.x in github with 
`[email protected]` in npm.

```
> ..\cordova-cli\bin\cordova.cmd -v
8.0.1-dev ([email protected])
>  ..\cordova-cli\bin\cordova.cmd plugin add ..\..\plugins\cordova-plugin-camera
```

The result is following. (Here I add cordova-plugin-camera downloaded to my 
local PC)

```
> dir node_modules
2018/09/20  18:36    <DIR>          .
2018/09/20  18:36    <DIR>          ..
2018/09/20  18:36    <JUNCTION>     cordova-plugin-camera 
[C:\Users\knaito\Documents\work\cordova\plugins\cordova-plugin-camera]
```
The node_module is `junction` pointing to the original directory. (This is ok)

```
> dir plugins
2018/09/20  18:36    <DIR>          .
2018/09/20  18:36    <DIR>          ..
2018/09/20  18:36    <SYMLINK>      cordova-plugin-camera 
[C:\Users\knaito\Documents\work\cordova\plugins\cordova-plugin-camera\]
2018/09/20  18:36               241 fetch.json
```
The plugin is `symlink` pointing to the original directory. (Is this ok?)


[ Full content available at: https://github.com/apache/cordova-lib/issues/701 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to