create-node-lib 2.5.1 → 2.6.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.
@@ -0,0 +1 @@
1
+ * @lirantal
@@ -7,12 +7,12 @@ jobs:
7
7
  # name: Lint
8
8
  # runs-on: 'ubuntu-latest'
9
9
  # steps:
10
- # - uses: actions/checkout@v2
11
- # - uses: actions/setup-node@v2
10
+ # - uses: actions/checkout@v3
11
+ # - uses: actions/setup-node@v3
12
12
  # with:
13
- # node-version: '16'
13
+ # node-version: '18'
14
14
  # - name: install dependencies
15
- # run: npm ci
15
+ # run: npm ci --audit false
16
16
  # - name: lint code
17
17
  # run: npm run lint
18
18
 
@@ -20,16 +20,16 @@ jobs:
20
20
  strategy:
21
21
  matrix:
22
22
  platform: [ubuntu-latest]
23
- node: ['14', '16']
23
+ node: ['16', '18']
24
24
  name: Tests - Node ${{ matrix.node }} (${{ matrix.platform }})
25
25
  runs-on: ${{ matrix.platform }}
26
26
  steps:
27
- - uses: actions/checkout@v2
28
- - uses: actions/setup-node@v2
27
+ - uses: actions/checkout@v3
28
+ - uses: actions/setup-node@v3
29
29
  with:
30
30
  node-version: ${{ matrix.node }}
31
31
  - name: install dependencies
32
- run: npm ci --ignore-engines
32
+ run: npm ci --ignore-engines --audit false
33
33
  - name: run tests
34
34
  run: npm run test
35
35
  - name: code coverage report
@@ -43,12 +43,12 @@ jobs:
43
43
  needs: build
44
44
  if: github.event_name == 'push' && github.ref == 'refs/heads/main'
45
45
  steps:
46
- - uses: actions/checkout@v2
47
- - uses: actions/setup-node@v2
46
+ - uses: actions/checkout@v3
47
+ - uses: actions/setup-node@v3
48
48
  with:
49
- node-version: '16'
49
+ node-version: '18'
50
50
  - name: install dependencies
51
- run: npm ci --ignore-engines --only=production
51
+ run: npm ci --ignore-engines --only=production --audit false
52
52
  - name: release
53
53
  run: npx semantic-release
54
54
  env:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-node-lib",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "Scaffolding out a Node.js library module",
5
5
  "bin": "./bin/cli.js",
6
6
  "engines": {
@@ -43,36 +43,36 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "sao": "^1.7.1",
46
- "validate-npm-package-name": "^3.0.0"
46
+ "validate-npm-package-name": "^5.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@commitlint/cli": "^9.1.2",
50
- "@commitlint/config-conventional": "^7.1.2",
51
- "@semantic-release/changelog": "^3.0.4",
52
- "@semantic-release/commit-analyzer": "^6.2.0",
53
- "@semantic-release/git": "^7.0.16",
54
- "@semantic-release/github": "^5.4.2",
55
- "@semantic-release/npm": "^7.1.0",
56
- "@semantic-release/release-notes-generator": "^7.2.1",
49
+ "@commitlint/cli": "^17.4.2",
50
+ "@commitlint/config-conventional": "^17.4.2",
51
+ "@semantic-release/changelog": "^6.0.2",
52
+ "@semantic-release/commit-analyzer": "^9.0.2",
53
+ "@semantic-release/git": "^10.0.1",
54
+ "@semantic-release/github": "^8.0.7",
55
+ "@semantic-release/npm": "^9.0.2",
56
+ "@semantic-release/release-notes-generator": "^10.0.3",
57
57
  "babel-eslint": "^10.0.1",
58
58
  "babel-plugin-syntax-async-functions": "^6.13.0",
59
59
  "babel-plugin-transform-regenerator": "^6.26.0",
60
- "babel-preset-env": "^1.6.1",
60
+ "babel-preset-env": "^1.7.0",
61
61
  "decompress": "^4.2.1",
62
- "eslint": "^6.0.1",
63
- "eslint-config-standard": "^13.0.1",
64
- "eslint-plugin-import": "^2.18.0",
65
- "eslint-plugin-jest": "^22.7.2",
66
- "eslint-plugin-node": "^9.1.0",
67
- "eslint-plugin-promise": "^4.2.1",
68
- "eslint-plugin-security": "^1.4.0",
69
- "eslint-plugin-standard": "^4.0.0",
70
- "husky": "^3.0.0",
71
- "jest": "^24.8.0",
72
- "lint-staged": "^9.2.0",
73
- "lockfile-lint": "^2.0.1",
74
- "open-cli": "^6.0.0",
75
- "prettier": "^1.18.2"
62
+ "eslint": "^8.33.0",
63
+ "eslint-config-standard": "^17.0.0",
64
+ "eslint-plugin-import": "^2.27.5",
65
+ "eslint-plugin-jest": "^27.2.1",
66
+ "eslint-plugin-node": "^11.1.0",
67
+ "eslint-plugin-promise": "^6.1.1",
68
+ "eslint-plugin-security": "^1.7.1",
69
+ "eslint-plugin-standard": "^4.1.0",
70
+ "husky": "^8.0.3",
71
+ "jest": "^29.4.1",
72
+ "lint-staged": "^13.1.0",
73
+ "lockfile-lint": "^4.10.0",
74
+ "open-cli": "^7.1.0",
75
+ "prettier": "^2.8.3"
76
76
  },
77
77
  "jest": {
78
78
  "testEnvironment": "node",
@@ -214,5 +214,8 @@
214
214
  }
215
215
  ],
216
216
  "@semantic-release/github"
217
- ]
217
+ ],
218
+ "peerDependencies": {
219
+ "node-notifier": "^10.0.1"
220
+ }
218
221
  }
package/saofile.js CHANGED
@@ -91,14 +91,6 @@ module.exports = {
91
91
  return data
92
92
  }
93
93
  },
94
- {
95
- type: 'modify',
96
- files: 'package.json',
97
- handler(data, filepath) {
98
- data.files = ['src']
99
- return data
100
- }
101
- },
102
94
  {
103
95
  type: 'move',
104
96
  patterns: {
@@ -8,10 +8,10 @@ jobs:
8
8
  name: Lint
9
9
  runs-on: 'ubuntu-latest'
10
10
  steps:
11
- - uses: actions/checkout@v2
12
- - uses: actions/setup-node@v2
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-node@v3
13
13
  with:
14
- node-version: '16'
14
+ node-version: '18'
15
15
  - name: install dependencies
16
16
  run: <%= npmClientInstall %>
17
17
  - name: lint code
@@ -21,12 +21,12 @@ jobs:
21
21
  strategy:
22
22
  matrix:
23
23
  platform: [ubuntu-latest]
24
- node: ['14', '16']
24
+ node: ['14', '16', '18']
25
25
  name: Tests - Node ${{ matrix.node }} (${{ matrix.platform }})
26
26
  runs-on: ${{ matrix.platform }}
27
27
  steps:
28
- - uses: actions/checkout@v2
29
- - uses: actions/setup-node@v2
28
+ - uses: actions/checkout@v3
29
+ - uses: actions/setup-node@v3
30
30
  with:
31
31
  node-version: ${{ matrix.node }}
32
32
  - name: install dependencies
@@ -40,10 +40,10 @@ jobs:
40
40
  needs: build
41
41
  if: github.event_name == 'push' && github.ref == 'refs/heads/main'
42
42
  steps:
43
- - uses: actions/checkout@v2
44
- - uses: actions/setup-node@v2
43
+ - uses: actions/checkout@v3
44
+ - uses: actions/setup-node@v3
45
45
  with:
46
- node-version: '16'
46
+ node-version: '18'
47
47
  - name: install dependencies
48
48
  run: <%= npmClientInstall %> --ignore-engines --only=production
49
49
  - name: release
@@ -1,5 +1,3 @@
1
- .dccache
2
-
3
1
  # Logs
4
2
 
5
3
  logs
@@ -108,3 +106,6 @@ typings/
108
106
  # Snyk Code
109
107
 
110
108
  .dccache
109
+
110
+ # Visual Studio Code
111
+ .vscode/
@@ -46,28 +46,28 @@
46
46
  },
47
47
  "dependencies": {},
48
48
  "devDependencies": {
49
- "@babel/core": "^7.15.8",
50
- "@babel/eslint-parser": "^7.15.8",
49
+ "@babel/core": "^7.20.12",
50
+ "@babel/eslint-parser": "^7.19.1",
51
51
  "@babel/plugin-syntax-top-level-await": "^7.14.5",
52
- "@commitlint/cli": "^13.2.1",
53
- "@commitlint/config-conventional": "^13.2.0",
54
- "@semantic-release/changelog": "^6.0.0",
55
- "@semantic-release/commit-analyzer": "^9.0.1",
56
- "@semantic-release/git": "^10.0.0",
57
- "@semantic-release/github": "^8.0.1",
58
- "@semantic-release/npm": "^8.0.2",
59
- "@semantic-release/release-notes-generator": "^10.0.2",
60
- "eslint": "^8.0.1",
61
- "eslint-plugin-jest": "^25.2.2",
52
+ "@commitlint/cli": "^17.4.2",
53
+ "@commitlint/config-conventional": "^17.4.2",
54
+ "@semantic-release/changelog": "^6.0.2",
55
+ "@semantic-release/commit-analyzer": "^9.0.2",
56
+ "@semantic-release/git": "^10.0.1",
57
+ "@semantic-release/github": "^8.0.7",
58
+ "@semantic-release/npm": "^9.0.2",
59
+ "@semantic-release/release-notes-generator": "^10.0.3",
60
+ "eslint": "^8.33.0",
61
+ "eslint-plugin-jest": "^27.2.1",
62
62
  "eslint-plugin-node": "^11.1.0",
63
- "eslint-plugin-security": "^1.4.0",
63
+ "eslint-plugin-security": "^1.7.1",
64
64
  "eslint-plugin-standard": "^4.1.0",
65
- "husky": "^7.0.4",
66
- "jest": "^27.3.1",
67
- "lint-staged": "^11.2.3",
68
- "lockfile-lint": "^4.6.2",
69
- "open-cli": "^7.0.1",
70
- "prettier": "^2.4.1"
65
+ "husky": "^8.0.3",
66
+ "jest": "^29.4.1",
67
+ "lint-staged": "^13.1.0",
68
+ "lockfile-lint": "^4.10.0",
69
+ "open-cli": "^7.1.0",
70
+ "prettier": "^2.8.3"
71
71
  },
72
72
  "jest": {
73
73
  "testEnvironment": "node",
@@ -93,10 +93,20 @@
93
93
  ]
94
94
  },
95
95
  "lint-staged": {
96
- "**/*.js": [
96
+ "**/*.{js,json}": [
97
97
  "<%= npmClient %> run format"
98
98
  ]
99
99
  },
100
+ "husky": {
101
+ "hooks": {
102
+ "commit-msg": "commitlint --env HUSKY_GIT_PARAMS",
103
+ "pre-commit": "lint-staged",
104
+ "pre-push": "<%= npmClient %> run lint && <%= npmClient %> run test",
105
+ "post-commit": "git status",
106
+ "post-checkout": "git status",
107
+ "post-merge": "<%= npmClient %> install"
108
+ }
109
+ },
100
110
  "commitlint": {
101
111
  "extends": [
102
112
  "@commitlint/config-conventional"