Skip to content

Commit fde622a

Browse files
authored
chore(lib): package license (#309)
1 parent e239d75 commit fde622a

2 files changed

Lines changed: 59 additions & 16 deletions

File tree

lib/packagesLicenses.txt

Lines changed: 53 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -607,21 +607,61 @@ SOFTWARE.
607607
//package mini-svg-data-uri
608608

609609

610-
The ISC License
610+
# Blue Oak Model License
611611

612-
Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
612+
Version 1.0.0
613613

614-
Permission to use, copy, modify, and/or distribute this software for any
615-
purpose with or without fee is hereby granted, provided that the above
616-
copyright notice and this permission notice appear in all copies.
617-
618-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
619-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
620-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
621-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
622-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
623-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
624-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
614+
## Purpose
615+
616+
This license gives everyone as much permission to work with
617+
this software as possible, while protecting contributors
618+
from liability.
619+
620+
## Acceptance
621+
622+
In order to receive this license, you must agree to its
623+
rules. The rules of this license are both obligations
624+
under that agreement and conditions to your license.
625+
You must not do anything with this software that triggers
626+
a rule that you cannot or will not follow.
627+
628+
## Copyright
629+
630+
Each contributor licenses you to do everything with this
631+
software that would otherwise infringe that contributor's
632+
copyright in it.
633+
634+
## Notices
635+
636+
You must ensure that everyone who gets a copy of
637+
any part of this software from you, with or without
638+
changes, also gets the text of this license or a link to
639+
<https://blueoakcouncil.org/license/1.0.0>.
640+
641+
## Excuse
642+
643+
If anyone notifies you in writing that you have not
644+
complied with [Notices](#notices), you can keep your
645+
license by taking all practical steps to comply within 30
646+
days after the notice. If you do not do so, your license
647+
ends immediately.
648+
649+
## Patent
650+
651+
Each contributor licenses you to do everything with this
652+
software that would otherwise infringe any patent claims
653+
they can license or become able to license.
654+
655+
## Reliability
656+
657+
No contributor can revoke this license.
658+
659+
## No Liability
660+
661+
***As far as the law allows, this software comes as is,
662+
without any warranty or condition, and no contributor
663+
will be liable to anyone for any damages related to this
664+
software or this license, under any kind of legal claim.***
625665

626666
//package rimraf
627667

scripts/generatePackagesLib.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ const loadPackages = async (packageDependencies = dependencies) => {
2525
let license;
2626
try {
2727
const licenseFile = path.resolve(__dirname, '..', 'node_modules', keys[index], 'LICENSE');
28-
const altLicense = path.resolve(__dirname, '..', 'node_modules', keys[index], 'LICENSE.txt');
28+
const altLicenseTxt = path.resolve(__dirname, '..', 'node_modules', keys[index], 'LICENSE.txt');
29+
const altLicenseMd = path.resolve(__dirname, '..', 'node_modules', keys[index], 'LICENSE.md');
2930

3031
if (existsSync(licenseFile)) {
3132
license = readFileSync(licenseFile, 'utf-8');
32-
} else if (existsSync(altLicense)) {
33-
license = readFileSync(altLicense, 'utf-8');
33+
} else if (existsSync(altLicenseTxt)) {
34+
license = readFileSync(altLicenseTxt, 'utf-8');
35+
} else if (existsSync(altLicenseMd)) {
36+
license = readFileSync(altLicenseMd, 'utf-8');
3437
}
3538

3639
if (!license) {

0 commit comments

Comments
 (0)