ic-mops 0.34.2 → 0.34.4

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/commands/bench.ts CHANGED
@@ -166,7 +166,7 @@ function startDfx(verbose = false) {
166
166
  stopDfx(verbose);
167
167
  let dir = path.join(getRootDir(), '.mops/.bench');
168
168
  fs.writeFileSync(path.join(dir, 'dfx.json'), JSON.stringify(dfxJson(''), null, 2));
169
- execSync('dfx start --background --clean' + (verbose ? '' : ' -qqqq'), {cwd: dir, stdio: ['inherit', verbose ? 'inherit' : 'ignore', 'inherit']});
169
+ execSync('dfx start --background --clean --artificial-delay 0' + (verbose ? '' : ' -qqqq'), {cwd: dir, stdio: ['inherit', verbose ? 'inherit' : 'ignore', 'inherit']});
170
170
  }
171
171
 
172
172
  function stopDfx(verbose = false) {
@@ -153,7 +153,12 @@ export async function testWithReporter(reporter: Reporter, filter = '', mode: Te
153
153
  '--wasm-features',
154
154
  'multi-memory,bulk-memory',
155
155
  wasmFile,
156
- ], {env: {WASMTIME_NEW_CLI: '0'}});
156
+ ], {
157
+ env: {
158
+ ...process.env,
159
+ WASMTIME_NEW_CLI: '0',
160
+ }
161
+ });
157
162
  await pipeMMF(proc, mmf);
158
163
  }).finally(() => {
159
164
  fs.rmSync(wasmFile, {force: true});
@@ -134,7 +134,7 @@ function startDfx(verbose = false) {
134
134
  stopDfx(verbose);
135
135
  let dir = path.join(getRootDir(), '.mops/.bench');
136
136
  fs.writeFileSync(path.join(dir, 'dfx.json'), JSON.stringify(dfxJson(''), null, 2));
137
- execSync('dfx start --background --clean' + (verbose ? '' : ' -qqqq'), { cwd: dir, stdio: ['inherit', verbose ? 'inherit' : 'ignore', 'inherit'] });
137
+ execSync('dfx start --background --clean --artificial-delay 0' + (verbose ? '' : ' -qqqq'), { cwd: dir, stdio: ['inherit', verbose ? 'inherit' : 'ignore', 'inherit'] });
138
138
  }
139
139
  function stopDfx(verbose = false) {
140
140
  let dir = path.join(getRootDir(), '.mops/.bench');
@@ -129,7 +129,12 @@ export async function testWithReporter(reporter, filter = '', mode = 'interprete
129
129
  '--wasm-features',
130
130
  'multi-memory,bulk-memory',
131
131
  wasmFile,
132
- ], { env: { WASMTIME_NEW_CLI: '0' } });
132
+ ], {
133
+ env: {
134
+ ...process.env,
135
+ WASMTIME_NEW_CLI: '0',
136
+ }
137
+ });
133
138
  await pipeMMF(proc, mmf);
134
139
  }).finally(() => {
135
140
  fs.rmSync(wasmFile, { force: true });
package/dist/integrity.js CHANGED
@@ -7,6 +7,9 @@ import { mainActor } from './api/actors.js';
7
7
  import { resolvePackages } from './resolve-packages.js';
8
8
  export async function checkIntegrity(lock) {
9
9
  let force = !!lock;
10
+ if (!lock && !process.env['CI'] && fs.existsSync(path.join(getRootDir(), 'mops.lock'))) {
11
+ lock = 'save';
12
+ }
10
13
  if (!lock) {
11
14
  lock = process.env['CI'] ? 'check' : 'ignore';
12
15
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.34.2",
3
+ "version": "0.34.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/cli.js"
package/integrity.ts CHANGED
@@ -15,6 +15,10 @@ type LockFileV1 = {
15
15
  export async function checkIntegrity(lock?: 'save' | 'check' | 'ignore') {
16
16
  let force = !!lock;
17
17
 
18
+ if (!lock && !process.env['CI'] && fs.existsSync(path.join(getRootDir(), 'mops.lock'))) {
19
+ lock = 'save';
20
+ }
21
+
18
22
  if (!lock) {
19
23
  lock = process.env['CI'] ? 'check' : 'ignore';
20
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.34.2",
3
+ "version": "0.34.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/cli.js"