Scoped: update experimental/codemods to @babel/ [skip ci]
This commit is contained in:
@@ -50,7 +50,7 @@ babel --plugins codemod-optional-catch-binding script.js
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require("babel-core").transform("code", {
|
||||
require("@babel/core").transform("code", {
|
||||
plugins: ["codemod-optional-catch-binding"]
|
||||
});
|
||||
```
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "babel-plugin-codemod-optional-catch-binding",
|
||||
"name" : "@babel/plugin-codemod-optional-catch-binding",
|
||||
"version": "7.0.0-beta.3",
|
||||
"description": "Remove unused catch bindings",
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-remove-unused-catch-binding",
|
||||
@@ -9,9 +9,9 @@
|
||||
"babel-plugin"
|
||||
],
|
||||
"dependencies": {
|
||||
"babel-plugin-syntax-optional-catch-binding": "7.0.0-beta.3"
|
||||
"@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-helper-plugin-test-runner": "7.0.0-beta.3"
|
||||
"@babel/helper-plugin-test-runner": "7.0.0-beta.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import syntaxOptionalCatchBinding from "babel-plugin-syntax-optional-catch-binding";
|
||||
import syntaxOptionalCatchBinding from "@babel/plugin-syntax-optional-catch-binding";
|
||||
|
||||
export default function(babel) {
|
||||
const { types: t } = babel;
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import runner from "babel-helper-plugin-test-runner";
|
||||
import runner from "@babel/helper-plugin-test-runner";
|
||||
|
||||
runner(__dirname);
|
||||
|
||||
Reference in New Issue
Block a user