From 24e2a86b167c6652e12987cfd2aa4032ce8be3df Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Sat, 27 Apr 2024 10:46:08 +0800 Subject: [PATCH] * (bluefox) Allowed setting license into common.licenseInformation.license --- README.md | 3 +++ tests/testPackageFiles.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d944498..e29a397 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ Set process.env.JS_CONTROLLER_VERSION to version e.g. `5.0.5-alpha.0-20230617-46 ## Changelog +### **WORK IN PROGRESS** +* (bluefox) Allowed setting license into common.licenseInformation.license + ### 1.0.11 (2024-04-14) * (bluefox) Added support for the once mode diff --git a/tests/testPackageFiles.js b/tests/testPackageFiles.js index ec8c8e4..9991cc1 100644 --- a/tests/testPackageFiles.js +++ b/tests/testPackageFiles.js @@ -37,7 +37,7 @@ describe('Test package.json and io-package.json', () => { expect(npmPackage.author, 'ERROR: Author in package.json needs to exist').to.exist; expect(ioPackage.common.authors, 'ERROR: Authors in io-package.json needs to exist').to.exist; - expect(ioPackage.common.license, 'ERROR: License missing in io-package in common.license').to.exist; + expect(ioPackage.common.license || ioPackage.common.licenseInformation?.license, 'ERROR: License missing in io-package in common.license or in common.licenseInformation.license').to.exist; if (ioPackage.common.name.includes('template')) { if (Array.isArray(ioPackage.common.authors)) {