Do not automatically publish eslint packages (#10722)
* Do not automatically publish eslint packages * Fix * Fix * Fix * Fix * Fix
This commit is contained in:
parent
a6d134804a
commit
5ca8acdb38
12
Makefile
12
Makefile
@ -225,6 +225,11 @@ endif
|
|||||||
yarn lerna publish from-git --registry http://localhost:4873 --yes --tag-version-prefix="version-e2e-test-"
|
yarn lerna publish from-git --registry http://localhost:4873 --yes --tag-version-prefix="version-e2e-test-"
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
|
|
||||||
|
publish-eslint:
|
||||||
|
$(call set-json-field, ./eslint/$(PKG)/package.json, private, false)
|
||||||
|
cd eslint/$(PKG); yarn publish
|
||||||
|
$(call set-json-field, ./eslint/$(PKG)/package.json, private, true)
|
||||||
|
|
||||||
bootstrap-only: lerna-bootstrap
|
bootstrap-only: lerna-bootstrap
|
||||||
|
|
||||||
yarn-install: clean-all
|
yarn-install: clean-all
|
||||||
@ -276,3 +281,10 @@ define clean-source-all
|
|||||||
rm -rf $(1)/*/package-lock.json
|
rm -rf $(1)/*/package-lock.json
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define set-json-field
|
||||||
|
node -e "\
|
||||||
|
require('fs').writeFileSync('$1'.trim(), \
|
||||||
|
JSON.stringify({ ...require('$1'.trim()), $2: $3 }, null, 2) + '\\n' \
|
||||||
|
)"
|
||||||
|
endef
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||||
"homepage": "https://babeljs.io/",
|
"homepage": "https://babeljs.io/",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/babel/eslint-config-babel"
|
"url": "https://github.com/babel/eslint-config-babel"
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
"description": "Custom parser for ESLint",
|
"description": "Custom parser for ESLint",
|
||||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/babel/babel-eslint.git"
|
"url": "https://github.com/babel/babel-eslint.git"
|
||||||
@ -14,7 +15,6 @@
|
|||||||
"homepage": "https://github.com/babel/babel-eslint",
|
"homepage": "https://github.com/babel/babel-eslint",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "cd test && mocha specs && cd -",
|
"test": "cd test && mocha specs && cd -",
|
||||||
"preversion": "npm test",
|
|
||||||
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'"
|
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
"name": "@babel/eslint-plugin-development",
|
"name": "@babel/eslint-plugin-development",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"description": "A set of eslint rules to enforce best practices in the development of Babel plugins.",
|
"description": "A set of eslint rules to enforce best practices in the development of Babel plugins.",
|
||||||
|
"private": true,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"eslint",
|
"eslint",
|
||||||
"eslintplugin",
|
"eslintplugin",
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
],
|
],
|
||||||
"author": "Jason Quense @monasticpanic",
|
"author": "Jason Quense @monasticpanic",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"private": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4"
|
"node": ">=4"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -22,7 +22,9 @@
|
|||||||
"test/**",
|
"test/**",
|
||||||
"codemods/**",
|
"codemods/**",
|
||||||
"# We ignore every JSON file, except for built-in-modules, built-ins and plugins defined in babel-preset-env/data.",
|
"# We ignore every JSON file, except for built-in-modules, built-ins and plugins defined in babel-preset-env/data.",
|
||||||
"@(!(built-in-modules|built-ins|plugins|package)).json"
|
"@(!(built-in-modules|built-ins|plugins|package)).json",
|
||||||
|
"# Until the ESLint packages version are aligned with Babel's, we ignore them",
|
||||||
|
"eslint/**"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -11,6 +11,13 @@ source utils/local-registry.sh
|
|||||||
source utils/git.sh
|
source utils/git.sh
|
||||||
source utils/cleanup.sh
|
source utils/cleanup.sh
|
||||||
|
|
||||||
|
function publishESLintPkg {
|
||||||
|
cd eslint/$1
|
||||||
|
yarn version --patch --no-git-tag-version
|
||||||
|
cd ../..
|
||||||
|
make publish-eslint PKG=$1
|
||||||
|
}
|
||||||
|
|
||||||
# Echo every command being executed
|
# Echo every command being executed
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
@ -30,4 +37,9 @@ loginLocalRegistry
|
|||||||
|
|
||||||
I_AM_USING_VERDACCIO=I_AM_SURE make publish-test
|
I_AM_USING_VERDACCIO=I_AM_SURE make publish-test
|
||||||
|
|
||||||
|
publishESLintPkg babel-eslint-config-internal
|
||||||
|
publishESLintPkg babel-eslint-parser
|
||||||
|
publishESLintPkg babel-eslint-plugin
|
||||||
|
publishESLintPkg babel-eslint-plugin-development
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user