Regenerate monorepo READMEs (#14006)

* Fix script to generate readmes

* Regenerate READMEs
This commit is contained in:
Nicolò Ribaudo 2021-11-29 16:03:23 +01:00 committed by GitHub
parent 4a337538f9
commit 1bbe1fc3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
40 changed files with 148 additions and 70 deletions

View File

@ -0,0 +1,19 @@
# @babel/compat-data
>
See our website [@babel/compat-data](https://babeljs.io/docs/en/babel-compat-data) for more information.
## Install
Using npm:
```sh
npm install --save @babel/compat-data
```
or using yarn:
```sh
yarn add @babel/compat-data
```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-annotate-as-pure](https://babeljs.io/docs/en/babe
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-annotate-as-pure npm install --save @babel/helper-annotate-as-pure
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-annotate-as-pure --dev yarn add @babel/helper-annotate-as-pure
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-builder-binary-assignment-operator-visitor](https
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-builder-binary-assignment-operator-visitor npm install --save @babel/helper-builder-binary-assignment-operator-visitor
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-builder-binary-assignment-operator-visitor --dev yarn add @babel/helper-builder-binary-assignment-operator-visitor
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-builder-react-jsx](https://babeljs.io/docs/en/bab
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-builder-react-jsx npm install --save @babel/helper-builder-react-jsx
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-builder-react-jsx --dev yarn add @babel/helper-builder-react-jsx
``` ```

View File

@ -9,7 +9,7 @@ See our website [@babel/helper-compilation-targets](https://babeljs.io/docs/en/b
Using npm: Using npm:
```sh ```sh
npm install @babel/helper-compilation-targets npm install --save @babel/helper-compilation-targets
``` ```
or using yarn: or using yarn:

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-create-class-features-plugin](https://babeljs.io/
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-create-class-features-plugin npm install --save @babel/helper-create-class-features-plugin
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-create-class-features-plugin --dev yarn add @babel/helper-create-class-features-plugin
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-create-regexp-features-plugin](https://babeljs.io
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-create-regexp-features-plugin npm install --save @babel/helper-create-regexp-features-plugin
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-create-regexp-features-plugin --dev yarn add @babel/helper-create-regexp-features-plugin
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-define-map](https://babeljs.io/docs/en/babel-help
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-define-map npm install --save @babel/helper-define-map
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-define-map --dev yarn add @babel/helper-define-map
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-explode-assignable-expression](https://babeljs.io
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-explode-assignable-expression npm install --save @babel/helper-explode-assignable-expression
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-explode-assignable-expression --dev yarn add @babel/helper-explode-assignable-expression
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-fixtures](https://babeljs.io/docs/en/babel-helper
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-fixtures npm install --save @babel/helper-fixtures
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-fixtures --dev yarn add @babel/helper-fixtures
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-function-name](https://babeljs.io/docs/en/babel-h
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-function-name npm install --save @babel/helper-function-name
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-function-name --dev yarn add @babel/helper-function-name
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-get-function-arity](https://babeljs.io/docs/en/ba
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-get-function-arity npm install --save @babel/helper-get-function-arity
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-get-function-arity --dev yarn add @babel/helper-get-function-arity
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-hoist-variables](https://babeljs.io/docs/en/babel
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-hoist-variables npm install --save @babel/helper-hoist-variables
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-hoist-variables --dev yarn add @babel/helper-hoist-variables
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-member-expression-to-functions](https://babeljs.i
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-member-expression-to-functions npm install --save @babel/helper-member-expression-to-functions
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-member-expression-to-functions --dev yarn add @babel/helper-member-expression-to-functions
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-module-imports](https://babeljs.io/docs/en/babel-
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-module-imports npm install --save @babel/helper-module-imports
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-module-imports --dev yarn add @babel/helper-module-imports
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-module-transforms](https://babeljs.io/docs/en/bab
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-module-transforms npm install --save @babel/helper-module-transforms
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-module-transforms --dev yarn add @babel/helper-module-transforms
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-optimise-call-expression](https://babeljs.io/docs
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-optimise-call-expression npm install --save @babel/helper-optimise-call-expression
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-optimise-call-expression --dev yarn add @babel/helper-optimise-call-expression
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-plugin-test-runner](https://babeljs.io/docs/en/ba
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-plugin-test-runner npm install --save @babel/helper-plugin-test-runner
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-plugin-test-runner --dev yarn add @babel/helper-plugin-test-runner
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-plugin-utils](https://babeljs.io/docs/en/babel-he
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-plugin-utils npm install --save @babel/helper-plugin-utils
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-plugin-utils --dev yarn add @babel/helper-plugin-utils
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-remap-async-to-generator](https://babeljs.io/docs
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-remap-async-to-generator npm install --save @babel/helper-remap-async-to-generator
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-remap-async-to-generator --dev yarn add @babel/helper-remap-async-to-generator
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-replace-supers](https://babeljs.io/docs/en/babel-
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-replace-supers npm install --save @babel/helper-replace-supers
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-replace-supers --dev yarn add @babel/helper-replace-supers
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-simple-access](https://babeljs.io/docs/en/babel-h
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-simple-access npm install --save @babel/helper-simple-access
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-simple-access --dev yarn add @babel/helper-simple-access
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-skip-transparent-expression-wrappers](https://bab
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-skip-transparent-expression-wrappers npm install --save @babel/helper-skip-transparent-expression-wrappers
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-skip-transparent-expression-wrappers --dev yarn add @babel/helper-skip-transparent-expression-wrappers
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-split-export-declaration](https://babeljs.io/docs
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-split-export-declaration npm install --save @babel/helper-split-export-declaration
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-split-export-declaration --dev yarn add @babel/helper-split-export-declaration
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-transform-fixture-test-runner](https://babeljs.io
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-transform-fixture-test-runner npm install --save @babel/helper-transform-fixture-test-runner
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-transform-fixture-test-runner --dev yarn add @babel/helper-transform-fixture-test-runner
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-validator-identifier](https://babeljs.io/docs/en/
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-validator-identifier npm install --save @babel/helper-validator-identifier
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-validator-identifier --dev yarn add @babel/helper-validator-identifier
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-validator-option](https://babeljs.io/docs/en/babe
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-validator-option npm install --save @babel/helper-validator-option
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-validator-option --dev yarn add @babel/helper-validator-option
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/helper-wrap-function](https://babeljs.io/docs/en/babel-h
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/helper-wrap-function npm install --save @babel/helper-wrap-function
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/helper-wrap-function --dev yarn add @babel/helper-wrap-function
``` ```

View File

@ -1,6 +1,6 @@
# @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression # @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression
> Rename destructuring parameter to workaround a [Safari bug](https://bugs.webkit.org/show_bug.cgi?id=220517). > Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517
See our website [@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression](https://babeljs.io/docs/en/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression) for more information. See our website [@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression](https://babeljs.io/docs/en/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression) for more information.

View File

@ -1,6 +1,6 @@
# @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining # @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining
> Transform optional chaining operators to workaround a [v8 bug](https://crbug.com/v8/11558). > Transform optional chaining operators to workaround https://crbug.com/v8/11558
See our website [@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining](https://babeljs.io/docs/en/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining) for more information. See our website [@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining](https://babeljs.io/docs/en/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining) for more information.

View File

@ -1,6 +1,6 @@
# @babel/plugin-proposal-async-do-expressions # @babel/plugin-proposal-async-do-expressions
> Transforms async do expressions to ES2021 > Transform async do expressions to ES2021
See our website [@babel/plugin-proposal-async-do-expressions](https://babeljs.io/docs/en/babel-plugin-proposal-async-do-expressions) for more information. See our website [@babel/plugin-proposal-async-do-expressions](https://babeljs.io/docs/en/babel-plugin-proposal-async-do-expressions) for more information.

View File

@ -0,0 +1,19 @@
# @babel/plugin-proposal-record-and-tuple
> A transform for Record and Tuple syntax.
See our website [@babel/plugin-proposal-record-and-tuple](https://babeljs.io/docs/en/babel-plugin-proposal-record-and-tuple) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/plugin-proposal-record-and-tuple
```
or using yarn:
```sh
yarn add @babel/plugin-proposal-record-and-tuple --dev
```

View File

@ -2,7 +2,7 @@
> Allow parsing of async do expressions > Allow parsing of async do expressions
See our website [@babel/plugin-syntax-async-do-expressions](https://babel.dev/docs/en/babel-plugin-syntax-async-do-expressions) for more information. See our website [@babel/plugin-syntax-async-do-expressions](https://babeljs.io/docs/en/babel-plugin-syntax-async-do-expressions) for more information.
## Install ## Install

View File

@ -1,6 +1,6 @@
# @babel/plugin-syntax-module-blocks # @babel/plugin-syntax-module-blocks
> Allow parsing of module blocks > Allow parsing of JS Module Blocks
See our website [@babel/plugin-syntax-module-blocks](https://babeljs.io/docs/en/babel-plugin-syntax-module-blocks) for more information. See our website [@babel/plugin-syntax-module-blocks](https://babeljs.io/docs/en/babel-plugin-syntax-module-blocks) for more information.

View File

@ -0,0 +1,19 @@
# @babel/plugin-transform-react-jsx-development
> Turn JSX into React function calls in development
See our website [@babel/plugin-transform-react-jsx-development](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx-development) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/plugin-transform-react-jsx-development
```
or using yarn:
```sh
yarn add @babel/plugin-transform-react-jsx-development --dev
```

View File

@ -0,0 +1,19 @@
# @babel/plugin-transform-react-pure-annotations
> Mark top-level React method calls as pure for tree shaking
See our website [@babel/plugin-transform-react-pure-annotations](https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/plugin-transform-react-pure-annotations
```
or using yarn:
```sh
yarn add @babel/plugin-transform-react-pure-annotations --dev
```

View File

@ -9,11 +9,11 @@ See our website [@babel/runtime-corejs2](https://babeljs.io/docs/en/babel-runtim
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/runtime-corejs2 npm install --save @babel/runtime-corejs2
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/runtime-corejs2 --dev yarn add @babel/runtime-corejs2
``` ```

View File

@ -9,11 +9,11 @@ See our website [@babel/runtime-corejs3](https://babeljs.io/docs/en/babel-runtim
Using npm: Using npm:
```sh ```sh
npm install --save-dev @babel/runtime-corejs3 npm install --save @babel/runtime-corejs3
``` ```
or using yarn: or using yarn:
```sh ```sh
yarn add @babel/runtime-corejs3 --dev yarn add @babel/runtime-corejs3
``` ```

View File

@ -7,7 +7,7 @@
import { join } from "path"; import { join } from "path";
import { readdirSync, writeFileSync } from "fs"; import { readdirSync, writeFileSync } from "fs";
import { createRequire } from "url"; import { createRequire } from "module";
const require = createRequire(import.meta.url); const require = createRequire(import.meta.url);
@ -16,7 +16,12 @@ const cwd = process.cwd();
const packageDir = join(cwd, "packages"); const packageDir = join(cwd, "packages");
const packages = readdirSync(packageDir); const packages = readdirSync(packageDir);
const packagesInstalledToDep = ["@babel/runtime"];
const isDep = name =>
name.startsWith("@babel/runtime") ||
name.startsWith("@babel/helper-") ||
name === "@babel/compat-data";
const getWebsiteLink = n => `https://babeljs.io/docs/en/${n}`; const getWebsiteLink = n => `https://babeljs.io/docs/en/${n}`;
const getPackageJson = pkg => require(join(packageDir, pkg, "package.json")); const getPackageJson = pkg => require(join(packageDir, pkg, "package.json"));
const getIssueLabelLink = l => const getIssueLabelLink = l =>
@ -24,11 +29,8 @@ const getIssueLabelLink = l =>
l l
)}%22+is%3Aopen`; )}%22+is%3Aopen`;
const getNpmInstall = name => const getNpmInstall = name =>
`npm install ${ `npm install ${isDep(name) ? "--save" : "--save-dev"} ${name}`;
packagesInstalledToDep.includes(name) ? "--save" : "--save-dev" const getYarnAdd = name => `yarn add ${name}${isDep(name) ? "" : " --dev"}`;
} ${name}`;
const getYarnAdd = name =>
`yarn add ${name} ${packagesInstalledToDep.includes(name) ? "" : "--dev"}`;
const labels = { const labels = {
"babel-preset-flow": getIssueLabelLink("area: flow"), "babel-preset-flow": getIssueLabelLink("area: flow"),