@w5s/mrm-preset 3.13.0 → 3.13.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.
@@ -45,5 +45,5 @@ If you think this is incorrect, verify your comment blocks in your src and the s
45
45
  💫 Results:
46
46
 
47
47
  ──────────────────────────────────────────────────────────
48
-  ✔ Markdown Magic Done. 0.07 seconds
48
+  ✔ Markdown Magic Done. 0.12 seconds
49
49
  ──────────────────────────────────────────────────────────
@@ -1,9 +1,6 @@
1
1
  $ pnpm run "/^lint:.*/"
2
2
  $ pnpm exec eslint .
3
3
 
4
- /home/runner/work/project-config/project-config/packages/mrm-preset/core/asdf.cjs
5
- 29:5 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
6
-
7
4
  /home/runner/work/project-config/project-config/packages/mrm-preset/core/eslint.cjs
8
5
  20:5 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
9
6
  24:5 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
@@ -38,5 +35,5 @@ $ pnpm exec eslint .
38
35
  /home/runner/work/project-config/project-config/packages/mrm-preset/project/index.cjs
39
36
  39:5 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
40
37
 
41
- ✖ 19 problems (0 errors, 19 warnings)
38
+ ✖ 18 problems (0 errors, 18 warnings)
42
39
 
@@ -0,0 +1,2 @@
1
+ $ pnpm run "/^typecheck:.*/"
2
+ $ pnpm exec tsc --noEmit
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.2](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@3.13.1...@w5s/mrm-preset@3.13.2) (2026-11-23)
7
+
8
+ **Note:** Version bump only for package @w5s/mrm-preset
9
+
10
+ ## [3.13.1](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@3.13.0...@w5s/mrm-preset@3.13.1) (2026-10-08)
11
+
12
+ **Note:** Version bump only for package @w5s/mrm-preset
13
+
6
14
  # [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
15
 
8
16
  ### ✨ Features
package/asdf/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
- const { asdfConfig } = require('../core/asdf.cjs');
1
+ const { toolVersionsSync } = require('@w5s/configurator-core');
2
2
 
3
3
  function task() {
4
- asdfConfig({
4
+ toolVersionsSync({
5
5
  state: 'present',
6
6
  update: (config) => ({
7
- nodejs: '18.17.0',
7
+ nodejs: '26.13.0',
8
8
  ...config,
9
9
  }),
10
10
  });
package/core/vscode.cjs CHANGED
@@ -41,14 +41,12 @@ function vscodeTask(newTask) {
41
41
  * @type {Array<{ script?: string } & Record<string, unknown>>}
42
42
  */
43
43
  const tasks = vscodeTaskFile.get('tasks', []);
44
- if (tasks.some((task) => task.script === newTask.script)) {
45
- vscodeTaskFile.set(
46
- 'tasks',
47
- tasks.map((task) => (task.script === newTask.script ? newTask : task)),
48
- );
49
- } else {
50
- vscodeTaskFile.set('tasks', [newTask, ...tasks]);
51
- }
44
+ vscodeTaskFile.set(
45
+ 'tasks',
46
+ tasks.some((task) => task.script === newTask.script)
47
+ ? tasks.map((task) => (task.script === newTask.script ? newTask : task))
48
+ : [newTask, ...tasks],
49
+ );
52
50
  vscodeTaskFile.save();
53
51
  }
54
52
  exports.vscodeTask = vscodeTask;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "3.13.0",
3
+ "version": "3.13.2",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -25,10 +25,10 @@
25
25
  "postpack": "clean-package restore"
26
26
  },
27
27
  "dependencies": {
28
- "@w5s/configurator-core": "^1.21.0",
29
- "@w5s/dev": "^7.0.0",
28
+ "@w5s/configurator-core": "^1.23.0",
29
+ "@w5s/dev": "^7.1.0",
30
30
  "debug": "^4.3.3",
31
- "glob": "^13.0.0",
31
+ "glob": "^14.0.0",
32
32
  "mrm-core": "^7.0.0",
33
33
  "semver-intersect": "^1.4.0",
34
34
  "sync-directory": "^6.0.0"
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "7ea7f0176cdd3156d9b24af722a38b280aa99427"
42
+ "gitHead": "8c839f967fbc4477af3e767c4ecfa2d8a693eda0"
43
43
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "3.13.0",
3
+ "version": "3.13.2",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -40,10 +40,10 @@
40
40
  "typecheck:src": "pnpm exec tsc --noEmit"
41
41
  },
42
42
  "dependencies": {
43
- "@w5s/configurator-core": "^1.21.0",
44
- "@w5s/dev": "^7.0.0",
43
+ "@w5s/configurator-core": "^1.23.0",
44
+ "@w5s/dev": "^7.1.0",
45
45
  "debug": "^4.3.3",
46
- "glob": "^13.0.0",
46
+ "glob": "^14.0.0",
47
47
  "mrm-core": "^7.0.0",
48
48
  "semver-intersect": "^1.4.0",
49
49
  "sync-directory": "^6.0.0"
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "7ea7f0176cdd3156d9b24af722a38b280aa99427"
63
+ "gitHead": "8c839f967fbc4477af3e767c4ecfa2d8a693eda0"
64
64
  }
package/core/asdf.cjs DELETED
@@ -1,44 +0,0 @@
1
- const { file } = require('mrm-core');
2
-
3
- const reToolVersion = /\s+/;
4
-
5
- /**
6
- * @typedef {{ [tool: string]: string }} ASDFConfig
7
- */
8
-
9
- /**
10
- * @param {{
11
- * state: 'present'|'absent',
12
- * update?: (config: ASDFConfig) => ASDFConfig
13
- * }} options
14
- */
15
- function asdfConfig({ state, update }) {
16
- const hasASDF = state === 'present';
17
- const toolVersionsFile = file('.tool-versions');
18
-
19
- if (hasASDF) {
20
- const eol = '\n';
21
- const content = toolVersionsFile.get();
22
- const parsed = Object.fromEntries(
23
- content
24
- .split(eol)
25
- .map((_) => _.split(reToolVersion, 2))
26
- .filter((_) => _[0] !== ''),
27
- );
28
-
29
- // @ts-ignore
30
- const updated = update ? update(parsed) : parsed;
31
-
32
- const formatted = Object.entries(updated)
33
- .map(([tool, value]) => `${tool} ${value}`)
34
- .join(eol);
35
-
36
- toolVersionsFile.save(formatted);
37
- } else {
38
- toolVersionsFile.delete();
39
- }
40
- }
41
-
42
- module.exports = {
43
- asdfConfig,
44
- };