@w5s/mrm-preset 2.8.1 → 2.8.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.
@@ -1,6 +1,6 @@
1
1
 
2
- 
3
- > @w5s/mrm-preset@2.8.0 build:tsc
2
+ ⠙⠹⠸
3
+ > @w5s/mrm-preset@2.8.2 build:tsc
4
4
  > tsc
5
5
 
6
6
  ⠙⠙
@@ -1,6 +1,6 @@
1
1
 
2
- ⠙
3
- > @w5s/mrm-preset@2.8.0 lint:src
2
+ ⠙⠹⠸⠼⠴⠦⠙⠹⠸⠼
3
+ > @w5s/mrm-preset@2.8.2 lint:src
4
4
  > eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
5
5
 
6
- ⠙⠙
6
+ ⠼⠙⠙
@@ -1,4 +1,4 @@
1
1
 
2
- > @w5s/mrm-preset@2.8.1 prepare:empty
2
+ > @w5s/mrm-preset@2.8.3 prepare:empty
3
3
  > :
4
4
 
@@ -1,100 +1,27 @@
1
1
 
2
- 
3
- > @w5s/mrm-preset@2.8.0 test:script
2
+ ⠙
3
+ > @w5s/mrm-preset@2.8.2 test:script
4
4
  > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
5
5
 
6
6
  mkdir: _tester: File exists
7
7
  Running bootstrap...
8
- Update package.json
9
8
  Running alias configure...
10
9
  Running gitignore...
11
10
  Running project...
12
- Update package.json
13
- Create turbo.json
14
- Installing turbo...
15
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸
16
- added 2 packages, and audited 3 packages in 1s
17
- ⠸
18
- found 0 vulnerabilities
19
- ⠸Installing npm-run-all2...
20
- ⠙⠹⠸⠼⠴⠦⠧⠇
21
- added 17 packages, and audited 20 packages in 964ms
22
- ⠇
23
- ⠇3 packages are looking for funding
24
- ⠇ run `npm fund` for details
25
- ⠇
26
- found 0 vulnerabilities
27
- ⠇Installing @w5s/conventional-changelog...
28
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙
29
- added 10 packages, and audited 30 packages in 4s
30
- ⠙
31
- ⠙5 packages are looking for funding
32
- ⠙ run `npm fund` for details
33
- ⠙
34
- found 0 vulnerabilities
35
- ⠙Create .vscode/tasks.json
36
- Update .vscode/tasks.json
37
11
  Running contributing...
38
- Create CODE_OF_CONDUCT.md
39
12
  Running licenses...
40
13
  Running asdf...
41
- Create .tool-versions
42
14
  Running release...
43
- Update package.json
44
- Installing semantic-release and @semantic-release/gitlab-config...
45
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋npm warn deprecated read-pkg-up@11.0.0: Renamed to read-package-up
46
- ⠋⠙⠹⠸⠼⠴⠦
47
- added 321 packages, and audited 551 packages in 7s
48
- ⠦
49
- ⠦107 packages are looking for funding
50
- ⠦ run `npm fund` for details
51
- ⠦
52
- found 0 vulnerabilities
53
- ⠦Update package.json
54
15
  Running ci...
55
16
  Running lang...
56
- Create tsconfig.settings.json
57
- Create tsconfig.json
58
- Create src/index.ts
59
- Create src/index.spec.ts
60
- Update package.json
61
- Installing ts-node-dev and tsconfig-paths...
62
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
63
- ⠋npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
64
- ⠋npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
65
- ⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹
66
- added 53 packages, and audited 604 packages in 4s
67
- ⠹
68
- ⠹113 packages are looking for funding
69
- ⠹ run `npm fund` for details
70
- ⠹
71
- found 0 vulnerabilities
72
- ⠹Installing typescript, @types/node, and @w5s/ts-config...
73
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴
74
- added 2 packages, and audited 606 packages in 5s
75
- ⠴
76
- ⠴113 packages are looking for funding
77
- ⠴ run `npm fund` for details
78
- ⠴
79
- found 0 vulnerabilities
80
- ⠴Running commitlint...
81
- Create .vscode/extensions.json
17
+ Running commitlint...
82
18
  Running editorconfig...
83
- Update .vscode/extensions.json
84
19
  Running eslint...
85
- Installing eslint and prettier...
86
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦
87
- added 61 packages, and audited 667 packages in 2s
88
- ⠦
89
- ⠦131 packages are looking for funding
90
- ⠦ run `npm fund` for details
91
- ⠦
92
- found 0 vulnerabilities
93
- ⠦Installing @w5s/eslint-config...
94
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏npm error code ERESOLVE
95
- ⠏npm error ERESOLVE could not resolve
96
- ⠏npm error
97
- ⠏npm error While resolving: @w5s/eslint-config@2.0.31
20
+ Installing @w5s/eslint-config...
21
+ ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇npm error code ERESOLVE
22
+ ⠇npm error ERESOLVE could not resolve
23
+ ⠇npm error
24
+ ⠇npm error While resolving: @w5s/eslint-config@2.1.1
98
25
  npm error Found: eslint@9.11.1
99
26
  npm error node_modules/eslint
100
27
  npm error peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.4.0
@@ -104,57 +31,26 @@ found 0 vulnerabilities
104
31
  npm error 2 more (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
105
32
  npm error
106
33
  npm error Could not resolve dependency:
107
- npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.31
34
+ npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.1.1
108
35
  npm error node_modules/@w5s/eslint-config
109
- npm error dev @w5s/eslint-config@"2.0.31" from the root project
36
+ npm error dev @w5s/eslint-config@"2.1.1" from the root project
110
37
  npm error
111
38
  npm error Conflicting peer dependency: eslint@8.57.1
112
39
  npm error node_modules/eslint
113
- npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.31
40
+ npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.1.1
114
41
  npm error node_modules/@w5s/eslint-config
115
- npm error dev @w5s/eslint-config@"2.0.31" from the root project
42
+ npm error dev @w5s/eslint-config@"2.1.1" from the root project
116
43
  npm error
117
44
  npm error Fix the upstream dependency conflict, or retry
118
45
  npm error this command with --force or --legacy-peer-deps
119
46
  npm error to accept an incorrect (and potentially broken) dependency resolution.
120
- ⠏npm error
47
+ ⠇npm error
121
48
  npm error
122
49
  npm error For a full report see:
123
- npm error /Users/julienpolo/.npm/_logs/2024-09-24T09_13_19_632Z-eresolve-report.txt
124
- ⠏npm error A complete log of this run can be found in: /Users/julienpolo/.npm/_logs/2024-09-24T09_13_19_632Z-debug-0.log
125
- ⠏Update package.json
126
- Update package.json
127
- Update .vscode/extensions.json
128
- Create .vscode/settings.json
129
- Running cspell...
130
- Create .cspell.json
131
- Installing cspell...
132
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧
133
- added 98 packages, and audited 765 packages in 3s
134
- ⠧
135
- ⠧138 packages are looking for funding
136
- ⠧ run `npm fund` for details
137
- ⠧
138
- found 0 vulnerabilities
139
- ⠧Installing @w5s/cspell-config...
140
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸
141
- added 1 package, and audited 766 packages in 4s
142
- ⠸
143
- ⠸138 packages are looking for funding
144
- ⠸ run `npm fund` for details
145
- ⠸
146
- found 0 vulnerabilities
147
- ⠸Update package.json
50
+ npm error /Users/julienpolo/.npm/_logs/2024-09-26T09_50_19_400Z-eresolve-report.txt
51
+ ⠇npm error A complete log of this run can be found in: /Users/julienpolo/.npm/_logs/2024-09-26T09_50_19_400Z-debug-0.log
52
+ ⠇Running cspell...
148
53
  Running vitest...
149
- Installing vite and vitest...
150
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴
151
- added 38 packages, and audited 804 packages in 5s
152
- ⠴
153
- ⠴150 packages are looking for funding
154
- ⠴ run `npm fund` for details
155
- ⠴
156
- found 0 vulnerabilities
157
- ⠴Update package.json
158
54
  Running renovate...
159
55
  Running githooks...
160
56
  Running post-configure...
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
+ ## [2.8.3](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@2.8.2...@w5s/mrm-preset@2.8.3) (2024-09-26)
7
+
8
+ **Note:** Version bump only for package @w5s/mrm-preset
9
+
10
+ ## [2.8.2](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@2.8.1...@w5s/mrm-preset@2.8.2) (2024-09-25)
11
+
12
+ **Note:** Version bump only for package @w5s/mrm-preset
13
+
6
14
  ## [2.8.1](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@2.8.0...@w5s/mrm-preset@2.8.1) (2024-09-24)
7
15
 
8
16
  **Note:** Version bump only for package @w5s/mrm-preset
@@ -13,7 +13,7 @@
13
13
  when: always
14
14
  - when: never
15
15
  image:
16
- name: renovate/renovate@sha256:51247c8ad752c71fb218c50c33d7c5497574cb0ff74a66fd3f6e0f744c3da923
16
+ name: renovate/renovate@sha256:dd317415f5d51de656283e1836c07d5f787a3ddff8d6e41cabe2e1e183c3cac4
17
17
  entrypoint: ['']
18
18
  script:
19
19
  - >
package/core/jsonFile.js CHANGED
@@ -35,7 +35,7 @@ function setValue(jsonFile, path, pathValue) {
35
35
  * @param {{
36
36
  * path: undefined | string | string[],
37
37
  * state: 'present'|'absent',
38
- * update?: T | ((previousValue: T) => T)
38
+ * update?: T | ((previousValue: T) => T) | undefined
39
39
  * default?: T | (() => T)
40
40
  * }} options
41
41
  */
@@ -8,7 +8,7 @@ const jsonFile = require('./jsonFile.js');
8
8
  /**
9
9
  * @param {{
10
10
  * state: 'present'|'absent',
11
- * update?: (config: LintStagedConfig) => LintStagedConfig
11
+ * update?: ((config: LintStagedConfig) => LintStagedConfig) | undefined
12
12
  * }} options
13
13
  */
14
14
  function lintStaged({ state, update }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -24,7 +24,7 @@
24
24
  "postpack": "npx clean-package restore"
25
25
  },
26
26
  "dependencies": {
27
- "@w5s/dev": "^2.2.13",
27
+ "@w5s/dev": "^2.2.14",
28
28
  "debug": "^4.3.3",
29
29
  "glob": "^11.0.0",
30
30
  "mrm-core": "^7.0.0",
@@ -38,5 +38,5 @@
38
38
  "access": "public"
39
39
  },
40
40
  "sideEffect": false,
41
- "gitHead": "8342e0884a000565d2727d65092ae024ac6c0669"
41
+ "gitHead": "32d8a56d70ab85a77beaa69019765e923f5a80f1"
42
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -39,7 +39,7 @@
39
39
  "test:script": "mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir .."
40
40
  },
41
41
  "dependencies": {
42
- "@w5s/dev": "^2.2.13",
42
+ "@w5s/dev": "^2.2.14",
43
43
  "debug": "^4.3.3",
44
44
  "glob": "^11.0.0",
45
45
  "mrm-core": "^7.0.0",
@@ -59,5 +59,5 @@
59
59
  "access": "public"
60
60
  },
61
61
  "sideEffect": false,
62
- "gitHead": "8342e0884a000565d2727d65092ae024ac6c0669"
62
+ "gitHead": "32d8a56d70ab85a77beaa69019765e923f5a80f1"
63
63
  }
package/project/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const { dirname } = require('node:path');
1
+ const nodePath = require('node:path');
2
2
  const { packageJson, json, makeDirs } = require('mrm-core');
3
3
  const git = require('../core/git.js');
4
4
  const pkg = require('../core/pkg.js');
@@ -52,7 +52,7 @@ function task() {
52
52
 
53
53
  // Detect git repository
54
54
  if (rootUseWorkspace) {
55
- const dirs = pkg.listWorkspaceMatchers(rootPackageFile).map(dirname);
55
+ const dirs = pkg.listWorkspaceMatchers(rootPackageFile).map(nodePath.dirname);
56
56
  makeDirs(dirs);
57
57
  }
58
58