@foray1010/babel-preset 8.0.0 → 9.0.2

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.0.2](https://github.com/foray1010/common-presets/compare/@foray1010/babel-preset@9.0.1...@foray1010/babel-preset@9.0.2) (2022-08-24)
7
+
8
+ **Note:** Version bump only for package @foray1010/babel-preset
9
+
10
+ ## [9.0.1](https://github.com/foray1010/common-presets/compare/@foray1010/babel-preset@9.0.0...@foray1010/babel-preset@9.0.1) (2022-06-13)
11
+
12
+ ### Bug Fixes
13
+
14
+ - should drop node 17 in version range ([0e911fd](https://github.com/foray1010/common-presets/commit/0e911fd737e472d699bfc32d866067ed6ccfa269))
15
+
16
+ ## [9.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/babel-preset@8.0.0...@foray1010/babel-preset@9.0.0) (2022-06-13)
17
+
18
+ ### ⚠ BREAKING CHANGES
19
+
20
+ - drop node 12 and 17
21
+
22
+ ### Miscellaneous Chores
23
+
24
+ - drop node 12 and 17 ([c43351e](https://github.com/foray1010/common-presets/commit/c43351e0da92209fc3100d9cb1bc129af320fdac))
25
+
6
26
  ## [8.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/babel-preset@7.0.1...@foray1010/babel-preset@8.0.0) (2021-11-10)
7
27
 
8
28
  ### ⚠ BREAKING CHANGES
package/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  2. `yarn add -DE @babel/core @foray1010/babel-preset`
20
20
 
21
- 3. Create an `.babelrc.js` in the project root
21
+ 3. Create an `.babelrc.cjs` in the project root
22
22
 
23
23
  ```js
24
24
  'use strict'
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  const { declare } = require('@babel/helper-plugin-utils')
4
+ // @ts-expect-error
4
5
  const { hasDep, pkg, pkgDir } = require('@foray1010/common-presets-utils')
5
6
  const browserslist = require('browserslist')
6
7
  const semver = require('semver')
@@ -18,7 +19,7 @@ const getEnvTargets = () => {
18
19
 
19
20
  const nodeVersionRange = pkg.engines.node
20
21
  if (nodeVersionRange) {
21
- return { node: semver.minVersion(pkg.engines.node).format() }
22
+ return { node: semver.minVersion(pkg.engines.node)?.format() }
22
23
  }
23
24
 
24
25
  throw new Error('no browserslist nor engines.node is found')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@foray1010/babel-preset",
4
- "version": "8.0.0",
4
+ "version": "9.0.2",
5
5
  "homepage": "https://github.com/foray1010/common-presets/tree/master/packages/babel-preset#readme",
6
6
  "bugs": "https://github.com/foray1010/common-presets/issues",
7
7
  "repository": {
@@ -15,6 +15,9 @@
15
15
  "**/*.{cjs,js,json,mjs}",
16
16
  "*.md"
17
17
  ],
18
+ "scripts": {
19
+ "type:check": "tsc"
20
+ },
18
21
  "dependencies": {
19
22
  "@babel/helper-plugin-utils": "^7.13.0",
20
23
  "@babel/plugin-transform-react-constant-elements": "^7.13.13",
@@ -23,20 +26,25 @@
23
26
  "@babel/preset-env": "^7.13.15",
24
27
  "@babel/preset-react": "^7.13.13",
25
28
  "@babel/preset-typescript": "^7.13.0",
26
- "@foray1010/common-presets-utils": "^4.0.0",
29
+ "@foray1010/common-presets-utils": "^5.0.2",
27
30
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
28
31
  "browserslist": "^4.16.5",
29
32
  "semver": "^7.3.5"
30
33
  },
34
+ "devDependencies": {
35
+ "@babel/core": "7.18.13",
36
+ "@types/semver": "7.3.12",
37
+ "typescript": "4.7.4"
38
+ },
31
39
  "peerDependencies": {
32
40
  "@babel/core": "^7.0.0",
33
41
  "@babel/runtime": "^7.9.6"
34
42
  },
35
43
  "engines": {
36
- "node": "^12.22.0 || ^14.17.0 || >=16.13.0"
44
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
37
45
  },
38
46
  "publishConfig": {
39
47
  "access": "public"
40
48
  },
41
- "gitHead": "51c3d9afc5e12b9326c67dddaee81a0cb2b47b22"
49
+ "gitHead": "4558b3b10e979f052739e103aef0aad62f3e637b"
42
50
  }
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "@foray1010/tsconfig",
4
+ "compilerOptions": {
5
+ "allowJs": true,
6
+ "checkJs": true
7
+ }
8
+ }