create-node-lib 2.11.0 → 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 +15 -0
- package/package.json +1 -1
- package/saofile.js +9 -1
- package/template/.github/workflows/markdown-lint.yml +1 -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/template/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
8
|
+
## [2.11.1](https://github.com/lirantal/create-node-lib/compare/v2.11.0...v2.11.1) (2026-03-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Update markdownlint-cli version in package.json ([192bd88](https://github.com/lirantal/create-node-lib/commit/192bd88e1fad3db083e129a1cfc80ec0d7638ece))
|
|
14
|
+
* Update markdownlint-cli version to 0.48.0 ([f601761](https://github.com/lirantal/create-node-lib/commit/f6017616ed11c89184f201dd9dcb49d9de912954))
|
|
15
|
+
|
|
1
16
|
# [2.11.0](https://github.com/lirantal/create-node-lib/compare/v2.10.1...v2.11.0) (2026-03-09)
|
|
2
17
|
|
|
3
18
|
|
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
|
},
|
|
@@ -26,4 +26,4 @@ jobs:
|
|
|
26
26
|
|
|
27
27
|
- name: Markdown Lint
|
|
28
28
|
run: |
|
|
29
|
-
pnpm run lint:markdown || pnpx -y markdownlint-cli@0.
|
|
29
|
+
pnpm run lint:markdown || pnpx -y markdownlint-cli@0.48.0 -c .github/.markdownlint.yml -i '.git' -i '__tests__' -i '.github' -i '.changeset' -i 'CODE_OF_CONDUCT.md' -i 'CHANGELOG.md' -i 'node_modules' -i 'dist' '**/**.md'
|
|
@@ -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
|
package/template/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"start": "node --import tsx src/bin/cli.ts",
|
|
39
39
|
"build": "tsc && tsup",
|
|
40
40
|
"lint": "eslint . && npm run lint:lockfile && npm run lint:markdown",
|
|
41
|
-
"lint:markdown": "npx -y markdownlint-cli@0.
|
|
41
|
+
"lint:markdown": "npx -y markdownlint-cli@0.48.0 -c .github/.markdownlint.yml -i '.git' -i '__tests__' -i '.github' -i '.changeset' -i 'CODE_OF_CONDUCT.md' -i 'CHANGELOG.md' -i 'docs/**' -i 'node_modules' -i 'dist' '**/**.md' --fix",
|
|
42
42
|
"lint:fix": "eslint . --fix",
|
|
43
43
|
"lint:lockfile": "lockfile-lint --path pnpm-lock.yaml --validate-https --allowed-hosts npm",
|
|
44
44
|
"test": "c8 node --import tsx --test __tests__/**/*.test.ts",
|