Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Only copy platform node_modules when created by binary #68

Closed
wants to merge 1 commit into from

Conversation

erisu
Copy link
Member

@erisu erisu commented Nov 7, 2018

Platforms affected

osx

What does this PR do?

When platform is installed though CLI, cordova platform add osx, the copy node_modules step is no longer valid as dependencies are now at the project level.

The step is required only when the create binary from the platform repo is called.

apache/cordova#32

What testing has been done on this change?

@erisu erisu requested review from dpogue and raphinesse November 7, 2018 23:48
@@ -83,7 +83,7 @@ function copyScripts (projectPath) {
// Copy in the new ones.
var binDir = path.join(ROOT, 'bin');
shell.cp('-r', srcScriptsDir, projectPath);
shell.cp('-r', path.join(ROOT, 'node_modules'), destScriptsDir);
if (options.copyPlatformNodeModules) shell.cp('-r', path.join(ROOT, 'node_modules'), destScriptsDir);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (options.copyPlatformNodeModules) shell.cp('-r', path.join(ROOT, 'node_modules'), destScriptsDir);
if (options.copyPlatformNodeModules)
shell.cp('-r', path.join(ROOT, 'node_modules'), destScriptsDir);

(minor suggestion)

Copy link

@brodycj brodycj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on my part (with minor suggestion), please merge

@erisu erisu closed this Dec 3, 2018
@erisu
Copy link
Member Author

erisu commented Dec 3, 2018

More Investigation Required

@erisu erisu deleted the remove-node_module-copy branch April 4, 2019 06:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants