Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always use the plugin/preset name in fixtures options #14118

Merged
merged 4 commits into from Jan 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
@@ -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