@w5s/mrm-preset 3.11.0 β 3.13.0
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/.turbo/turbo-docs.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +2 -2
- package/CHANGELOG.md +24 -0
- package/contributing/index.cjs +13 -11
- package/core/jsonFile.cjs +1 -5
- package/core/npm.cjs +5 -17
- package/core/pkg.cjs +2 -10
- package/package.json +4 -4
- package/package.json.backup +4 -4
- package/renovate/index.cjs +19 -20
package/.turbo/turbo-docs.log
CHANGED
|
@@ -45,5 +45,5 @@ If you think this is incorrect, verify your comment blocks in your src and the s
|
|
|
45
45
|
[96mπ« Results:[39m
|
|
46
46
|
|
|
47
47
|
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
48
|
-
[92m β Markdown Magic Done. 0.
|
|
48
|
+
[92m β Markdown Magic Done. 0.07 seconds[39m
|
|
49
49
|
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -27,7 +27,7 @@ $ pnpm exec eslint .
|
|
|
27
27
|
20:1 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free jsdoc/ts-ban-ts-comment
|
|
28
28
|
22:1 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free jsdoc/ts-ban-ts-comment
|
|
29
29
|
24:1 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free jsdoc/ts-ban-ts-comment
|
|
30
|
-
|
|
30
|
+
327:3 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free jsdoc/ts-ban-ts-comment
|
|
31
31
|
|
|
32
32
|
/home/runner/work/project-config/project-config/packages/mrm-preset/core/pkg.cjs
|
|
33
33
|
11:1 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free jsdoc/ts-ban-ts-comment
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
$ pnpm run "/^test:.*/"
|
|
2
2
|
$ mkdir -p .temp; cd .temp; mrm bootstrap --dir ..; mrm configure --dir ..
|
|
3
3
|
|
|
4
|
-
|
|
5
4
|
[1m[31mTask βbootstrapβ not found.
|
|
6
5
|
|
|
7
6
|
Weβve tried these locations:
|
|
@@ -14,10 +13,12 @@ Weβve tried these locations:
|
|
|
14
13
|
- bootstrap package in local node_modules
|
|
15
14
|
- mrm-task-bootstrap package on the npm registry
|
|
16
15
|
- bootstrap package on the npm registry[22m[39m
|
|
16
|
+
|
|
17
17
|
[33mRunning alias configure...[39m
|
|
18
18
|
[36mRunning gitignore...[39m
|
|
19
19
|
[32mCreate .gitignore[39m
|
|
20
20
|
|
|
21
|
+
|
|
21
22
|
[1m[31mTask βprojectβ not found.
|
|
22
23
|
|
|
23
24
|
Weβve tried these locations:
|
|
@@ -30,4 +31,3 @@ Weβve tried these locations:
|
|
|
30
31
|
- project package in local node_modules
|
|
31
32
|
- mrm-task-project package on the npm registry
|
|
32
33
|
- project package on the npm registry[22m[39m
|
|
33
|
-
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.13.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@3.5.1...@w5s/mrm-preset@3.13.0) (2026-10-02)
|
|
7
|
+
|
|
8
|
+
### β¨ Features
|
|
9
|
+
|
|
10
|
+
- Add lefthook-config ([d8b837c](https://github.com/w5s/project-config/commit/d8b837c))
|
|
11
|
+
|
|
12
|
+
### π Bug Fixes
|
|
13
|
+
|
|
14
|
+
- Fix ignored changelog files ([104fada](https://github.com/w5s/project-config/commit/104fada))
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @w5s/mrm-preset
|
|
17
|
+
|
|
18
|
+
# [3.12.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@3.5.1...@w5s/mrm-preset@3.12.0) (2026-10-01)
|
|
19
|
+
|
|
20
|
+
### β¨ Features
|
|
21
|
+
|
|
22
|
+
- Add lefthook-config ([d8b837c](https://github.com/w5s/project-config/commit/d8b837c))
|
|
23
|
+
|
|
24
|
+
### π Bug Fixes
|
|
25
|
+
|
|
26
|
+
- Fix ignored changelog files ([104fada](https://github.com/w5s/project-config/commit/104fada))
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @w5s/mrm-preset
|
|
29
|
+
|
|
6
30
|
# [3.11.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@3.5.1...@w5s/mrm-preset@3.11.0) (2026-09-22)
|
|
7
31
|
|
|
8
32
|
### β¨ Features
|
package/contributing/index.cjs
CHANGED
|
@@ -3,22 +3,24 @@ const path = require('node:path');
|
|
|
3
3
|
|
|
4
4
|
function task() {
|
|
5
5
|
// code of conduct
|
|
6
|
-
const EOL = '\n';
|
|
7
6
|
const codeOfConduct = 'CODE_OF_CONDUCT.md';
|
|
8
7
|
const codeOfConductFile = file(codeOfConduct);
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
if (codeOfConductFile.exists() && codeOfConductFile.get().includes(`<!-- EditMode: MANUAL -->`)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const EOL = '\n';
|
|
12
|
+
|
|
13
|
+
const codeOfConductTemplate = file(path.join(__dirname, 'templates', codeOfConduct)).get();
|
|
14
|
+
codeOfConductFile.save(
|
|
15
|
+
[
|
|
16
|
+
`<!--
|
|
14
17
|
Generated by mrm
|
|
15
18
|
* change EditMode: MANUAL to avoid overwriting by mrm
|
|
16
19
|
-->`,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
20
|
+
`<!-- EditMode: AUTO -->`,
|
|
21
|
+
codeOfConductTemplate,
|
|
22
|
+
].join(EOL),
|
|
23
|
+
);
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
task.description = 'Setup Contributing';
|
package/core/jsonFile.cjs
CHANGED
package/core/npm.cjs
CHANGED
|
@@ -106,10 +106,7 @@ function detectPackageManager() {
|
|
|
106
106
|
if (isUsingYarn()) {
|
|
107
107
|
return 'yarn';
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
return 'pnpm';
|
|
111
|
-
}
|
|
112
|
-
return 'npm';
|
|
109
|
+
return isUsingPnpm() ? 'pnpm' : 'npm';
|
|
113
110
|
}
|
|
114
111
|
|
|
115
112
|
/**
|
|
@@ -174,14 +171,9 @@ function getUnsatisfiedDeps(deps, versions, options) {
|
|
|
174
171
|
return true;
|
|
175
172
|
}
|
|
176
173
|
|
|
177
|
-
//
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
return !installed;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// Install if installed version doesn't satisfy range
|
|
184
|
-
return !semver.satisfies(installed, required);
|
|
174
|
+
// Keep the installed package when no version is required.
|
|
175
|
+
// Otherwise reinstall when the installed version does not satisfy the range.
|
|
176
|
+
return required ? !semver.satisfies(installed, required) : !installed;
|
|
185
177
|
});
|
|
186
178
|
}
|
|
187
179
|
|
|
@@ -196,11 +188,7 @@ function getVersionedDep(dep, versions) {
|
|
|
196
188
|
if (!validateNpmPackageName(dep).validForNewPackages) {
|
|
197
189
|
// If we were explicitly passed a version, attempt to
|
|
198
190
|
// load it via the `#semver:<semver>` syntax.
|
|
199
|
-
|
|
200
|
-
return `${dep}#semver:${versions[dep]}`;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
return dep;
|
|
191
|
+
return versions[dep] ? `${dep}#semver:${versions[dep]}` : dep;
|
|
204
192
|
}
|
|
205
193
|
const version = versions[dep] || 'latest';
|
|
206
194
|
|
package/core/pkg.cjs
CHANGED
|
@@ -26,11 +26,7 @@ function archetype(packageFile) {
|
|
|
26
26
|
if (hasWorkspaces(packageFile)) {
|
|
27
27
|
return 'workspace';
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
return 'application';
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return 'library';
|
|
29
|
+
return packageFile.get('private') === true || (packageFile.get('main') == null && packageFile.get('exports')) ? 'application' : 'library';
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
/**
|
|
@@ -164,11 +160,7 @@ function manager(packageFile) {
|
|
|
164
160
|
if (file('package-lock.json').exists()) {
|
|
165
161
|
return 'npm';
|
|
166
162
|
}
|
|
167
|
-
|
|
168
|
-
return 'pnpm';
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
return defaultManager;
|
|
163
|
+
return file('pnpm-lock.yaml').exists() ? 'pnpm' : defaultManager;
|
|
172
164
|
}
|
|
173
165
|
|
|
174
166
|
module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/mrm-preset",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"description": "Mrm configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mrm",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"postpack": "clean-package restore"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@w5s/configurator-core": "^1.
|
|
29
|
-
"@w5s/dev": "^
|
|
28
|
+
"@w5s/configurator-core": "^1.21.0",
|
|
29
|
+
"@w5s/dev": "^7.0.0",
|
|
30
30
|
"debug": "^4.3.3",
|
|
31
31
|
"glob": "^13.0.0",
|
|
32
32
|
"mrm-core": "^7.0.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7ea7f0176cdd3156d9b24af722a38b280aa99427"
|
|
43
43
|
}
|
package/package.json.backup
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/mrm-preset",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"description": "Mrm configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mrm",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"typecheck:src": "pnpm exec tsc --noEmit"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@w5s/configurator-core": "^1.
|
|
44
|
-
"@w5s/dev": "^
|
|
43
|
+
"@w5s/configurator-core": "^1.21.0",
|
|
44
|
+
"@w5s/dev": "^7.0.0",
|
|
45
45
|
"debug": "^4.3.3",
|
|
46
46
|
"glob": "^13.0.0",
|
|
47
47
|
"mrm-core": "^7.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "7ea7f0176cdd3156d9b24af722a38b280aa99427"
|
|
64
64
|
}
|
package/renovate/index.cjs
CHANGED
|
@@ -19,27 +19,26 @@ function createRenovate({ renovatePresetApplication, renovatePresetLibrary }) {
|
|
|
19
19
|
*/
|
|
20
20
|
function task({ renovatePreset }) {
|
|
21
21
|
const gitSupported = hasGit();
|
|
22
|
+
if (!gitSupported) return;
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
renovateFile.save();
|
|
42
|
-
}
|
|
24
|
+
const packageFile = packageJson();
|
|
25
|
+
const packageArchetype = pkg.archetype(packageFile);
|
|
26
|
+
const renovatePresetResolved =
|
|
27
|
+
renovatePreset || (packageArchetype === 'application' ? renovatePresetApplication : renovatePresetLibrary);
|
|
28
|
+
const renovateFile = json('renovate.json');
|
|
29
|
+
renovateFile.merge({
|
|
30
|
+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
|
31
|
+
});
|
|
32
|
+
renovateFile.set(
|
|
33
|
+
'extends',
|
|
34
|
+
[renovatePresetResolved, ...renovateFile.get('extends', []).filter(
|
|
35
|
+
/**
|
|
36
|
+
* @param {string} extension
|
|
37
|
+
*/
|
|
38
|
+
(extension) => extension !== renovatePresetApplication && extension !== renovatePresetLibrary,
|
|
39
|
+
)],
|
|
40
|
+
);
|
|
41
|
+
renovateFile.save();
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
task.description = 'Setup Renovate';
|