Sitelet https://github.com/babel/babel/commit/793496394e30fe37b56e54d76cabb417e1652dc2
Skip to content

Commit 7934963

Browse files
Use type: module in all package.jsons (#16535)
* Use `type: module` in all `package.json`s * Remove now unnecessary `{ "type": "module" }` package.jsons * Use `type: commonjs` where needed
1 parent 33d6f70 commit 7934963

302 files changed

Lines changed: 658 additions & 803 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
}
4343
],
4444
"USE_ESM": [
45+
null,
4546
{
46-
"type": "module"
47-
},
48-
null
47+
"type": "commonjs"
48+
}
4949
]
5050
},
5151
"exports": {
@@ -55,5 +55,5 @@
5555
},
5656
"./package.json": "./package.json"
5757
},
58-
"type": "commonjs"
58+
"type": "module"
5959
}

‎codemods/babel-plugin-codemod-object-assign-to-object-spread/test/package.json‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎codemods/babel-plugin-codemod-optional-catch-binding/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
}
4343
],
4444
"USE_ESM": [
45+
null,
4546
{
46-
"type": "module"
47-
},
48-
null
47+
"type": "commonjs"
48+
}
4949
]
5050
},
5151
"exports": {
@@ -55,5 +55,5 @@
5555
},
5656
"./package.json": "./package.json"
5757
},
58-
"type": "commonjs"
58+
"type": "module"
5959
}

‎codemods/babel-plugin-codemod-optional-catch-binding/test/package.json‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎eslint/babel-eslint-parser/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"node": "^10.13.0 || ^12.13.0 || >=14.0.0"
2121
},
2222
"main": "./lib/index.cjs",
23-
"type": "commonjs",
23+
"type": "module",
2424
"exports": {
2525
".": "./lib/index.cjs",
2626
"./experimental-worker": "./lib/experimental-worker.cjs",

‎eslint/babel-eslint-parser/test/package.json‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎eslint/babel-eslint-plugin-development-internal/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
"devDependencies": {
2323
"eslint": "^8.22.0"
2424
},
25-
"type": "commonjs"
25+
"type": "module"
2626
}

‎eslint/babel-eslint-plugin-development-internal/test/rules/package.json‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎eslint/babel-eslint-plugin-development/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"author": "The Babel Team (https://babel.dev/team)",
1111
"main": "./lib/index.cjs",
12-
"type": "commonjs",
12+
"type": "module",
1313
"exports": {
1414
".": "./lib/index.cjs",
1515
"./package.json": "./package.json"

‎eslint/babel-eslint-plugin-development/test/rules/package.json‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)