ic-mops 0.37.2 → 0.37.3
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/docs.ts +1 -1
- package/commands/test/test.ts +1 -1
- package/dist/commands/docs.js +1 -1
- package/dist/commands/test/test.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/commands/docs.ts
CHANGED
|
@@ -25,7 +25,7 @@ export async function docs({silent = false} = {}) {
|
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
27
|
// fallbacks to dfx moc if not specified in config
|
|
28
|
-
let mocPath = await toolchain.bin('moc');
|
|
28
|
+
let mocPath = await toolchain.bin('moc', {fallback: true});
|
|
29
29
|
moDocPath = mocPath.replace(/\/moc$/, '/mo-doc');
|
|
30
30
|
}
|
|
31
31
|
|
package/commands/test/test.ts
CHANGED
|
@@ -122,7 +122,7 @@ export async function testWithReporter(reporter: Reporter, filter = '', mode: Te
|
|
|
122
122
|
let sourcesArr = await sources();
|
|
123
123
|
|
|
124
124
|
if (!mocPath) {
|
|
125
|
-
mocPath = await toolchain.bin('moc');
|
|
125
|
+
mocPath = await toolchain.bin('moc', {fallback: true});
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
let wasmDir = `${getRootDir()}/.mops/.test/`;
|
package/dist/commands/docs.js
CHANGED
|
@@ -20,7 +20,7 @@ export async function docs({ silent = false } = {}) {
|
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
// fallbacks to dfx moc if not specified in config
|
|
23
|
-
let mocPath = await toolchain.bin('moc');
|
|
23
|
+
let mocPath = await toolchain.bin('moc', { fallback: true });
|
|
24
24
|
moDocPath = mocPath.replace(/\/moc$/, '/mo-doc');
|
|
25
25
|
}
|
|
26
26
|
// generate docs
|
|
@@ -104,7 +104,7 @@ export async function testWithReporter(reporter, filter = '', mode = 'interprete
|
|
|
104
104
|
let config = readConfig();
|
|
105
105
|
let sourcesArr = await sources();
|
|
106
106
|
if (!mocPath) {
|
|
107
|
-
mocPath = await toolchain.bin('moc');
|
|
107
|
+
mocPath = await toolchain.bin('moc', { fallback: true });
|
|
108
108
|
}
|
|
109
109
|
let wasmDir = `${getRootDir()}/.mops/.test/`;
|
|
110
110
|
fs.mkdirSync(wasmDir, { recursive: true });
|
package/dist/package.json
CHANGED