Skip to content

Commit

Permalink
Update License for 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
veeck committed Jan 5, 2021
1 parent 690e36a commit 3514072
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
1 change: 0 additions & 1 deletion LICENSE

This file was deleted.

16 changes: 16 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -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.**
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-license.js
Original file line number Diff line number Diff line change
@@ -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 + ' |');
Expand Down

0 comments on commit 3514072

Please sign in to comment.