@dword-design/base 11.2.5 → 11.2.6

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.
@@ -11,6 +11,7 @@ Object {
11
11
  "git": undefined,
12
12
  "gitignore": Array [],
13
13
  "macos": true,
14
+ "minNodeVersion": null,
14
15
  "name": "base-config-foo",
15
16
  "nodeVersion": 20,
16
17
  "preDeploySteps": Array [],
@@ -56,6 +57,7 @@ Object {
56
57
  "foo",
57
58
  ],
58
59
  "macos": true,
60
+ "minNodeVersion": null,
59
61
  "name": "base-config-foo",
60
62
  "nodeVersion": 10,
61
63
  "packageBaseConfig": Object {
@@ -82,6 +82,7 @@ Object {
82
82
  Object {
83
83
  "uses": "actions/setup-node@v4",
84
84
  "with": Object {
85
+ "check-latest": true,
85
86
  "node-version": "\${{ matrix.node }}",
86
87
  },
87
88
  },
@@ -231,6 +232,7 @@ Object {
231
232
  Object {
232
233
  "uses": "actions/setup-node@v4",
233
234
  "with": Object {
235
+ "check-latest": true,
234
236
  "node-version": "\${{ matrix.node }}",
235
237
  },
236
238
  },
@@ -376,6 +378,7 @@ Object {
376
378
  Object {
377
379
  "uses": "actions/setup-node@v4",
378
380
  "with": Object {
381
+ "check-latest": true,
379
382
  "node-version": "\${{ matrix.node }}",
380
383
  },
381
384
  },
@@ -463,6 +466,7 @@ Object {
463
466
  Object {
464
467
  "uses": "actions/setup-node@v4",
465
468
  "with": Object {
469
+ "check-latest": true,
466
470
  "node-version": 20,
467
471
  },
468
472
  },
@@ -615,6 +619,7 @@ Object {
615
619
  Object {
616
620
  "uses": "actions/setup-node@v4",
617
621
  "with": Object {
622
+ "check-latest": true,
618
623
  "node-version": "\${{ matrix.node }}",
619
624
  },
620
625
  },
@@ -765,6 +770,7 @@ Object {
765
770
  Object {
766
771
  "uses": "actions/setup-node@v4",
767
772
  "with": Object {
773
+ "check-latest": true,
768
774
  "node-version": "\${{ matrix.node }}",
769
775
  },
770
776
  },
@@ -1004,6 +1010,7 @@ Object {
1004
1010
  Object {
1005
1011
  "uses": "actions/setup-node@v4",
1006
1012
  "with": Object {
1013
+ "check-latest": true,
1007
1014
  "node-version": 14,
1008
1015
  },
1009
1016
  },
@@ -1099,6 +1106,7 @@ Object {
1099
1106
  Object {
1100
1107
  "uses": "actions/setup-node@v4",
1101
1108
  "with": Object {
1109
+ "check-latest": true,
1102
1110
  "node-version": 14,
1103
1111
  },
1104
1112
  },
@@ -51,6 +51,7 @@ export default (config => {
51
51
  }, {
52
52
  uses: gitHubAction`actions/setup-node@v4`,
53
53
  with: {
54
+ 'check-latest': true,
54
55
  'node-version': '${{ matrix.node }}'
55
56
  }
56
57
  }, {
@@ -18,6 +18,7 @@ export default (config => ({
18
18
  }, {
19
19
  uses: gitHubAction`actions/setup-node@v4`,
20
20
  with: {
21
+ 'check-latest': true,
21
22
  'node-version': config.nodeVersion
22
23
  }
23
24
  }, {
@@ -47,7 +47,7 @@ export default function () {
47
47
  }),
48
48
  author: 'Sebastian Landwehr <info@sebastianlandwehr.com>',
49
49
  engines: {
50
- node: `>=${this.config.supportedNodeVersions[0]}`
50
+ node: `>=${this.config.minNodeVersion || this.config.supportedNodeVersions[0]}`
51
51
  },
52
52
  files: ['dist', ...(fs.existsSync('types.d.ts') ? ['types.d.ts'] : [])],
53
53
  license: 'MIT',
@@ -0,0 +1 @@
1
+ export default ((name, content) => `(^|[^\\w])${name}\`${content}\``);
@@ -1,4 +1,5 @@
1
1
  import deepmerge from 'deepmerge';
2
+ import getRegexManagerString from "./get-regex-manager-string/index.js";
2
3
  export default function () {
3
4
  return deepmerge({
4
5
  extends: [':semanticCommits', ':semanticPrefixFix'],
@@ -18,8 +19,14 @@ export default function () {
18
19
  regexManagers: [{
19
20
  datasourceTemplate: 'github-tags',
20
21
  fileMatch: ['\\.js$'],
21
- matchStrings: ['(^|\\s)gitHubAction`(?<depName>.*?)@v(?<currentValue>.*?)`'],
22
+ matchStrings: [getRegexManagerString('gitHubAction', '(?<depName>.*?)@v(?<currentValue>.*?)')],
22
23
  versioningTemplate: 'npm'
24
+ }, {
25
+ datasourceTemplate: 'node-version',
26
+ depNameTemplate: 'node',
27
+ fileMatch: ['\\.js$'],
28
+ matchStrings: [getRegexManagerString('nodejsVersion', '(?<currentValue>.*?)')],
29
+ versioningTemplate: 'node'
23
30
  }],
24
31
  semanticCommitScope: null
25
32
  }, this.config.renovateConfig || {});
package/dist/index.js CHANGED
@@ -87,6 +87,7 @@ class Base {
87
87
  gitignore: [],
88
88
  lint: identity,
89
89
  macos: true,
90
+ minNodeVersion: null,
90
91
  nodeVersion: 20,
91
92
  preDeploySteps: [],
92
93
  prepare: identity,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "11.2.5",
3
+ "version": "11.2.6",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",
@@ -86,15 +86,16 @@
86
86
  "devDependencies": {
87
87
  "@babel/cli": "^7.6.4",
88
88
  "@dword-design/chdir": "^3.0.0",
89
+ "@dword-design/dotenv-json-extended": "^2.0.25",
89
90
  "@dword-design/tester": "^2.0.0",
90
91
  "@dword-design/tester-plugin-tmp-dir": "^2.0.0",
91
- "node-version": "^3.0.0",
92
92
  "p-event": "^6.0.0",
93
+ "renovate": "^39.9.5",
93
94
  "rimraf": "^5.0.1",
94
95
  "sharp": "^0.32.1",
95
96
  "unify-mocha-output": "^2.0.0"
96
97
  },
97
- "packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247",
98
+ "packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
98
99
  "engines": {
99
100
  "node": ">=18"
100
101
  },
@@ -1,216 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`index base 1`] = `
4
- Object {
5
- "extends": Array [
6
- ":semanticCommits",
7
- ":semanticPrefixFix",
8
- ],
9
- "gitIgnoredAuthors": Array [
10
- "actions@github.com",
11
- ],
12
- "github-actions": Object {
13
- "enabled": false,
14
- },
15
- "labels": Array [
16
- "maintenance",
17
- ],
18
- "lockFileMaintenance": Object {
19
- "automerge": true,
20
- "enabled": true,
21
- "semanticCommitType": "chore",
22
- },
23
- "rangeStrategy": "replace",
24
- "regexManagers": Array [
25
- Object {
26
- "datasourceTemplate": "github-tags",
27
- "fileMatch": Array [
28
- "\\\\.js$",
29
- ],
30
- "matchStrings": Array [
31
- "(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
32
- ],
33
- "versioningTemplate": "npm",
34
- },
35
- ],
36
- "semanticCommitScope": null,
37
- }
38
- `;
39
-
40
- exports[`index custom config 1`] = `
41
- Object {
42
- "extends": Array [
43
- ":semanticCommits",
44
- ":semanticPrefixFix",
45
- ],
46
- "foo": "bar",
47
- "gitIgnoredAuthors": Array [
48
- "actions@github.com",
49
- ],
50
- "github-actions": Object {
51
- "enabled": false,
52
- },
53
- "labels": Array [
54
- "maintenance",
55
- ],
56
- "lockFileMaintenance": Object {
57
- "automerge": true,
58
- "enabled": true,
59
- "semanticCommitType": "chore",
60
- },
61
- "rangeStrategy": "replace",
62
- "regexManagers": Array [
63
- Object {
64
- "datasourceTemplate": "github-tags",
65
- "fileMatch": Array [
66
- "\\\\.js$",
67
- ],
68
- "matchStrings": Array [
69
- "(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
70
- ],
71
- "versioningTemplate": "npm",
72
- },
73
- ],
74
- "semanticCommitScope": null,
75
- }
76
- `;
77
-
78
- exports[`index custom config array 1`] = `
79
- Object {
80
- "extends": Array [
81
- ":semanticCommits",
82
- ":semanticPrefixFix",
83
- ],
84
- "gitIgnoredAuthors": Array [
85
- "actions@github.com",
86
- ],
87
- "github-actions": Object {
88
- "enabled": false,
89
- },
90
- "labels": Array [
91
- "maintenance",
92
- "foo",
93
- ],
94
- "lockFileMaintenance": Object {
95
- "automerge": true,
96
- "enabled": true,
97
- "semanticCommitType": "chore",
98
- },
99
- "rangeStrategy": "replace",
100
- "regexManagers": Array [
101
- Object {
102
- "datasourceTemplate": "github-tags",
103
- "fileMatch": Array [
104
- "\\\\.js$",
105
- ],
106
- "matchStrings": Array [
107
- "(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
108
- ],
109
- "versioningTemplate": "npm",
110
- },
111
- ],
112
- "semanticCommitScope": null,
113
- }
114
- `;
115
-
116
- exports[`index lock file commit type 1`] = `
117
- Object {
118
- "extends": Array [
119
- ":semanticCommits",
120
- ],
121
- "ignorePaths": Array [
122
- ".github/workflows/build.yml",
123
- ],
124
- "labels": Array [
125
- "maintenance",
126
- ],
127
- "lockFileMaintenance": Object {
128
- "enabled": true,
129
- },
130
- "packageRules": Array [
131
- Object {
132
- "depTypeList": Array [
133
- "dependencies",
134
- "devDependencies",
135
- "peerDependencies",
136
- "optionalDependencies",
137
- ],
138
- "semanticCommitType": "fix",
139
- },
140
- ],
141
- "semanticCommitScope": null,
142
- }
143
- `;
144
-
145
- exports[`index lock file fix commit type 1`] = `
146
- Object {
147
- "extends": Array [
148
- ":semanticCommits",
149
- ":semanticPrefixFix",
150
- ],
151
- "gitIgnoredAuthors": Array [
152
- "actions@github.com",
153
- ],
154
- "github-actions": Object {
155
- "enabled": false,
156
- },
157
- "labels": Array [
158
- "maintenance",
159
- ],
160
- "lockFileMaintenance": Object {
161
- "automerge": true,
162
- "enabled": true,
163
- },
164
- "rangeStrategy": "replace",
165
- "regexManagers": Array [
166
- Object {
167
- "datasourceTemplate": "github-tags",
168
- "fileMatch": Array [
169
- "\\\\.js$",
170
- ],
171
- "matchStrings": Array [
172
- "(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
173
- ],
174
- "versioningTemplate": "npm",
175
- },
176
- ],
177
- "semanticCommitScope": null,
178
- }
179
- `;
180
-
181
- exports[`index not base 1`] = `
182
- Object {
183
- "extends": Array [
184
- ":semanticCommits",
185
- ":semanticPrefixFix",
186
- ],
187
- "gitIgnoredAuthors": Array [
188
- "actions@github.com",
189
- ],
190
- "github-actions": Object {
191
- "enabled": false,
192
- },
193
- "labels": Array [
194
- "maintenance",
195
- ],
196
- "lockFileMaintenance": Object {
197
- "automerge": true,
198
- "enabled": true,
199
- "semanticCommitType": "chore",
200
- },
201
- "rangeStrategy": "replace",
202
- "regexManagers": Array [
203
- Object {
204
- "datasourceTemplate": "github-tags",
205
- "fileMatch": Array [
206
- "\\\\.js$",
207
- ],
208
- "matchStrings": Array [
209
- "(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
210
- ],
211
- "versioningTemplate": "npm",
212
- },
213
- ],
214
- "semanticCommitScope": null,
215
- }
216
- `;