@devpow112/babel-config 1.0.5 → 1.1.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
@@ -42,7 +42,7 @@ npm i
42
42
  Execute linters via `npm`.
43
43
 
44
44
  ```console
45
- # git, javascript and markdown
45
+ # git, javascript, markdown and package.json
46
46
  npm run lint
47
47
 
48
48
  # git only
@@ -53,6 +53,9 @@ npm run lint:js
53
53
 
54
54
  # markdown only
55
55
  npm run lint:md
56
+
57
+ # package.json only
58
+ npm run lint:pkg
56
59
  ```
57
60
 
58
61
  ### Formatting
@@ -60,7 +63,7 @@ npm run lint:md
60
63
  Execute formatters via `npm`.
61
64
 
62
65
  ```console
63
- # javascript and markdown
66
+ # javascript, markdown and package.json
64
67
  npm run format
65
68
 
66
69
  # javascript only
@@ -68,6 +71,9 @@ npm run format:js
68
71
 
69
72
  # markdown only
70
73
  npm run format:md
74
+
75
+ # package.json only
76
+ npm run format:pkg
71
77
  ```
72
78
 
73
79
  <!-- links -->
package/package.json CHANGED
@@ -1,62 +1,63 @@
1
1
  {
2
2
  "name": "@devpow112/babel-config",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "description": "Shareable babel configuration",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "scripts": {
9
- "lint": "run-s -s lint:git lint:js lint:md",
10
- "lint:js": "eslint .",
11
- "lint:md": "markdownlint .",
12
- "lint:git": "commitlint --from origin/main --to HEAD",
13
- "format": "run-s -s format:js format:md",
14
- "format:js": "npm run -s lint:js -- --fix",
15
- "format:md": "npm run -s lint:md -- --fix"
16
- },
17
- "exports": {
18
- "./node12": "./src/node-12.js",
19
- "./node12.js": "./src/node-12.js",
20
- "./node12-config": "./src/node-12.js",
21
- "./node12-config.js": "./src/node-12.js",
22
- "./node-12": "./src/node-12.js",
23
- "./node-12.js": "./src/node-12.js",
24
- "./node-12-config": "./src/node-12.js",
25
- "./node-12-config.js": "./src/node-12.js"
5
+ "keywords": [
6
+ "babel-config"
7
+ ],
8
+ "homepage": "https://github.com/devpow112/babel-config#readme",
9
+ "bugs": {
10
+ "url": "https://github.com/devpow112/babel-config/issues"
26
11
  },
27
12
  "repository": {
28
13
  "type": "git",
29
14
  "url": "https://github.com/devpow112/babel-config.git"
30
15
  },
31
- "keywords": [
32
- "babel-config"
33
- ],
34
- "author": "Devon Powell <devon.f.powell@gmail.com>",
35
16
  "license": "MIT",
36
- "bugs": {
37
- "url": "https://github.com/devpow112/babel-config/issues"
17
+ "author": "Devon Powell <devon.f.powell@gmail.com>",
18
+ "exports": {
19
+ "./node-12": "./src/node-12.js",
20
+ "./node-12.js": "./src/node-12.js",
21
+ "./node-16": "./src/node-16.js",
22
+ "./node-16.js": "./src/node-16.js",
23
+ "./node-18": "./src/node-18.js",
24
+ "./node-18.js": "./src/node-18.js"
38
25
  },
39
- "homepage": "https://github.com/devpow112/babel-config#readme",
40
26
  "files": [
41
27
  "src/**/*.js"
42
28
  ],
43
- "engines": {
44
- "node": ">=12.22.7",
45
- "npm": ">=6.14.15"
29
+ "scripts": {
30
+ "lint": "run-s -s lint:git lint:js lint:md lint:pkg",
31
+ "lint:js": "eslint .",
32
+ "lint:md": "markdownlint .",
33
+ "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"
39
+ },
40
+ "devDependencies": {
41
+ "@commitlint/cli": "^17.6.1",
42
+ "@devpow112/commitlint-config": "^2.0.0",
43
+ "@devpow112/eslint-config": "^2.0.1",
44
+ "@devpow112/semantic-release-config": "^2.1.2",
45
+ "eslint": "^8.39.0",
46
+ "markdownlint-cli": "^0.33.0",
47
+ "npm-run-all": "^4.1.5",
48
+ "semantic-release": "^21.0.1",
49
+ "sort-package-json": "^2.4.1"
46
50
  },
47
51
  "peerDependencies": {
48
52
  "@babel/cli": "^7",
49
53
  "@babel/preset-env": "^7",
50
54
  "babel-plugin-add-module-exports": "^1"
51
55
  },
52
- "devDependencies": {
53
- "@commitlint/cli": "^17.4.0",
54
- "@devpow112/commitlint-config": "^1.0.4",
55
- "@devpow112/eslint-config": "^1.1.4",
56
- "@devpow112/semantic-release-config": "^1.2.2",
57
- "eslint": "^8.31.0",
58
- "markdownlint-cli": "^0.32.2",
59
- "npm-run-all": "^4.1.5",
60
- "semantic-release": "^19.0.5"
56
+ "engines": {
57
+ "node": ">=12.0"
58
+ },
59
+ "publishConfig": {
60
+ "access": "public",
61
+ "provenance": true
61
62
  }
62
63
  }
package/src/node-12.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
2
  extends: './common.js',
3
- presets: [['@babel/preset-env', { targets: { node: 12 } }]],
3
+ presets: [['@babel/preset-env', { targets: { node: '12' } }]],
4
4
  plugins: ['add-module-exports']
5
5
  };
package/src/node-16.js ADDED
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ extends: './common.js',
3
+ presets: [['@babel/preset-env', { targets: { node: '16' } }]],
4
+ plugins: ['add-module-exports']
5
+ };
package/src/node-18.js ADDED
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ extends: './common.js',
3
+ presets: [['@babel/preset-env', { targets: { node: '18' } }]],
4
+ plugins: ['add-module-exports']
5
+ };