@devpow112/babel-config 1.1.3 → 1.2.1

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/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  [![License][License Badge]](LICENSE)
4
4
  [![Version][Version Badge]][Version Package]
5
5
  [![Release][Release Badge]][Release Workflow]
6
- [![Vulnerabilities][Vulnerabilities Badge]][Vulnerabilities Report]
7
6
  [![Node Version][Node Version Badge]](package.json#L57)
8
7
 
9
8
  Shareable babel configuration.
@@ -58,22 +57,22 @@ npm run lint:md
58
57
  npm run lint:pkg
59
58
  ```
60
59
 
61
- ### Formatting
60
+ ### Fixing
62
61
 
63
- Execute formatters via `npm`.
62
+ Execute automatic fixers via `npm`.
64
63
 
65
64
  ```console
66
65
  # javascript, markdown and package.json
67
- npm run format
66
+ npm run fix
68
67
 
69
68
  # javascript only
70
- npm run format:js
69
+ npm run fix:js
71
70
 
72
71
  # markdown only
73
- npm run format:md
72
+ npm run fix:md
74
73
 
75
74
  # package.json only
76
- npm run format:pkg
75
+ npm run fix:pkg
77
76
  ```
78
77
 
79
78
  <!-- links -->
@@ -83,6 +82,4 @@ npm run format:pkg
83
82
  [Node Version Badge]: https://img.shields.io/node/v/@devpow112/babel-config
84
83
  [Release Badge]: https://github.com/devpow112/babel-config/actions/workflows/release.yml/badge.svg?branch=main
85
84
  [Release Workflow]: https://github.com/devpow112/babel-config/actions/workflows/release.yml?query=branch%3Amain
86
- [Vulnerabilities Badge]: https://img.shields.io/snyk/vulnerabilities/github/devpow112/babel-config?label=Vulnerabilities
87
- [Vulnerabilities Report]: https://snyk.io/test/github/devpow112/babel-config
88
85
  [Babel configuration]: https://babeljs.io/docs/en/config-files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpow112/babel-config",
3
- "version": "1.1.3",
3
+ "version": "1.2.1",
4
4
  "description": "Shareable babel configuration",
5
5
  "keywords": [
6
6
  "babel-config"
@@ -11,41 +11,45 @@
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/devpow112/babel-config.git"
14
+ "url": "git+https://github.com/devpow112/babel-config.git"
15
15
  },
16
16
  "license": "MIT",
17
17
  "author": "Devon Powell <devon.f.powell@gmail.com>",
18
18
  "exports": {
19
19
  "./node-12": "./src/node-12.js",
20
20
  "./node-12.js": "./src/node-12.js",
21
+ "./node-14": "./src/node-14.js",
22
+ "./node-14.js": "./src/node-14.js",
21
23
  "./node-16": "./src/node-16.js",
22
24
  "./node-16.js": "./src/node-16.js",
23
25
  "./node-18": "./src/node-18.js",
24
- "./node-18.js": "./src/node-18.js"
26
+ "./node-18.js": "./src/node-18.js",
27
+ "./node-20": "./src/node-20.js",
28
+ "./node-20.js": "./src/node-20.js"
25
29
  },
26
30
  "files": [
27
31
  "src/**/*.js"
28
32
  ],
29
33
  "scripts": {
30
34
  "lint": "run-s -s lint:git lint:js lint:md lint:pkg",
31
- "lint:js": "eslint .",
32
- "lint:md": "markdownlint .",
35
+ "lint:js": "eslint . --ignore-path .gitignore",
36
+ "lint:md": "markdownlint . --ignore-path .gitignore",
33
37
  "lint:git": "commitlint --from origin/main --to HEAD",
34
- "lint:pkg": "sort-package-json --check",
35
- "format": "run-s -s format:js format:md format:pkg",
36
- "format:js": "npm run -s lint:js -- --fix",
37
- "format:md": "npm run -s lint:md -- --fix",
38
- "format:pkg": "sort-package-json"
38
+ "lint:pkg": "npm run -s fix:pkg -- --check",
39
+ "fix": "run-s -s fix:js fix:md fix:pkg",
40
+ "fix:js": "npm run -s lint:js -- --fix",
41
+ "fix:md": "npm run -s lint:md -- --fix",
42
+ "fix:pkg": "sort-package-json"
39
43
  },
40
44
  "devDependencies": {
41
- "@commitlint/cli": "^17.8.0",
45
+ "@commitlint/cli": "^17.8.1",
42
46
  "@devpow112/commitlint-config": "^2.0.0",
43
47
  "@devpow112/eslint-config": "^2.0.1",
44
- "@devpow112/semantic-release-config": "^2.1.2",
45
- "eslint": "^8.51.0",
46
- "markdownlint-cli": "^0.37.0",
48
+ "@devpow112/semantic-release-config": "^2.2.1",
49
+ "eslint": "^8.56.0",
50
+ "markdownlint-cli": "^0.38.0",
47
51
  "npm-run-all": "^4.1.5",
48
- "semantic-release": "^21.1.2",
52
+ "semantic-release": "^22.0.12",
49
53
  "sort-package-json": "^2.6.0"
50
54
  },
51
55
  "peerDependencies": {
package/src/common.js CHANGED
@@ -1,4 +1,5 @@
1
1
  module.exports = {
2
2
  sourceMaps: 'inline',
3
- minified: true
3
+ minified: true,
4
+ plugins: ['add-module-exports']
4
5
  };
package/src/node-12.js CHANGED
@@ -1,5 +1,4 @@
1
1
  module.exports = {
2
2
  extends: './common.js',
3
- presets: [['@babel/preset-env', { targets: { node: '12' } }]],
4
- plugins: ['add-module-exports']
3
+ presets: [['@babel/preset-env', { targets: { node: '12' } }]]
5
4
  };
package/src/node-14.js ADDED
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ extends: './common.js',
3
+ presets: [['@babel/preset-env', { targets: { node: '14' } }]]
4
+ };
package/src/node-16.js CHANGED
@@ -1,5 +1,4 @@
1
1
  module.exports = {
2
2
  extends: './common.js',
3
- presets: [['@babel/preset-env', { targets: { node: '16' } }]],
4
- plugins: ['add-module-exports']
3
+ presets: [['@babel/preset-env', { targets: { node: '16' } }]]
5
4
  };
package/src/node-18.js CHANGED
@@ -1,5 +1,4 @@
1
1
  module.exports = {
2
2
  extends: './common.js',
3
- presets: [['@babel/preset-env', { targets: { node: '18' } }]],
4
- plugins: ['add-module-exports']
3
+ presets: [['@babel/preset-env', { targets: { node: '18' } }]]
5
4
  };
package/src/node-20.js ADDED
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ extends: './common.js',
3
+ presets: [['@babel/preset-env', { targets: { node: '20' } }]]
4
+ };