create-node-lib 2.17.1 → 2.17.3

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,18 @@
1
+ ## [2.17.3](https://github.com/lirantal/create-node-lib/compare/v2.17.2...v2.17.3) (2026-05-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add Node.js 24.x to CI workflow matrix ([#44](https://github.com/lirantal/create-node-lib/issues/44)) ([08d22e0](https://github.com/lirantal/create-node-lib/commit/08d22e0c5e2a6c87b7c745a80c5f73c7756b62cc))
7
+ * Update Node.js version in markdown-lint workflow ([#45](https://github.com/lirantal/create-node-lib/issues/45)) ([aa23714](https://github.com/lirantal/create-node-lib/commit/aa237145026a04fced12e03c6f617065704b61e0))
8
+
9
+ ## [2.17.2](https://github.com/lirantal/create-node-lib/compare/v2.17.1...v2.17.2) (2026-05-03)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add Snyk CLI installation to post-create script ([5a40220](https://github.com/lirantal/create-node-lib/commit/5a40220e07daad422eac8a0666eb28602caa1043))
15
+
1
16
  ## [2.17.1](https://github.com/lirantal/create-node-lib/compare/v2.17.0...v2.17.1) (2026-05-03)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-node-lib",
3
- "version": "2.17.1",
3
+ "version": "2.17.3",
4
4
  "description": "Scaffolding out a Node.js library module",
5
5
  "bin": "./bin/cli.js",
6
6
  "engines": {
@@ -8,6 +8,7 @@ main() {
8
8
  install_apm
9
9
  # install_opencode_cli
10
10
  install_1password_cli
11
+ install_snyk_cli
11
12
  run_deps_install
12
13
  }
13
14
 
@@ -28,9 +29,21 @@ install_opencode_cli() {
28
29
  curl -fsSL https://opencode.ai/install | bash
29
30
  }
30
31
 
31
- # Optional: Snyk CLI
32
- # curl --compressed https://static.snyk.io/cli/latest/snyk-linux-arm64 -o snyk
33
- # chmod +x ./snyk && sudo mv -f ./snyk /usr/local/bin/snyk
32
+ install_snyk_cli() {
33
+ # https://docs.snyk.io/snyk-cli/install-the-snyk-cli
34
+ local url
35
+ case "$(uname -m)" in
36
+ aarch64 | arm64) url="https://static.snyk.io/cli/latest/snyk-linux-arm64" ;;
37
+ x86_64 | amd64) url="https://static.snyk.io/cli/latest/snyk-linux" ;;
38
+ *)
39
+ echo "post-create: skipping Snyk CLI (unsupported arch: $(uname -m))" >&2
40
+ return 0
41
+ ;;
42
+ esac
43
+ curl --compressed -fsSL "${url}" -o /tmp/snyk
44
+ chmod +x /tmp/snyk
45
+ sudo mv -f /tmp/snyk /usr/local/bin/snyk
46
+ }
34
47
 
35
48
  install_1password_cli() {
36
49
  local op_version="2.32.1"
@@ -6,7 +6,7 @@ jobs:
6
6
  test:
7
7
  strategy:
8
8
  matrix:
9
- node: ["22.x"]
9
+ node: ["22.x", "24.x"]
10
10
  platform: [ubuntu-latest]
11
11
  name: Node v${{matrix.node}} ((${{matrix.platform}}))
12
12
  runs-on: ${{matrix.platform}}
@@ -18,7 +18,7 @@ jobs:
18
18
  - name: Setup Node.js
19
19
  uses: actions/setup-node@v6
20
20
  with:
21
- node-version: '22'
21
+ node-version: '24'
22
22
  cache: 'pnpm'
23
23
 
24
24
  - name: install dependencies