Skip to content

Commit

Permalink
Always use the plugin/preset name in fixtures options (#14118)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 8, 2022
1 parent 393d5d7 commit 213397b
Show file tree
Hide file tree
Showing 453 changed files with 454 additions and 453 deletions.
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-object-assign-to-object-spread"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-object-assign-to-object-spread"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-object-assign-to-object-spread"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-object-assign-to-object-spread"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["../../../../lib"]
"plugins": ["codemod-optional-catch-binding"]
}
3 changes: 2 additions & 1 deletion packages/babel-helper-fixtures/src/index.ts
Expand Up @@ -298,7 +298,8 @@ function wrapPackagesArray(type, names, optionsDir) {

const monorepoPath = path.join(
path.dirname(fileURLToPath(import.meta.url)),
"../..",
"../../..",
name.startsWith("codemod") ? "codemods" : "packages",
`babel-${type}-${name}`,
);

Expand Down
@@ -1,5 +1,5 @@
{
"plugins": [["../../../../", {
"plugins": [["proposal-record-and-tuple", {
"syntaxType": "hash",
"importPolyfill": true
}]]
Expand Down
@@ -1,5 +1,5 @@
{
"plugins": [["../../../../", {
"plugins": [["proposal-record-and-tuple", {
"syntaxType": "hash",
"polyfillModuleName": "my-polyfill"
}]]
Expand Down
@@ -1,5 +1,5 @@
{
"plugins": [["../../../../", {
"plugins": [["proposal-record-and-tuple", {
"syntaxType": "hash",
"importPolyfill": true,
"polyfillModuleName": "my-polyfill"
Expand Down
@@ -1,5 +1,5 @@
{
"plugins": [["../../../../", {
"plugins": [["proposal-record-and-tuple", {
"syntaxType": "hash",
"importPolyfill": true
}]]
Expand Down
@@ -1,3 +1,3 @@
{
"plugins": [["../../../../", { "syntaxType": "bar" }]]
"plugins": [["proposal-record-and-tuple", { "syntaxType": "bar" }]]
}
@@ -1,3 +1,3 @@
{
"plugins": [["../../../../", { "syntaxType": "hash" }]]
"plugins": [["proposal-record-and-tuple", { "syntaxType": "hash" }]]
}
Expand Up @@ -2,7 +2,7 @@
"plugins": [],
"presets": [
[
"../../../../lib",
"env",
{
"targets": { "chrome": "49" }
}
Expand Down
Expand Up @@ -2,7 +2,7 @@
"plugins": [],
"presets": [
[
"../../../../lib",
"env",
{
"targets": { "chrome": "50" }
}
Expand Down
Expand Up @@ -2,7 +2,7 @@
"plugins": [],
"presets": [
[
"../../../../lib",
"env",
{
"targets": { "chrome": "54" }
}
Expand Down
Expand Up @@ -2,7 +2,7 @@
"plugins": [],
"presets": [
[
"../../../../lib",
"env",
{
"targets": { "chrome": "55" }
}
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"useBuiltIns": "usage"
}
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"modules": false,
"useBuiltIns": "entry",
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"modules": false,
"useBuiltIns": "entry",
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 48
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 49
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": "66"
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": "71"
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"browsers": "chromeandroid 59"
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 55
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 55
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"electron": "1.4"
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"ie": 11
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"ie": 9
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 55
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"node": "10.13"
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"node": "11"
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": "55",
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"node": "7.6"
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": "55"
Expand Down
Expand Up @@ -2,7 +2,7 @@
"externalHelpers": true,
"presets": [
[
"../../../../lib",
"env",
{
"shippedProposals": true,
"targets": { "browsers": "ie 6" },
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 63
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 55
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"modules": false,
"useBuiltIns": "entry",
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"modules": false,
"useBuiltIns": "usage",
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 55
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"targets": {
"chrome": 55
Expand Down
@@ -1,7 +1,7 @@
{
"presets": [
[
"../../../../lib",
"env",
{
"useBuiltIns": "usage",
"corejs": 2,
Expand Down

0 comments on commit 213397b

Please sign in to comment.