@willbooster/babel-configs 2.3.5 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -4
  2. package/package.json +20 -2
package/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # babel-configs
2
2
 
3
3
  A set of babel config files for my repositories.
4
+ Install `@willbooster/babel-configs` and the peer dependencies required by the config file you use.
4
5
 
5
- ## How to add dependencies for babel.config.cjs
6
+ ## `babel.config.cjs`
6
7
 
7
8
  ```sh
8
9
  yarn add -D @willbooster/babel-configs \
@@ -14,7 +15,9 @@ yarn add -D @willbooster/babel-configs \
14
15
  babel-plugin-transform-remove-console
15
16
  ```
16
17
 
17
- ## How to add dependencies for babel.corejs.config.cjs
18
+ ## `babel.corejs.config.cjs`
19
+
20
+ This config also requires the optional `core-js` peer dependency.
18
21
 
19
22
  ```sh
20
23
  yarn add -D @willbooster/babel-configs \
@@ -27,7 +30,9 @@ yarn add -D @willbooster/babel-configs \
27
30
  core-js
28
31
  ```
29
32
 
30
- ## How to add dependencies for babel.react.config.cjs
33
+ ## `babel.react.config.cjs`
34
+
35
+ This config also requires the optional `@babel/preset-react` peer dependency.
31
36
 
32
37
  ```sh
33
38
  yarn add -D @willbooster/babel-configs \
@@ -40,7 +45,9 @@ yarn add -D @willbooster/babel-configs \
40
45
  babel-plugin-transform-remove-console
41
46
  ```
42
47
 
43
- ## How to add dependencies for babel.corejs.react.config.cjs
48
+ ## `babel.corejs.react.config.cjs`
49
+
50
+ This config also requires the optional `@babel/preset-react` and `core-js` peer dependencies.
44
51
 
45
52
  ```sh
46
53
  yarn add -D @willbooster/babel-configs \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/babel-configs",
3
- "version": "2.3.5",
3
+ "version": "2.4.0",
4
4
  "description": "Babel configs for WillBooster projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,13 +22,31 @@
22
22
  "prettier": "@willbooster/prettier-config",
23
23
  "devDependencies": {
24
24
  "@types/babel__core": "7.20.5",
25
- "@willbooster/prettier-config": "10.2.5",
25
+ "@willbooster/prettier-config": "10.3.0",
26
26
  "core-js": "3.49.0",
27
27
  "lint-staged": "16.4.0",
28
28
  "prettier": "3.8.1",
29
29
  "prettier-plugin-java": "2.8.1",
30
30
  "sort-package-json": "3.6.1"
31
31
  },
32
+ "peerDependencies": {
33
+ "@babel/core": ">=7",
34
+ "@babel/plugin-proposal-class-properties": ">=7",
35
+ "@babel/plugin-proposal-numeric-separator": ">=7",
36
+ "@babel/preset-env": ">=7",
37
+ "@babel/preset-react": ">=7",
38
+ "@babel/preset-typescript": ">=7",
39
+ "babel-plugin-transform-remove-console": ">=6",
40
+ "core-js": ">=3"
41
+ },
42
+ "peerDependenciesMeta": {
43
+ "@babel/preset-react": {
44
+ "optional": true
45
+ },
46
+ "core-js": {
47
+ "optional": true
48
+ }
49
+ },
32
50
  "publishConfig": {
33
51
  "access": "public"
34
52
  }