From dc509ab4e5dab50456c039372db649bfd4fe4bd2 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 18 Jun 2021 10:05:00 +0200 Subject: [PATCH] Fix license not published (#19) * Fix typo * Fix typo in template --- sandbox/template.package.json | 2 +- src/main/kotlin/dsl/PackageJson.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sandbox/template.package.json b/sandbox/template.package.json index db35de53..9ffeee71 100644 --- a/sandbox/template.package.json +++ b/sandbox/template.package.json @@ -1,5 +1,5 @@ { - "licence": "MIT", + "license": "MIT", "author": { "name": "Mr. Should be Overridden" } diff --git a/src/main/kotlin/dsl/PackageJson.kt b/src/main/kotlin/dsl/PackageJson.kt index 9d005485..6bb0a655 100644 --- a/src/main/kotlin/dsl/PackageJson.kt +++ b/src/main/kotlin/dsl/PackageJson.kt @@ -123,9 +123,9 @@ class PackageJson() : JsonObject() { fun bugs(config: Bugs.() -> Unit = {}) = Bugs(bugs, config).also { bugs = it } /** - * [licence](https://docs.npmjs.com/files/package.json#license) + * [license](https://docs.npmjs.com/files/package.json#license) */ - var licence: String? by this + var license: String? by this /** * [author](https://docs.npmjs.com/files/package.json#people-fields-author-contributors)