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 +7 -0
- package/package.json +1 -1
- package/saofile.js +9 -1
- package/template/.husky/commit-msg +1 -1
- package/template/.husky/post-merge +1 -1
- package/template/.husky/pre-commit +1 -1
- package/template/.husky/pre-push +1 -1
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
package/saofile.js
CHANGED
|
@@ -84,7 +84,8 @@ module.exports = {
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
actions() {
|
|
87
|
-
const
|
|
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
|
-
|
|
1
|
+
pnpm exec validate-conventional-commit < .git/COMMIT_EDITMSG
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
<%= npmClient %> install
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
pnpm exec lint-staged
|
package/template/.husky/pre-push
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
<%= npmClient %> run lint && <%= npmClient %> run test
|