@dr.pogodin/react-utils 1.46.1 → 1.46.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/build.js CHANGED
@@ -63,6 +63,7 @@ program
63
63
  .option('-i, --in-dir <path>', 'input folder for the build', 'src')
64
64
  .option('--lib', 'library build', false)
65
65
  .option('--no-babel', 'opts out the Babel (server-side code) build')
66
+ .option('--no-webpack', 'opts out the Webpack (client-side code) build')
66
67
  .option('-o, --out-dir <path>', 'output folder for the build', 'build')
67
68
  .option('-w, --watch', 'build, watch, and rebuild on source changes')
68
69
  .option(
@@ -165,11 +166,13 @@ function handleWebpackCompilationResults(error, stats) {
165
166
  );
166
167
  }
167
168
 
168
- if (cmdLineArgs.watch) {
169
- webpackCompiler.watch({}, handleWebpackCompilationResults);
170
- } else {
171
- webpackCompiler.run(handleWebpackCompilationResults);
172
- webpackCompiler.close(() => null);
169
+ if (cmdLineArgs.webpack) {
170
+ if (cmdLineArgs.watch) {
171
+ webpackCompiler.watch({}, handleWebpackCompilationResults);
172
+ } else {
173
+ webpackCompiler.run(handleWebpackCompilationResults);
174
+ webpackCompiler.close(() => null);
175
+ }
173
176
  }
174
177
 
175
178
  /* ************************************************************************** */
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.46.1",
2
+ "version": "1.46.2",
3
3
  "bin": {
4
4
  "react-utils-build": "bin/build.js",
5
5
  "react-utils-setup": "bin/setup.js"
@@ -11,13 +11,13 @@
11
11
  "@babel/runtime": "^7.28.4",
12
12
  "@dr.pogodin/babel-plugin-react-css-modules": "^6.13.8",
13
13
  "@dr.pogodin/csurf": "^1.16.6",
14
- "@dr.pogodin/js-utils": "^0.1.3",
15
- "@dr.pogodin/react-global-state": "^0.20.0",
14
+ "@dr.pogodin/js-utils": "^0.1.4",
15
+ "@dr.pogodin/react-global-state": "^0.20.1",
16
16
  "@dr.pogodin/react-helmet": "^3.0.4",
17
17
  "@dr.pogodin/react-themes": "^1.9.3",
18
18
  "@jest/environment": "^30.2.0",
19
19
  "axios": "^1.12.2",
20
- "commander": "^14.0.1",
20
+ "commander": "^14.0.2",
21
21
  "compression": "^1.8.1",
22
22
  "config": "^4.1.1",
23
23
  "cookie": "^1.0.2",
@@ -46,16 +46,16 @@
46
46
  "description": "Collection of generic ReactJS components and utils",
47
47
  "devDependencies": {
48
48
  "@babel/cli": "^7.28.3",
49
- "@babel/core": "^7.28.4",
49
+ "@babel/core": "^7.28.5",
50
50
  "@babel/node": "^7.28.0",
51
- "@babel/plugin-transform-runtime": "^7.28.3",
52
- "@babel/preset-env": "^7.28.3",
53
- "@babel/preset-react": "^7.27.1",
54
- "@babel/preset-typescript": "^7.27.1",
51
+ "@babel/plugin-transform-runtime": "^7.28.5",
52
+ "@babel/preset-env": "^7.28.5",
53
+ "@babel/preset-react": "^7.28.5",
54
+ "@babel/preset-typescript": "^7.28.5",
55
55
  "@babel/register": "^7.28.3",
56
56
  "@dr.pogodin/babel-plugin-transform-assets": "^1.2.5",
57
57
  "@dr.pogodin/babel-preset-svgr": "^1.9.2",
58
- "@dr.pogodin/eslint-configs": "^0.1.0",
58
+ "@dr.pogodin/eslint-configs": "^0.1.1",
59
59
  "@pmmmwh/react-refresh-webpack-plugin": "^0.6.1",
60
60
  "@standard-schema/spec": "^1.0.0",
61
61
  "@testing-library/dom": "^10.4.1",
@@ -65,8 +65,8 @@
65
65
  "@types/compression": "^1.8.1",
66
66
  "@types/config": "^3.3.5",
67
67
  "@types/cookie": "^0.6.0",
68
- "@types/cookie-parser": "^1.4.9",
69
- "@types/express": "^5.0.3",
68
+ "@types/cookie-parser": "^1.4.10",
69
+ "@types/express": "^5.0.4",
70
70
  "@types/jest": "^30.0.0",
71
71
  "@types/lodash": "^4.17.20",
72
72
  "@types/morgan": "^1.9.10",
@@ -79,7 +79,7 @@
79
79
  "@types/serve-favicon": "^2.5.7",
80
80
  "@types/supertest": "^6.0.3",
81
81
  "@types/webpack": "^5.28.5",
82
- "@types/webpack-hot-middleware": "^2.25.11",
82
+ "@types/webpack-hot-middleware": "^2.25.12",
83
83
  "autoprefixer": "^10.4.21",
84
84
  "babel-jest": "^30.2.0",
85
85
  "babel-loader": "^10.0.0",
@@ -102,14 +102,14 @@
102
102
  "regenerator-runtime": "^0.14.1",
103
103
  "resolve-url-loader": "^5.0.0",
104
104
  "sass": "^1.93.2",
105
- "sass-loader": "^16.0.5",
105
+ "sass-loader": "^16.0.6",
106
106
  "sitemap": "^8.0.1",
107
107
  "source-map-loader": "^5.0.0",
108
108
  "stylelint": "^16.25.0",
109
109
  "stylelint-config-standard-scss": "^16.0.0",
110
110
  "supertest": "^7.1.4",
111
111
  "tsc-alias": "1.8.16",
112
- "tstyche": "^4.3.0",
112
+ "tstyche": "^5.0.0",
113
113
  "typed-scss-modules": "^8.1.1",
114
114
  "typescript": "^5.9.3",
115
115
  "webpack": "^5.102.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://tstyche.org/schemas/config.json",
3
+ "checkDeclarationFiles": true,
3
4
  "checkSuppressedErrors": true,
4
- "checkSourceFiles": false,
5
5
  "testFileMatch": ["__tests__/**/*.{ts,tsx}"]
6
6
  }