@dr.pogodin/react-utils 1.41.0 → 1.41.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.
- package/bin/setup.js +11 -1
- package/package.json +10 -10
package/bin/setup.js
CHANGED
|
@@ -42,6 +42,11 @@ program
|
|
|
42
42
|
libs = libraries.length ? libraries : ['@dr.pogodin/react-utils'];
|
|
43
43
|
})
|
|
44
44
|
.description(COMMAND_DESCRIPTION)
|
|
45
|
+
.option(
|
|
46
|
+
'--force',
|
|
47
|
+
'Uses "--force" option for underlying npm install & dedupe operations',
|
|
48
|
+
false,
|
|
49
|
+
)
|
|
45
50
|
.option(
|
|
46
51
|
'--just-fix-deps',
|
|
47
52
|
'Skips library installation, just fixes dependencies.',
|
|
@@ -52,7 +57,7 @@ program
|
|
|
52
57
|
|
|
53
58
|
const cmdLineArgs = program.opts();
|
|
54
59
|
|
|
55
|
-
const { verbose } = cmdLineArgs;
|
|
60
|
+
const { force, verbose } = cmdLineArgs;
|
|
56
61
|
|
|
57
62
|
/**
|
|
58
63
|
* Generates a string containing name and version of the package to be
|
|
@@ -100,6 +105,7 @@ function adoptDevDependencies(donorData, hostData) {
|
|
|
100
105
|
deps = Object.entries(deps).map(generateTargetPackage);
|
|
101
106
|
if (deps.length) {
|
|
102
107
|
const args = ['install', '--save-dev'].concat(deps);
|
|
108
|
+
if (force) args.push('--force');
|
|
103
109
|
if (verbose) args.push('--verbose');
|
|
104
110
|
spawnSync(NPM_COMMAND, args, {
|
|
105
111
|
stdio: 'inherit',
|
|
@@ -150,6 +156,7 @@ function install(library) {
|
|
|
150
156
|
if (!name.includes('@', 1)) name += '@latest';
|
|
151
157
|
const args = ['install', '--save', name];
|
|
152
158
|
|
|
159
|
+
if (force) args.push('--force');
|
|
153
160
|
if (verbose) {
|
|
154
161
|
console.log(`Installing "${library}"...`);
|
|
155
162
|
args.push('--verbose');
|
|
@@ -179,6 +186,7 @@ function updateProdDependencies(donorData, hostData) {
|
|
|
179
186
|
if (deps.length) {
|
|
180
187
|
deps = deps.map(generateTargetPackage);
|
|
181
188
|
const args = ['install', '--save'].concat(deps);
|
|
189
|
+
if (force) args.push('--force');
|
|
182
190
|
if (verbose) args.push('--verbose');
|
|
183
191
|
spawnSync(NPM_COMMAND, args, { stdio: 'inherit' });
|
|
184
192
|
}
|
|
@@ -196,6 +204,7 @@ libs.forEach((library) => {
|
|
|
196
204
|
|
|
197
205
|
{
|
|
198
206
|
const arg = ['install'];
|
|
207
|
+
if (force) arg.push('--force');
|
|
199
208
|
if (verbose) arg.push('--verbose');
|
|
200
209
|
spawnSync(NPM_COMMAND, arg, { stdio: 'inherit' });
|
|
201
210
|
}
|
|
@@ -208,6 +217,7 @@ libs.forEach((library) => {
|
|
|
208
217
|
|
|
209
218
|
{
|
|
210
219
|
const arg = ['dedupe'];
|
|
220
|
+
if (force) arg.push('--force');
|
|
211
221
|
if (verbose) arg.push('--verbose');
|
|
212
222
|
spawnSync(NPM_COMMAND, arg, { stdio: 'inherit' });
|
|
213
223
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.41.
|
|
2
|
+
"version": "1.41.2",
|
|
3
3
|
"bin": {
|
|
4
4
|
"react-utils-build": "bin/build.js",
|
|
5
5
|
"react-utils-setup": "bin/setup.js"
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"@dr.pogodin/babel-plugin-react-css-modules": "^6.13.3",
|
|
13
13
|
"@dr.pogodin/csurf": "^1.14.1",
|
|
14
14
|
"@dr.pogodin/js-utils": "^0.0.13",
|
|
15
|
-
"@dr.pogodin/react-global-state": "^0.18.
|
|
15
|
+
"@dr.pogodin/react-global-state": "^0.18.1",
|
|
16
16
|
"@dr.pogodin/react-themes": "^1.8.0",
|
|
17
17
|
"@jest/environment": "^29.7.0",
|
|
18
18
|
"axios": "^1.7.9",
|
|
19
|
-
"commander": "^
|
|
19
|
+
"commander": "^13.0.0",
|
|
20
20
|
"compression": "^1.7.5",
|
|
21
21
|
"config": "^3.3.12",
|
|
22
22
|
"cookie": "^1.0.2",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"serialize-javascript": "^6.0.2",
|
|
42
42
|
"serve-favicon": "^2.5.0",
|
|
43
43
|
"source-map-support": "^0.5.21",
|
|
44
|
-
"uuid": "^11.0.
|
|
44
|
+
"uuid": "^11.0.4",
|
|
45
45
|
"winston": "^3.17.0"
|
|
46
46
|
},
|
|
47
47
|
"description": "Collection of generic ReactJS components and utils",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@types/csurf": "^1.11.5",
|
|
71
71
|
"@types/express": "^4.17.21",
|
|
72
72
|
"@types/jest": "^29.5.14",
|
|
73
|
-
"@types/lodash": "^4.17.
|
|
73
|
+
"@types/lodash": "^4.17.14",
|
|
74
74
|
"@types/morgan": "^1.9.9",
|
|
75
75
|
"@types/node-forge": "^1.3.11",
|
|
76
76
|
"@types/pretty": "^2.0.3",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"identity-obj-proxy": "^3.0.0",
|
|
102
102
|
"jest": "^29.7.0",
|
|
103
103
|
"jest-environment-jsdom": "^29.7.0",
|
|
104
|
-
"memfs": "^4.15.
|
|
104
|
+
"memfs": "^4.15.3",
|
|
105
105
|
"mini-css-extract-plugin": "^2.9.2",
|
|
106
106
|
"mockdate": "^3.0.5",
|
|
107
107
|
"nodelist-foreach-polyfill": "^1.2.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"react-refresh": "^0.16.0",
|
|
113
113
|
"regenerator-runtime": "^0.14.1",
|
|
114
114
|
"resolve-url-loader": "^5.0.0",
|
|
115
|
-
"sass": "^1.83.
|
|
115
|
+
"sass": "^1.83.1",
|
|
116
116
|
"sass-loader": "^16.0.4",
|
|
117
117
|
"sitemap": "^8.0.0",
|
|
118
118
|
"source-map-loader": "^5.0.0",
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
"stylelint-config-standard-scss": "^14.0.0",
|
|
121
121
|
"supertest": "^7.0.0",
|
|
122
122
|
"tsc-alias": "^1.8.10",
|
|
123
|
-
"tstyche": "^3.
|
|
124
|
-
"typed-scss-modules": "^8.0
|
|
123
|
+
"tstyche": "^3.3.1",
|
|
124
|
+
"typed-scss-modules": "^8.1.0",
|
|
125
125
|
"typescript": "^5.7.2",
|
|
126
|
-
"typescript-eslint": "^8.
|
|
126
|
+
"typescript-eslint": "^8.19.0",
|
|
127
127
|
"webpack": "^5.97.1",
|
|
128
128
|
"webpack-dev-middleware": "^7.4.2",
|
|
129
129
|
"webpack-hot-middleware": "^2.26.1",
|