Skip to content

Commit bd75178

Browse files
authored
docs(LICENSE): apply Apache 2.0 License correctly (#7574)
Closes #6635
1 parent 124b856 commit bd75178

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*
22
*/
33
!README.md
4+
!NOTICE
45
!package.json
56
!dist/swagger-ui.js
67
!dist/swagger-ui.js.map

LICENSE

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
186187
same "printed page" as the copyright notice for easier
187188
identification within third-party archives.
188189

189-
Copyright 2020 SmartBear Software Inc.
190+
Copyright [yyyy] [name of copyright owner]
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.

NOTICE

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
swagger-ui
2+
Copyright 2020-2021 SmartBear Software Inc.

flavors/swagger-ui-react/release/run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ node create-manifest.js > ../dist/package.json
2323
# Copy our README into the dist folder for npm
2424
cp ../README.md ../dist
2525

26+
# Copy LICENSE & NOTICE into the dist folder for npm
27+
cp ../../../LICENSE ../dist
28+
cp ../../../NOTICE ../dist
29+
2630
# Run the release from the dist folder
2731
cd ../dist
2832

swagger-ui-dist-package/deploy.sh

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ sed -i "s|\$\$VERSION|$UI_VERSION|g" package.json
1212
# Copy UI's dist files to our directory
1313
cp ../dist/* .
1414

15+
# Copy LICENSE & NOTICE to our directory
16+
cp ../LICENSE .
17+
cp ../NOTICE .
18+
1519
if [ "$PUBLISH_DIST" = "true" ] || [ "$TRAVIS" = "true" ] ; then
1620
npm publish .
1721
else

0 commit comments

Comments
 (0)