create-node-lib 2.10.1 → 2.11.1
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 +16 -0
- package/package.json +1 -1
- package/saofile.js +8 -1
- package/template/.github/workflows/markdown-lint.yml +1 -1
- package/template/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [2.11.1](https://github.com/lirantal/create-node-lib/compare/v2.11.0...v2.11.1) (2026-03-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Update markdownlint-cli version in package.json ([192bd88](https://github.com/lirantal/create-node-lib/commit/192bd88e1fad3db083e129a1cfc80ec0d7638ece))
|
|
7
|
+
* Update markdownlint-cli version to 0.48.0 ([f601761](https://github.com/lirantal/create-node-lib/commit/f6017616ed11c89184f201dd9dcb49d9de912954))
|
|
8
|
+
|
|
9
|
+
# [2.11.0](https://github.com/lirantal/create-node-lib/compare/v2.10.1...v2.11.0) (2026-03-09)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* auto set the remote properly post scaffold ([6c92b6a](https://github.com/lirantal/create-node-lib/commit/6c92b6ae8d4f47a7b1f4de5e26dd62fb82ad5abc))
|
|
15
|
+
* change to main branch post scaffold ([4e7c55d](https://github.com/lirantal/create-node-lib/commit/4e7c55d95db8a1dc34108b54314242a2cf0d0c57))
|
|
16
|
+
|
|
1
17
|
## [2.10.1](https://github.com/lirantal/create-node-lib/compare/v2.10.0...v2.10.1) (2026-03-09)
|
|
2
18
|
|
|
3
19
|
|
package/package.json
CHANGED
package/saofile.js
CHANGED
|
@@ -110,7 +110,14 @@ module.exports = {
|
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
async completed() {
|
|
113
|
-
|
|
113
|
+
const spawn = require('child_process').spawnSync
|
|
114
|
+
spawn('git', ['init', '-b', 'main'], { cwd: this.outDir })
|
|
115
|
+
|
|
116
|
+
const repoUrl = this.answers.projectRepository
|
|
117
|
+
if (repoUrl) {
|
|
118
|
+
const remoteUrl = repoUrl.endsWith('.git') ? repoUrl : `${repoUrl}.git`
|
|
119
|
+
spawn('git', ['remote', 'add', 'origin', remoteUrl], { cwd: this.outDir })
|
|
120
|
+
}
|
|
114
121
|
await this.npmInstall({ npmClient: this.answers.npmClient })
|
|
115
122
|
await this.npmInstall({ npmClient: this.answers.npmClient, args: ['run', 'prepare'] })
|
|
116
123
|
this.showProjectTips()
|
|
@@ -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'
|
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",
|