@w5s/mrm-preset 2.7.5 → 2.8.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.
@@ -1,6 +1,8 @@
1
-
2
- ⠙
3
- > @w5s/mrm-preset@2.7.4 build:tsc
1
+
2
+ > @w5s/mrm-preset@2.7.5 build:tsc
3
+ > tsc
4
+
5
+ 2.7.5 build:tsc
4
6
  > tsc
5
7
 
6
8
  ⠙⠙
@@ -1,8 +1,6 @@
1
-
2
- > @w5s/mrm-preset@2.7.3 format:src
3
- > eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
4
-
5
-
6
- > @w5s/mrm-preset@2.7.3 empty
7
- > :
8
-
1
+
2
+ ⠙⠹
3
+ > @w5s/mrm-preset@2.7.5 format:src
4
+ > eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
5
+
6
+ ⠙⠙
@@ -1,6 +1,4 @@
1
-
2
- ⠙
3
- > @w5s/mrm-preset@2.7.4 lint:src
4
- > eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
5
-
6
- ⠙⠙
1
+
2
+ > @w5s/mrm-preset@2.7.5 lint:src
3
+ > eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
4
+
@@ -1,4 +1,4 @@
1
1
 
2
- > @w5s/mrm-preset@2.7.5 prepare:empty
2
+ > @w5s/mrm-preset@2.8.0 prepare:empty
3
3
  > :
4
4
 
@@ -1,2 +1 @@
1
-
2
- 
1
+ CSpell: Files checked: 52, Issues found: 0 in 0 files.
@@ -1,70 +1,68 @@
1
-
2
- ⠙
3
- > @w5s/mrm-preset@2.7.4 test:script
4
- > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
5
-
6
- mkdir: _tester: File exists
7
- Running bootstrap...
8
- Running alias configure...
9
- Running gitignore...
10
- Running project...
11
- Running contributing...
12
- Running licenses...
13
- Running asdf...
14
- Running release...
15
- Running ci...
16
- Running lang...
17
- Running commitlint...
18
- Running editorconfig...
19
- Running eslint...
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.0.29
25
- npm error Found: eslint@9.9.1
26
- npm error node_modules/eslint
27
- npm error peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.4.0
28
- npm error node_modules/@eslint-community/eslint-utils
29
- npm error @eslint-community/eslint-utils@"^4.2.0" from eslint@9.9.1
30
- npm error dev eslint@"^9.9.1" from the root project
31
- npm error 2 more (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
32
- npm error
33
- npm error Could not resolve dependency:
34
- npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.29
35
- npm error node_modules/@w5s/eslint-config
36
- npm error dev @w5s/eslint-config@"2.0.29" from the root project
37
- npm error
38
- npm error Conflicting peer dependency: eslint@8.57.0
39
- npm error node_modules/eslint
40
- npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.29
41
- npm error node_modules/@w5s/eslint-config
42
- npm error dev @w5s/eslint-config@"2.0.29" from the root project
43
- npm error
44
- npm error Fix the upstream dependency conflict, or retry
45
- npm error this command with --force or --legacy-peer-deps
46
- npm error to accept an incorrect (and potentially broken) dependency resolution.
47
- ⠏npm error
48
- npm error
49
- npm error For a full report see:
50
- npm error /Users/julienpolo/.npm/_logs/2024-09-10T15_10_32_481Z-eresolve-report.txt
51
- ⠏npm error A complete log of this run can be found in: /Users/julienpolo/.npm/_logs/2024-09-10T15_10_32_481Z-debug-0.log
52
- ⠏Running cspell...
53
- Running vitest...
54
- Running renovate...
55
- Running githooks...
56
- Running post-configure...
57
- Error: to format code
58
-
59
- > _tester@1.0.0-alpha.0 format
60
- > npx run-p "format:*"
61
-
62
-
63
- > _tester@1.0.0-alpha.0 format:root
64
- > eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml --fix
65
-
66
- Invalid option '--ext' - perhaps you meant '-c'?
67
- You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.
68
- ERROR: "format:root" exited with 2.
69
- 
70
- ⠙⠙
1
+
2
+ > @w5s/mrm-preset@2.7.5 test:script
3
+ > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
4
+
5
+ mkdir: _tester: File exists
6
+ Running bootstrap...
7
+ Running alias configure...
8
+ Running gitignore...
9
+ Running project...
10
+ Running contributing...
11
+ Running licenses...
12
+ Running asdf...
13
+ Running release...
14
+ Running ci...
15
+ Running lang...
16
+ Running commitlint...
17
+ Running editorconfig...
18
+ Running eslint...
19
+ Installing @w5s/eslint-config...
20
+ npm error code ERESOLVE
21
+ npm error ERESOLVE could not resolve
22
+ npm error
23
+ npm error While resolving: @w5s/eslint-config@2.0.30
24
+ npm error Found: eslint@9.9.1
25
+ npm error node_modules/eslint
26
+ npm error peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.4.0
27
+ npm error node_modules/@eslint-community/eslint-utils
28
+ npm error @eslint-community/eslint-utils@"^4.2.0" from eslint@9.9.1
29
+ npm error dev eslint@"^9.9.1" from the root project
30
+ npm error 2 more (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
31
+ npm error
32
+ npm error Could not resolve dependency:
33
+ npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.30
34
+ npm error node_modules/@w5s/eslint-config
35
+ npm error dev @w5s/eslint-config@"2.0.30" from the root project
36
+ npm error
37
+ npm error Conflicting peer dependency: eslint@8.57.0
38
+ npm error node_modules/eslint
39
+ npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.30
40
+ npm error node_modules/@w5s/eslint-config
41
+ npm error dev @w5s/eslint-config@"2.0.30" from the root project
42
+ npm error
43
+ npm error Fix the upstream dependency conflict, or retry
44
+ npm error this command with --force or --legacy-peer-deps
45
+ npm error to accept an incorrect (and potentially broken) dependency resolution.
46
+ npm error
47
+ npm error
48
+ npm error For a full report see:
49
+ npm error /Users/julienpolo/.npm/_logs/2024-09-12T12_18_11_496Z-eresolve-report.txt
50
+ npm error A complete log of this run can be found in: /Users/julienpolo/.npm/_logs/2024-09-12T12_18_11_496Z-debug-0.log
51
+ Running cspell...
52
+ Running vitest...
53
+ Running renovate...
54
+ Running githooks...
55
+ Running post-configure...
56
+ Error: to format code
57
+
58
+ > _tester@1.0.0-alpha.0 format
59
+ > npx run-p "format:*"
60
+
61
+
62
+ > _tester@1.0.0-alpha.0 format:root
63
+ > eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml --fix
64
+
65
+ Invalid option '--ext' - perhaps you meant '-c'?
66
+ You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.
67
+ ERROR: "format:root" exited with 2.
68
+
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@2.7.5...@w5s/mrm-preset@2.8.0) (2024-09-12)
7
+
8
+ ### ✨ Features
9
+
10
+ - Configure sideEffects in package.json if not present ([4431a2b](https://github.com/w5s/project-config/commit/4431a2b))
11
+
12
+ ### 🐛 Bug Fixes
13
+
14
+ - Fix configuration ([269d2a3](https://github.com/w5s/project-config/commit/269d2a3))
15
+
16
+ **Note:** Version bump only for package @w5s/mrm-preset
17
+
6
18
  ## <small>2.7.5 (2024-09-10)</small>
7
19
 
8
20
  - 👷 Upgrade Node.js to 2d07db0 ([32d873f](https://github.com/w5s/project-config/commit/32d873f))
@@ -13,7 +13,7 @@
13
13
  when: always
14
14
  - when: never
15
15
  image:
16
- name: renovate/renovate@sha256:f8d4986dbbca7b9f5bbb1220e9f6e7feb32148d9b5140252d259566c417f5a18
16
+ name: renovate/renovate@sha256:e6f8b5465b687f85e0e27b63a8d68d947420c842d1a458392fe62de04ed8c382
17
17
  entrypoint: ['']
18
18
  script:
19
19
  - >
package/core/jsonFile.js CHANGED
@@ -43,9 +43,9 @@ function value(jsonFile, { state, path, default: defaultValue, update: nextValue
43
43
  if (state === 'present') {
44
44
  let currentValue = getValue(jsonFile, path);
45
45
 
46
- if (currentValue == null) {
46
+ if (currentValue === undefined) {
47
47
  currentValue = typeof defaultValue === 'function' ? defaultValue() : defaultValue;
48
- if (currentValue != null) {
48
+ if (currentValue !== undefined) {
49
49
  setValue(jsonFile, path, currentValue);
50
50
  }
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "2.7.5",
3
+ "version": "2.8.0",
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.11",
27
+ "@w5s/dev": "^2.2.12",
28
28
  "debug": "^4.3.3",
29
29
  "glob": "^11.0.0",
30
30
  "mrm-core": "^7.0.0",
@@ -37,5 +37,6 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "966ebbb065df3e68092eb80c3ff2c15858989edb"
40
+ "sideEffect": false,
41
+ "gitHead": "9a8e28010a7d06e5ff4672fa4f2f4b8368706cdf"
41
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "2.7.5",
3
+ "version": "2.8.0",
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.11",
42
+ "@w5s/dev": "^2.2.12",
43
43
  "debug": "^4.3.3",
44
44
  "glob": "^11.0.0",
45
45
  "mrm-core": "^7.0.0",
@@ -58,5 +58,6 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "966ebbb065df3e68092eb80c3ff2c15858989edb"
61
+ "sideEffect": false,
62
+ "gitHead": "9a8e28010a7d06e5ff4672fa4f2f4b8368706cdf"
62
63
  }
package/project/index.js CHANGED
@@ -62,6 +62,11 @@ function task() {
62
62
  state: 'present',
63
63
  default: 'module',
64
64
  });
65
+ jsonFile.value(currentPackageFile, {
66
+ path: 'sideEffect',
67
+ state: 'present',
68
+ default: false,
69
+ });
65
70
  jsonFile.value(currentPackageFile, {
66
71
  path: 'license',
67
72
  state: 'present',