@tramvai/cli 5.17.0 → 5.18.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.
package/README.md CHANGED
@@ -274,7 +274,7 @@ More details and examples you can find in typescript documentation:
274
274
  You can use `NODE_OPTIONS` env variable, e.g.:
275
275
 
276
276
  ```bash
277
- NODE_OPTIONS="--max_semi_space_size=64" tramvai start-prod {appName}
277
+ NODE_OPTIONS="--max-semi-space-size=64" tramvai start-prod {appName}
278
278
  ```
279
279
 
280
280
  ### How to get CPU profile of @tramvai/cli work?
package/bin/spawn.js CHANGED
@@ -4,8 +4,8 @@ const args = process.argv.slice(2);
4
4
  const maxMemory = process.env.MAX_USED_MEMORY || '3000';
5
5
  const maxSemiSpaceSize = process.env.MAX_SEMI_SPACE_SIZE || '128';
6
6
  const defaultArgs = [
7
- `--max_old_space_size=${maxMemory}`,
8
- `--max_semi_space_size=${maxSemiSpaceSize}`,
7
+ `--max-old-space-size=${maxMemory}`,
8
+ `--max-semi-space-size=${maxSemiSpaceSize}`,
9
9
  ];
10
10
 
11
11
  const paramsIndex = args.findIndex((x) => !x.startsWith('-'));
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * terser-webpack-plugin use jest-workers with worker threads - https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/src/index.js#L407
3
3
  * used worker from jest-workers pass all execArgv to NodeJS internal worker https://github.com/facebook/jest/blob/main/packages/jest-worker/src/workers/NodeThreadsWorker.ts#L68
4
- * max_old_space_size is not supported by NodeJS internal workers, and provide this error:
5
- * Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --max_old_space_size=3000
4
+ * max-old-space-size is not supported by NodeJS internal workers, and provide this error:
5
+ * Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --max-old-space-size=3000
6
6
  * So, try to remove this flag inside process manually, before worker threads are initialised.
7
7
  * @TODO: Remove after https://github.com/facebook/jest/pull/12097
8
8
  */
@@ -4,13 +4,13 @@ exports.clearExecArgv = void 0;
4
4
  /**
5
5
  * terser-webpack-plugin use jest-workers with worker threads - https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/src/index.js#L407
6
6
  * used worker from jest-workers pass all execArgv to NodeJS internal worker https://github.com/facebook/jest/blob/main/packages/jest-worker/src/workers/NodeThreadsWorker.ts#L68
7
- * max_old_space_size is not supported by NodeJS internal workers, and provide this error:
8
- * Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --max_old_space_size=3000
7
+ * max-old-space-size is not supported by NodeJS internal workers, and provide this error:
8
+ * Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --max-old-space-size=3000
9
9
  * So, try to remove this flag inside process manually, before worker threads are initialised.
10
10
  * @TODO: Remove after https://github.com/facebook/jest/pull/12097
11
11
  */
12
12
  const clearExecArgv = () => {
13
- const index = process.execArgv.findIndex((a) => a.includes('max_old_space_size'));
13
+ const index = process.execArgv.findIndex((a) => a.includes('max-old-space-size'));
14
14
  process.execArgv.splice(index, 1);
15
15
  };
16
16
  exports.clearExecArgv = clearExecArgv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/cli",
3
- "version": "5.17.0",
3
+ "version": "5.18.1",
4
4
  "description": "Cli инструмент для сборки и запуска приложений",
5
5
  "files": [
6
6
  "src",
@@ -74,7 +74,7 @@
74
74
  "@tinkoff/utils": "^2.1.3",
75
75
  "@tinkoff/webpack-dedupe-plugin": "4.0.2",
76
76
  "@tramvai/build": "6.1.1",
77
- "@tramvai/react": "5.17.0",
77
+ "@tramvai/react": "5.18.1",
78
78
  "@tramvai/tools-check-versions": "0.7.5",
79
79
  "@tramvai/tools-migrate": "0.9.5",
80
80
  "ajv": "^8.12.0",
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * terser-webpack-plugin use jest-workers with worker threads - https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/src/index.js#L407
3
3
  * used worker from jest-workers pass all execArgv to NodeJS internal worker https://github.com/facebook/jest/blob/main/packages/jest-worker/src/workers/NodeThreadsWorker.ts#L68
4
- * max_old_space_size is not supported by NodeJS internal workers, and provide this error:
5
- * Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --max_old_space_size=3000
4
+ * max-old-space-size is not supported by NodeJS internal workers, and provide this error:
5
+ * Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --max-old-space-size=3000
6
6
  * So, try to remove this flag inside process manually, before worker threads are initialised.
7
7
  * @TODO: Remove after https://github.com/facebook/jest/pull/12097
8
8
  */
9
9
  export const clearExecArgv = () => {
10
- const index = process.execArgv.findIndex((a) => a.includes('max_old_space_size'));
10
+ const index = process.execArgv.findIndex((a) => a.includes('max-old-space-size'));
11
11
  process.execArgv.splice(index, 1);
12
12
  };