@w5s/mrm-preset 2.7.5 → 2.8.1

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.7.4 build:tsc
2
+ 
3
+ > @w5s/mrm-preset@2.8.0 build:tsc
4
4
  > tsc
5
5
 
6
6
  ⠙⠙
@@ -1,6 +1,6 @@
1
1
 
2
2
  ⠙
3
- > @w5s/mrm-preset@2.7.4 lint:src
3
+ > @w5s/mrm-preset@2.8.0 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.7.5 prepare:empty
2
+ > @w5s/mrm-preset@2.8.1 prepare:empty
3
3
  > :
4
4
 
@@ -1,45 +1,118 @@
1
1
 
2
- ⠙
3
- > @w5s/mrm-preset@2.7.4 test:script
2
+ 
3
+ > @w5s/mrm-preset@2.8.0 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
8
9
  Running alias configure...
9
10
  Running gitignore...
10
11
  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
11
37
  Running contributing...
38
+ Create CODE_OF_CONDUCT.md
12
39
  Running licenses...
13
40
  Running asdf...
41
+ Create .tool-versions
14
42
  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
15
54
  Running ci...
16
55
  Running lang...
17
- Running commitlint...
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
18
82
  Running editorconfig...
83
+ Update .vscode/extensions.json
19
84
  Running eslint...
20
- Installing @w5s/eslint-config...
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...
21
94
  ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏npm error code ERESOLVE
22
95
  ⠏npm error ERESOLVE could not resolve
23
96
  ⠏npm error
24
- ⠏npm error While resolving: @w5s/eslint-config@2.0.29
25
- npm error Found: eslint@9.9.1
97
+ ⠏npm error While resolving: @w5s/eslint-config@2.0.31
98
+ npm error Found: eslint@9.11.1
26
99
  npm error node_modules/eslint
27
100
  npm error peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.4.0
28
101
  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
102
+ npm error @eslint-community/eslint-utils@"^4.2.0" from eslint@9.11.1
103
+ npm error dev eslint@"^9.11.1" from the root project
31
104
  npm error 2 more (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
32
105
  npm error
33
106
  npm error Could not resolve dependency:
34
- npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.29
107
+ npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.31
35
108
  npm error node_modules/@w5s/eslint-config
36
- npm error dev @w5s/eslint-config@"2.0.29" from the root project
109
+ npm error dev @w5s/eslint-config@"2.0.31" from the root project
37
110
  npm error
38
- npm error Conflicting peer dependency: eslint@8.57.0
111
+ npm error Conflicting peer dependency: eslint@8.57.1
39
112
  npm error node_modules/eslint
40
- npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.29
113
+ npm error peerOptional eslint@"8.x" from @w5s/eslint-config@2.0.31
41
114
  npm error node_modules/@w5s/eslint-config
42
- npm error dev @w5s/eslint-config@"2.0.29" from the root project
115
+ npm error dev @w5s/eslint-config@"2.0.31" from the root project
43
116
  npm error
44
117
  npm error Fix the upstream dependency conflict, or retry
45
118
  npm error this command with --force or --legacy-peer-deps
@@ -47,10 +120,41 @@ Installing @w5s/eslint-config...
47
120
  ⠏npm error
48
121
  npm error
49
122
  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...
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
53
148
  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
54
158
  Running renovate...
55
159
  Running githooks...
56
160
  Running post-configure...
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.1](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@2.8.0...@w5s/mrm-preset@2.8.1) (2024-09-24)
7
+
8
+ **Note:** Version bump only for package @w5s/mrm-preset
9
+
10
+ # [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)
11
+
12
+ ### ✨ Features
13
+
14
+ - Configure sideEffects in package.json if not present ([4431a2b](https://github.com/w5s/project-config/commit/4431a2b))
15
+
16
+ ### 🐛 Bug Fixes
17
+
18
+ - Fix configuration ([269d2a3](https://github.com/w5s/project-config/commit/269d2a3))
19
+
20
+ **Note:** Version bump only for package @w5s/mrm-preset
21
+
6
22
  ## <small>2.7.5 (2024-09-10)</small>
7
23
 
8
24
  - 👷 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:51247c8ad752c71fb218c50c33d7c5497574cb0ff74a66fd3f6e0f744c3da923
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.1",
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.13",
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": "8342e0884a000565d2727d65092ae024ac6c0669"
41
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "2.7.5",
3
+ "version": "2.8.1",
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.13",
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": "8342e0884a000565d2727d65092ae024ac6c0669"
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',
@@ -1,8 +0,0 @@
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
-