Add LICENSE file to published npm packages [skip ci] (#8409)
This commit is contained in:
parent
023044c1d4
commit
a7cc3325cd
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,6 +1,9 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
/node_modules
|
/node_modules
|
||||||
/packages/*/node_modules
|
/packages/*/node_modules
|
||||||
|
/packages/*/LICENSE
|
||||||
|
!/packages/babel-parser/LICENSE
|
||||||
|
!/packages/babel-plugin-transform-object-assign/LICENSE
|
||||||
*.log
|
*.log
|
||||||
*.cache
|
*.cache
|
||||||
/build
|
/build
|
||||||
|
|||||||
4
Makefile
4
Makefile
@ -104,6 +104,9 @@ test-test262-ci: bootstrap test-test262
|
|||||||
test-test262-update-whitelist:
|
test-test262-update-whitelist:
|
||||||
node scripts/tests/test262/run_babel_parser_test262.js --update-whitelist
|
node scripts/tests/test262/run_babel_parser_test262.js --update-whitelist
|
||||||
|
|
||||||
|
clone-license:
|
||||||
|
./scripts/clone-license.sh
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
make clean-lib
|
make clean-lib
|
||||||
@ -112,6 +115,7 @@ publish:
|
|||||||
rm -rf packages/babel-runtime-corejs2/core-js
|
rm -rf packages/babel-runtime-corejs2/core-js
|
||||||
BABEL_ENV=production make build-dist
|
BABEL_ENV=production make build-dist
|
||||||
make test
|
make test
|
||||||
|
make clone-license
|
||||||
# not using lerna independent mode atm, so only update packages that have changed since we use ^
|
# not using lerna independent mode atm, so only update packages that have changed since we use ^
|
||||||
# --only-explicit-updates
|
# --only-explicit-updates
|
||||||
./node_modules/.bin/lerna publish --force-publish=* --exact --skip-temp-tag
|
./node_modules/.bin/lerna publish --force-publish=* --exact --skip-temp-tag
|
||||||
|
|||||||
@ -1,22 +0,0 @@
|
|||||||
Copyright (c) 2015 Sebastian McKenzie <sebmck@gmail.com>
|
|
||||||
|
|
||||||
MIT License
|
|
||||||
|
|
||||||
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.
|
|
||||||
3
scripts/clone-license.sh
Executable file
3
scripts/clone-license.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
echo "Cloning LICENSE to babel packages"
|
||||||
|
cat LICENSE
|
||||||
|
ls -db ./packages/*/ | egrep -v '.*packages\/(babel-parser|babel-plugin-transform-object-assign)\/?$' | xargs -n 1 cp LICENSE
|
||||||
Loading…
x
Reference in New Issue
Block a user