Skip to content

Commit a1aa6bc

Browse files
authored
Release 15.1.2 (#172)
* chore: prepare next dev release * feat: set max space size for all node scripts (#171) * Prepare release version 15.1.2 --------- Co-authored-by: datavisyn-bot <> Co-authored-by: Michael Pühringer <[email protected]>
2 parents 6db85b0 + 0777a55 commit a1aa6bc

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

bin/commands/bundle.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ module.exports = {
66
describe: 'Bundles a repository',
77
handler: (args) => {
88
const configPath = resolve(__dirname, '../../config/rspack.config.js');
9-
call('rspack', `build --c "${configPath}" ${(args.strings || []).join(' ')}`, {
10-
env: {
11-
NODE_OPTIONS: '--max-old-space-size=8192',
12-
},
13-
});
9+
call('rspack', `build --c "${configPath}" ${(args.strings || []).join(' ')}`);
1410
},
1511
};

bin/commands/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const call = (command, args, options = {}) => {
3131
stdio: 'inherit',
3232
env: {
3333
NODE_PATH: nodePath,
34+
// Increase memory limits for node all processes
35+
NODE_OPTIONS: '--max-old-space-size=8192 --max-semi-space-size=512',
3436
...(options.env || {}),
3537
...process.env,
3638
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visyn_scripts",
33
"description": "",
4-
"version": "15.1.1",
4+
"version": "15.1.2",
55
"author": {
66
"name": "datavisyn GmbH",
77
"email": "[email protected]",

tests/visyn_scripts.test.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,12 @@ describe('cli', () => {
5050
it('runs the bundle script in production mode', async () => {
5151
// const callSpy = jest.spyOn(utils, "call");
5252
await runCommand('bundle');
53-
expect(call).toHaveBeenCalledWith(expect.stringMatching(/(?=.*rspack)/), expect.stringMatching(/(?=.*rspack\.config\.js)/), expect.anything());
53+
expect(call).toHaveBeenCalledWith(expect.stringMatching(/(?=.*rspack)/), expect.stringMatching(/(?=.*rspack\.config\.js)/));
5454
});
5555

5656
it('runs the bundle script in development mode', async () => {
5757
// const callSpy = jest.spyOn(utils, "call");
5858
await runCommand('bundle', '--mode', 'development');
59-
expect(call).toHaveBeenCalledWith(
60-
expect.stringMatching(/(?=.*rspack)/),
61-
expect.stringMatching(/(?=.*--mode development)(?=.*rspack\.config\.js)/),
62-
expect.anything(),
63-
);
59+
expect(call).toHaveBeenCalledWith(expect.stringMatching(/(?=.*rspack)/), expect.stringMatching(/(?=.*--mode development)(?=.*rspack\.config\.js)/));
6460
});
6561
});

0 commit comments

Comments
 (0)