diff --git a/.npmignore b/.npmignore index 188db9c6166..4d2a2777982 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,7 @@ * */ !README.md +!NOTICE !package.json !dist/swagger-ui.js !dist/swagger-ui.js.map diff --git a/LICENSE b/LICENSE index 01abb442b99..d6456956733 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,4 @@ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -186,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 SmartBear Software Inc. + Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000000..ab788a27d5b --- /dev/null +++ b/NOTICE @@ -0,0 +1,2 @@ +swagger-ui +Copyright 2020-2021 SmartBear Software Inc. diff --git a/flavors/swagger-ui-react/release/run.sh b/flavors/swagger-ui-react/release/run.sh index c73250bd907..e64d0dd5ff1 100755 --- a/flavors/swagger-ui-react/release/run.sh +++ b/flavors/swagger-ui-react/release/run.sh @@ -23,6 +23,10 @@ node create-manifest.js > ../dist/package.json # Copy our README into the dist folder for npm cp ../README.md ../dist +# Copy LICENSE & NOTICE into the dist folder for npm +cp ../../../LICENSE ../dist +cp ../../../NOTICE ../dist + # Run the release from the dist folder cd ../dist diff --git a/swagger-ui-dist-package/deploy.sh b/swagger-ui-dist-package/deploy.sh index 7e4885095ee..65b5cdde920 100755 --- a/swagger-ui-dist-package/deploy.sh +++ b/swagger-ui-dist-package/deploy.sh @@ -12,6 +12,10 @@ sed -i "s|\$\$VERSION|$UI_VERSION|g" package.json # Copy UI's dist files to our directory cp ../dist/* . +# Copy LICENSE & NOTICE to our directory +cp ../LICENSE . +cp ../NOTICE . + if [ "$PUBLISH_DIST" = "true" ] || [ "$TRAVIS" = "true" ] ; then npm publish . else