From 6d2f4a69552c9eb9a7b3eb3aa1ffaa4c23edf576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Tue, 17 Oct 2017 00:36:01 +0200 Subject: [PATCH] Scoped: updated more docs with scoped packages change [skip ci] --- packages/README.md | 8 ++++---- packages/babel-cli/index.js | 2 +- packages/babel-plugin-transform-flow-comments/README.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/README.md b/packages/README.md index e972297366..1418cb1382 100644 --- a/packages/README.md +++ b/packages/README.md @@ -13,7 +13,7 @@ A monorepo, muhahahahahaha. See the [monorepo design doc](/doc/design/monorepo.m | Package | Version | Dependencies | |--------|-------|------------| -| [`babel-core`](/packages/babel-core) | [![npm](https://img.shields.io/npm/v/babel-core.svg?maxAge=2592000)](https://www.npmjs.com/package/babel-core) | [![Dependency Status](https://david-dm.org/babel/babel.svg?path=packages/babel-core)](https://david-dm.org/babel/babel?path=packages/babel-core) | +| [`@babel/core`](/packages/babel-core) | [![npm](https://img.shields.io/npm/v/babel-core.svg?maxAge=2592000)](https://www.npmjs.com/package/babel-core) | [![Dependency Status](https://david-dm.org/babel/babel.svg?path=packages/babel-core)](https://david-dm.org/babel/babel?path=packages/babel-core) | | [`babylon`](https://github.com/babel/babylon) | [![npm](https://img.shields.io/npm/v/babylon.svg?maxAge=2592000)](https://www.npmjs.com/package/babylon) | [![Dependency Status](https://david-dm.org/babel/babylon.svg)](https://david-dm.org/babel/babylon) | | [`@babel/traverse`](/packages/babel-traverse) | [![npm](https://img.shields.io/npm/v/babel-traverse.svg?maxAge=2592000)](https://www.npmjs.com/package/babel-traverse) | [![Dependency Status](https://david-dm.org/babel/babel.svg?path=packages/babel-traverse)](https://david-dm.org/babel/babel?path=packages/babel-traverse) | | [`@babel/generator`](/packages/babel-generator) | [![npm](https://img.shields.io/npm/v/babel-generator.svg?maxAge=2592000)](https://www.npmjs.com/package/babel-generator) | [![Dependency Status](https://david-dm.org/babel/babel.svg?path=packages/babel-generator)](https://david-dm.org/babel/babel?path=packages/babel-generator) | @@ -23,12 +23,12 @@ A monorepo, muhahahahahaha. See the [monorepo design doc](/doc/design/monorepo.m The compiler can be broken down into 3 parts: - The parser: [`babylon`](https://github.com/babel/babylon) (moved to a separate repo and versioned independently) - The transformer[s]: All the plugins/presets - - These all use [`babel-traverse`](/packages/babel-traverse) to traverse through the AST -- The generator: [`babel-generator`](/packages/babel-generator) + - These all use [`@babel/traverse`](/packages/babel-traverse) to traverse through the AST +- The generator: [`@babel/generator`](/packages/babel-generator) The flow goes like this: -input string -> `babylon` parser -> `AST` -> transformer[s] -> `AST` -> `babel-generator` -> output string +input string -> `babylon` parser -> `AST` -> transformer[s] -> `AST` -> `@babel/generator` -> output string Check out the [`babel-handbook`](https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#introduction) for more information on this. diff --git a/packages/babel-cli/index.js b/packages/babel-cli/index.js index fc79937c89..b1762389af 100644 --- a/packages/babel-cli/index.js +++ b/packages/babel-cli/index.js @@ -1 +1 @@ -throw new Error("Use the `babel-core` package instead of `babel-cli`."); +throw new Error("Use the `@babel/core` package instead of `@babel/cli`."); diff --git a/packages/babel-plugin-transform-flow-comments/README.md b/packages/babel-plugin-transform-flow-comments/README.md index 10a32bac1a..923ee2683d 100644 --- a/packages/babel-plugin-transform-flow-comments/README.md +++ b/packages/babel-plugin-transform-flow-comments/README.md @@ -2,7 +2,7 @@ > Turn flow type annotations into comments. -You should be able to use this plugin instead of `babel-plugin-flow-strip-types` to preserve the `/* @flow */` directive and still use flow. +You should be able to use this plugin instead of `@babel/plugin-flow-strip-types` to preserve the `/* @flow */` directive and still use flow. [Flow Comments Blog Post](http://flowtype.org/blog/2015/02/20/Flow-Comments.html)