From 3514072f7ffab2b4e222c1be190c3bcb74ee83e5 Mon Sep 17 00:00:00 2001 From: veeck Date: Tue, 5 Jan 2021 11:25:32 +0100 Subject: [PATCH] Update License for 2021 --- LICENSE | 1 - LICENSE.md | 16 ++++++++++++++++ package.json | 2 +- scripts/generate-license.js | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) delete mode 100644 LICENSE create mode 100644 LICENSE.md diff --git a/LICENSE b/LICENSE deleted file mode 100644 index b088025f..00000000 --- a/LICENSE +++ /dev/null @@ -1 +0,0 @@ -/*! Modernizr 3.11.0 | MIT */ diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 00000000..62d73449 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,16 @@ +# The MIT License (MIT) + +Modernizr 3.11.0 | Copyright © 2021 The Modernizr Team + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the “Software”), to deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +Software. + +**The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the +warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or +copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or +otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.** diff --git a/package.json b/package.json index e7e77118..3fc42147 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "serve-gh-pages": "gulp serve:gh-pages", "update-gh-pages": "scripts/generate-gh-pages.sh", "update-changelog": "auto-changelog --commit-limit false --package", - "update-license": "node scripts/generate-license.js && git add LICENSE" + "update-license": "node scripts/generate-license.js && git add LICENSE.md" }, "engines": { "node": ">=10" diff --git a/scripts/generate-license.js b/scripts/generate-license.js index 49f6c1f5..e63b2080 100644 --- a/scripts/generate-license.js +++ b/scripts/generate-license.js @@ -1,7 +1,7 @@ var fs = require('fs'); var path = require('path'); var pkg = require('../package.json'); -var licensePath = path.resolve(__dirname, '../LICENSE'); +var licensePath = path.resolve(__dirname, '../LICENSE.md'); var license = fs.readFileSync(licensePath, 'utf8'); var data = license.replace(/Modernizr\s(.+?)\s\|/, 'Modernizr ' + pkg.version + ' |');