ic-mops 0.34.3 → 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 +1 -1
- package/dist/commands/bench.js +1 -1
- package/dist/integrity.js +3 -0
- package/dist/package.json +1 -1
- package/integrity.ts +4 -0
- package/package.json +1 -1
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) {
|
package/dist/commands/bench.js
CHANGED
|
@@ -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');
|
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
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
|
}
|