create-node-lib 2.17.2 → 2.17.4

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
@@ -1,3 +1,18 @@
1
+ ## [2.17.4](https://github.com/lirantal/create-node-lib/compare/v2.17.3...v2.17.4) (2026-05-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * exclude pnpm-workspace.yaml when npm is selected as package manager ([#46](https://github.com/lirantal/create-node-lib/issues/46)) ([34891e1](https://github.com/lirantal/create-node-lib/commit/34891e1e9e1b5819ebea4dd36b6f42b3307d41e5))
7
+
8
+ ## [2.17.3](https://github.com/lirantal/create-node-lib/compare/v2.17.2...v2.17.3) (2026-05-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Add Node.js 24.x to CI workflow matrix ([#44](https://github.com/lirantal/create-node-lib/issues/44)) ([08d22e0](https://github.com/lirantal/create-node-lib/commit/08d22e0c5e2a6c87b7c745a80c5f73c7756b62cc))
14
+ * Update Node.js version in markdown-lint workflow ([#45](https://github.com/lirantal/create-node-lib/issues/45)) ([aa23714](https://github.com/lirantal/create-node-lib/commit/aa237145026a04fced12e03c6f617065704b61e0))
15
+
1
16
  ## [2.17.2](https://github.com/lirantal/create-node-lib/compare/v2.17.1...v2.17.2) (2026-05-03)
2
17
 
3
18
 
@@ -79,6 +79,28 @@ describe('all the template files are accountable for', () => {
79
79
  expect(pkg.scripts['lint:lockfile']).toEqual(mockScripts['lint:lockfile'])
80
80
  })
81
81
 
82
+ test('Generator includes pnpm-workspace.yaml when pnpm is selected', async () => {
83
+ const stream = await sao.mock(
84
+ { generator: template },
85
+ {
86
+ npmClient: 'pnpm'
87
+ }
88
+ )
89
+
90
+ expect(stream.fileList).toContain('pnpm-workspace.yaml')
91
+ })
92
+
93
+ test('Generator excludes pnpm-workspace.yaml when npm is selected', async () => {
94
+ const stream = await sao.mock(
95
+ { generator: template },
96
+ {
97
+ npmClient: 'npm'
98
+ }
99
+ )
100
+
101
+ expect(stream.fileList).not.toContain('pnpm-workspace.yaml')
102
+ })
103
+
82
104
  test('Generator input creates correct package.json scripts with npm as client', async () => {
83
105
  const mockScripts = {
84
106
  'lint:lockfile': 'lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-node-lib",
3
- "version": "2.17.2",
3
+ "version": "2.17.4",
4
4
  "description": "Scaffolding out a Node.js library module",
5
5
  "bin": "./bin/cli.js",
6
6
  "engines": {
package/saofile.js CHANGED
@@ -115,7 +115,15 @@ module.exports = {
115
115
  gitignore: '.gitignore',
116
116
  npmrc: '.npmrc'
117
117
  }
118
- }
118
+ },
119
+ ...(npmClient !== 'pnpm'
120
+ ? [
121
+ {
122
+ type: 'remove',
123
+ files: 'pnpm-workspace.yaml'
124
+ }
125
+ ]
126
+ : [])
119
127
  ]
120
128
  },
121
129
  async completed() {
@@ -6,7 +6,7 @@ jobs:
6
6
  test:
7
7
  strategy:
8
8
  matrix:
9
- node: ["22.x"]
9
+ node: ["22.x", "24.x"]
10
10
  platform: [ubuntu-latest]
11
11
  name: Node v${{matrix.node}} ((${{matrix.platform}}))
12
12
  runs-on: ${{matrix.platform}}
@@ -18,7 +18,7 @@ jobs:
18
18
  - name: Setup Node.js
19
19
  uses: actions/setup-node@v6
20
20
  with:
21
- node-version: '22'
21
+ node-version: '24'
22
22
  cache: 'pnpm'
23
23
 
24
24
  - name: install dependencies