Skip to content

Commit 6c49c25

Browse files
committed
feat: support CopyrightNotice.txt
1 parent ad1d477 commit 6c49c25

2 files changed

Lines changed: 61 additions & 1 deletion

File tree

infra/compiler/src/license.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class LicenseChecker {
8080
throw new Error(`License text is not found: ${entryPoint}`)
8181
}
8282

83-
const noticeText = readFile(dir, ['notice'])
83+
const noticeText = readFile(dir, ['notice', 'CopyrightNotice'])
8484
pkg = pkgJson as LicenseData
8585
pkg.licenseText = licenseText
8686
pkg.noticeText = noticeText

packages/vscode-webdriverio/LICENSE.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,37 @@ Repository: https://github.com/rbuckton/reflect-metadata.git
710710
> 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
711711
>
712712
> END OF TERMS AND CONDITIONS
713+
### Notice Text
714+
> /*! *****************************************************************************
715+
>
716+
> Copyright (c) Microsoft Corporation. All rights reserved.
717+
>
718+
> Licensed under the Apache License, Version 2.0 (the "License"); you may not use
719+
>
720+
> this file except in compliance with the License. You may obtain a copy of the
721+
>
722+
> License at http://www.apache.org/licenses/LICENSE-2.0
723+
>
724+
>
725+
>
726+
> THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
727+
>
728+
> KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
729+
>
730+
> WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
731+
>
732+
> MERCHANTABLITY OR NON-INFRINGEMENT.
733+
>
734+
>
735+
>
736+
> See the Apache Version 2.0 License for specific language governing permissions
737+
>
738+
> and limitations under the License.
739+
>
740+
> ***************************************************************************** */
741+
>
742+
>
743+
>
713744
714745
---------------------------------------
715746

@@ -805,6 +836,35 @@ Repository: https://github.com/Microsoft/tslib.git
805836
> OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
806837
>
807838
> PERFORMANCE OF THIS SOFTWARE.
839+
### Notice Text
840+
> /******************************************************************************
841+
>
842+
> Copyright (c) Microsoft Corporation.
843+
>
844+
>
845+
> Permission to use, copy, modify, and/or distribute this software for any
846+
>
847+
> purpose with or without fee is hereby granted.
848+
>
849+
>
850+
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
851+
>
852+
> REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
853+
>
854+
> AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
855+
>
856+
> INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
857+
>
858+
> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
859+
>
860+
> OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
861+
>
862+
> PERFORMANCE OF THIS SOFTWARE.
863+
>
864+
> ***************************************************************************** */
865+
>
866+
>
867+
>
808868
809869
---------------------------------------
810870

0 commit comments

Comments
 (0)