create-node-lib 2.11.1 → 2.11.2

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,10 @@
1
+ ## [2.11.2](https://github.com/lirantal/create-node-lib/compare/v2.11.1...v2.11.2) (2026-03-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * migration to pnpm in hooks and lockfile ([249a50e](https://github.com/lirantal/create-node-lib/commit/249a50ed71a00abd37ccf1987b6c9a33d00745d9))
7
+
1
8
  ## [2.11.1](https://github.com/lirantal/create-node-lib/compare/v2.11.0...v2.11.1) (2026-03-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-node-lib",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "description": "Scaffolding out a Node.js library module",
5
5
  "bin": "./bin/cli.js",
6
6
  "engines": {
package/saofile.js CHANGED
@@ -84,7 +84,8 @@ module.exports = {
84
84
  ]
85
85
  },
86
86
  actions() {
87
- const lockfile = this.answers.npmClient === 'pnpm' ? 'pnpm-lock.yaml' : 'package-lock.json'
87
+ const npmClient = this.answers.npmClient
88
+ const lockfile = npmClient === 'pnpm' ? 'pnpm-lock.yaml' : 'package-lock.json'
88
89
  return [
89
90
  {
90
91
  type: 'add',
@@ -98,6 +99,13 @@ module.exports = {
98
99
  data.scripts[
99
100
  'lint:lockfile'
100
101
  ] = `lockfile-lint --path ${lockfile} --validate-https --allowed-hosts npm`
102
+ data.scripts['lint'] = `eslint . && ${npmClient} run lint:lockfile && ${npmClient} run lint:markdown`
103
+ data['lint-staged'] = {
104
+ '**/*.{js,json}': [`${npmClient} run lint:fix`]
105
+ }
106
+ if (npmClient !== 'pnpm') {
107
+ delete data.packageManager
108
+ }
101
109
  return data
102
110
  }
103
111
  },
@@ -1 +1 @@
1
- npx --no validate-conventional-commit < .git/COMMIT_EDITMSG
1
+ pnpm exec validate-conventional-commit < .git/COMMIT_EDITMSG
@@ -1 +1 @@
1
- npm install
1
+ <%= npmClient %> install
@@ -1 +1 @@
1
- npx --no-install lint-staged
1
+ pnpm exec lint-staged
@@ -1 +1 @@
1
- npm run lint && npm run test
1
+ <%= npmClient %> run lint && <%= npmClient %> run test