Skip to content

Conversation

@rosen-vladimirov
Copy link
Contributor

In case --bundle is passed CLI tries to clean the tns_modules directory produced from previous prepare operations. However, this is not required in latest versions as webpack cleans the directory on its own.
The current clean was required for Webpack before 0.14.0, particularly the one used with 3.x versions of NativeScript.

PR Checklist

What is the current behavior?

CLI tries to clean tns_modules dir when tns prepare <platform> --bundle is executed.

What is the new behavior?

Logic for cleaning tns_modules dir is executed in nativescript-dev-webpack plugin.

In case `--bundle` is passed CLI tries to clean the `tns_modules` directory produced from previous prepare operations. However, this is not required in latest versions as webpack cleans the directory on its own.
The current clean was required for Webpack before 0.14.0, particularly the one used with 3.x versions of NativeScript.
Delete unit test that is no longer relevant, as it tests functionality that is now handled by `nativescript-dev-webpack` plugin.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/do-not-clean-tns_modules branch from e2b21ff to 20874b4 Compare February 13, 2019 15:22
@rosen-vladimirov
Copy link
Contributor Author

run ci

1 similar comment
@rosen-vladimirov
Copy link
Contributor Author

run ci

@rosen-vladimirov rosen-vladimirov merged commit 0b07777 into release Feb 14, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/do-not-clean-tns_modules branch February 14, 2019 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants