Right now there is a difference between the cordova-common that’s in master, 
the cordova-common that’s released on NPM, and the cordova-common that comes 
with a platform. If we’re fine with these differences, then there isn’t really 
an issue. Are we fine with them?

Kindly,
Dmitry

> On Oct 28, 2015, at 1:28 PM, Jesse <purplecabb...@gmail.com> wrote:
> 
> They are safe to copy.
> However, I don't see why anyone would have run npm link in the template
> folder of a platform, or why anyone would need to.
> We should probably just document that if you do this, it will break.
> 
> Can anyone think of a reason why they would 'need' to npm link those
> modules?
> 
> 
> 
> 
> My team is hiring!
> @purplecabbage
> https://na01.safelinks.protection.outlook.com/?url=risingj.com&data=01%7c01%7cdblotsky%40microsoft.com%7c3c9216089163474b4bc908d2dfd65b55%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=HfO9SlDi0pQSdOvhx5gWHrxooCcQWKqrXI0LP08CVDI%3d
> 
> On Wed, Oct 28, 2015 at 1:18 PM, Dmitry Blotsky <dblot...@microsoft.com>
> wrote:
> 
>> Is it possible to do “npm install” in those directories instead? Or to
>> adjust the path so that require() works with the original node_modules
>> directory?
>> 
>> Kindly,
>> Dmitry
>> 
>>> On Oct 27, 2015, at 10:31 PM, Steven Gill <stevengil...@gmail.com>
>> wrote:
>>> 
>>> I don't think we thought of symlinks in this usecase. Probably worth
>> adding
>>> in code that checks for symlinks before the copy. I don't see us removing
>>> this copy as the cordova scripts (build, run, install, etc) require those
>>> modules.
>>> 
>>> On Tue, Oct 27, 2015 at 9:24 PM, Dmitry Blotsky <dblot...@microsoft.com>
>>> wrote:
>>> 
>>>> Ping. Anyone have any information on this? Is it safe to "cp -r” a
>>>> node_modules directory?
>>>> 
>>>> Kindly,
>>>> Dmitry
>>>> 
>>>>> On Oct 26, 2015, at 3:06 PM, Dmitry Blotsky <dblot...@microsoft.com>
>>>> wrote:
>>>>> 
>>>>> Hey folks,
>>>>> 
>>>>> I’ve come across a bug with symlinks and platform installation
>> recently.
>>>> The point of interest is this line:
>>>> 
>> https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fapache%2fcordova-ios%2fblob%2f4039aeb6f87c6803df5814b8cdefb8c2058504a0%2fbin%2flib%2fcreate.js%23L93.&data=01%7c01%7cdblotsky%40microsoft.com%7c2b31253a23cc4d165ed808d2de51c9ef%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=cyXGPBQPr9v46gc6DMDeC9zZkzda8bSCIoinEyAmKrs%3d
>>>>> 
>>>>> Is copying node_modules a safe operation? In my case there was a
>>>> relative symlink inside it when it was copied and as a result some
>>>> dependencies broke. The symlink was created by a previous invocation of
>>>> “npm link”.
>>>>> 
>>>>> Kindly,
>>>>> Dmitry
>>>> 
>>>> 
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to