Kotlin / kotlin-frontend-plugin

Gradle Kotlin (http://kotlinlang.org) plugin for frontend development
Apache License 2.0
561 stars 69 forks source link

New MPP: js preset test dependencies appears on package.json production scope deps #128

Open wem opened 5 years ago

wem commented 5 years ago

In the new-mpp example when i execute ./gradlew build, the resulting package.json looks like.

{
    "name": "new-mpp",
    "version": "0.0.0",
    "description": "Here we have custom description",
    "main": "new-mpp",
    "dependencies": {
        "kotlin": "1.3.10",
        "kotlin-test": "1.3.10"
    },
    "devDependencies": {
        "karma": "*",
        "webpack": "*",
        "webpack-cli": "*",
        "webpack-dev-server": "*",
        "source-map-loader": "*"
    }
}

Where "kotlin-test" should appear in "devDependencies", not in the production dependencies.

I can reproduce this in my own projects.