@devpow112/babel-config 1.1.2 → 1.2.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.
package/README.md CHANGED
@@ -58,22 +58,22 @@ npm run lint:md
58
58
  npm run lint:pkg
59
59
  ```
60
60
 
61
- ### Formatting
61
+ ### Fixing
62
62
 
63
- Execute formatters via `npm`.
63
+ Execute automatic fixers via `npm`.
64
64
 
65
65
  ```console
66
66
  # javascript, markdown and package.json
67
- npm run format
67
+ npm run fix
68
68
 
69
69
  # javascript only
70
- npm run format:js
70
+ npm run fix:js
71
71
 
72
72
  # markdown only
73
- npm run format:md
73
+ npm run fix:md
74
74
 
75
75
  # package.json only
76
- npm run format:pkg
76
+ npm run fix:pkg
77
77
  ```
78
78
 
79
79
  <!-- links -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpow112/babel-config",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "Shareable babel configuration",
5
5
  "keywords": [
6
6
  "babel-config"
@@ -11,42 +11,46 @@
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.6.6",
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.44.0",
46
- "markdownlint-cli": "^0.35.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.0.7",
49
- "sort-package-json": "^2.5.1"
52
+ "semantic-release": "^22.0.12",
53
+ "sort-package-json": "^2.6.0"
50
54
  },
51
55
  "peerDependencies": {
52
56
  "@babel/cli": "^7",
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
+ };