[Gradle, JS] KT-37207 Add possibility to add npm dependency to directory
This commit is contained in:
+3
@@ -10,6 +10,7 @@ import org.gradle.api.artifacts.Dependency
|
||||
import org.gradle.api.artifacts.ExternalModuleDependency
|
||||
import org.gradle.api.artifacts.ProjectDependency
|
||||
import org.gradle.util.ConfigureUtil
|
||||
import java.io.File
|
||||
|
||||
interface KotlinDependencyHandler {
|
||||
fun api(dependencyNotation: Any): Dependency?
|
||||
@@ -46,6 +47,8 @@ interface KotlinDependencyHandler {
|
||||
|
||||
fun npm(name: String, version: String = "*"): Dependency
|
||||
|
||||
fun npm(name: String, directory: File): Dependency
|
||||
|
||||
@Deprecated(
|
||||
message = "Use npm(name, version) instead. Name like in package.json"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user