@dr.pogodin/react-utils 1.50.1 → 1.50.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.
Files changed (2) hide show
  1. package/bin/build.js +12 -1
  2. package/package.json +1 -1
package/bin/build.js CHANGED
@@ -328,8 +328,19 @@ void (async () => {
328
328
  });
329
329
  }
330
330
  if (args.buildType === 'app-development' || args.buildType === 'app-production') {
331
+ let buildType;
332
+ switch (args.buildType) {
333
+ case 'app-development':
334
+ buildType = 'development';
335
+ break;
336
+ case 'app-production':
337
+ buildType = 'production';
338
+ break;
339
+ default:
340
+ throw Error('Unexpected build mode');
341
+ }
331
342
  await buildWithBabelForServerSide({
332
- buildType: 'development',
343
+ buildType,
333
344
  outDir: buildDir,
334
345
  srcDir: sourceDir
335
346
  });
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.50.1",
2
+ "version": "1.50.2",
3
3
  "bin": {
4
4
  "react-utils-build": "bin/build.js",
5
5
  "react-utils-setup": "bin/setup.js"