create-node-lib 2.15.0 → 2.15.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,17 @@
1
+ ## [2.15.2](https://github.com/lirantal/create-node-lib/compare/v2.15.1...v2.15.2) (2026-04-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * only run git repo commands if git is detected ([7928a69](https://github.com/lirantal/create-node-lib/commit/7928a69b5fb35d3a9c36f6be46d485ab78f19f49))
7
+
8
+ ## [2.15.1](https://github.com/lirantal/create-node-lib/compare/v2.15.0...v2.15.1) (2026-04-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * chmod executables in template devcontainer ([0115d86](https://github.com/lirantal/create-node-lib/commit/0115d86e4a838e45f2916a6eb7363e25e1488182))
14
+
1
15
  # [2.15.0](https://github.com/lirantal/create-node-lib/compare/v2.14.0...v2.15.0) (2026-04-10)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-node-lib",
3
- "version": "2.15.0",
3
+ "version": "2.15.2",
4
4
  "description": "Scaffolding out a Node.js library module",
5
5
  "bin": "./bin/cli.js",
6
6
  "engines": {
@@ -25,7 +25,6 @@
25
25
  // ],
26
26
  // --
27
27
  "postCreateCommand": {
28
- "git-setup": "git config --local commit.gpgsign false; git config --local core.pager \"less -R\";",
29
28
  "pnpm-install": "[ -f package.json ] && pnpm install || true",
30
29
  "post-create": "bash .devcontainer/post-create.sh"
31
30
  },
@@ -1,6 +1,12 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
+ # Local git prefs only apply inside a repository; skip when there is no .git (avoids postCreate failure).
5
+ if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
6
+ git config --local commit.gpgsign false
7
+ git config --local core.pager 'less -R'
8
+ fi
9
+
4
10
  # install apm (the Agent Package Manager: https://github.com/microsoft/apm)
5
11
  curl -sSL https://aka.ms/apm-unix | sh
6
12
 
File without changes