Skip to content

Is it necessary to copy all modules from node_modules directory, including devDependencies? #1143

@unlight

Description

@unlight

I have this package.json

{
    "nativescript": {
        "id": "org.nativescript.test1",
        "tns-android": {
            "version": "1.4.0"
        }
    },
    "dependencies": {
        "tns-core-modules": "1.4.0"
    },
  "devDependencies": {
    "babel": "^5.8.29",
    "gulp-debug": "^2.1.2"
  }
}

I have some devDependencies modules, and of course, after install, they are placed to node_modules. After build, all of them are copied to platforms\android\src\main\assets\app\tns_modules\. (app-debug.apk contains it too)
I'm using devDependencies modules for building and testing only.

Is it really necessary to copy them all?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions