ic-mops 1.6.1 → 1.7.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/CHANGELOG.md +6 -0
- package/bundle/cli.tgz +0 -0
- package/commands/test/test.ts +1 -1
- package/dist/commands/test/test.js +1 -1
- package/dist/package.json +1 -1
- package/dist/resolve-packages.js +1 -1
- package/package.json +1 -1
- package/resolve-packages.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Mops CLI Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.1
|
|
4
|
+
- Fix `mops install` for local dependencies
|
|
5
|
+
|
|
6
|
+
## 1.7.0
|
|
7
|
+
- Add support for `actor class` detection to run replica tests in `mops test` command
|
|
8
|
+
|
|
3
9
|
## 1.6.1
|
|
4
10
|
- Fix `mops i` alias for `mops install` command (was broken in 1.3.0)
|
|
5
11
|
|
package/bundle/cli.tgz
CHANGED
|
Binary file
|
package/commands/test/test.ts
CHANGED
|
@@ -234,7 +234,7 @@ export async function testWithReporter(reporterName : ReporterName | Reporter |
|
|
|
234
234
|
if (lines.includes('// @testmode wasi')) {
|
|
235
235
|
mode = 'wasi';
|
|
236
236
|
}
|
|
237
|
-
else if (lines.includes('actor {') || lines.includes('// @testmode replica')) {
|
|
237
|
+
else if (lines.includes('actor {') || lines.includes('// @testmode replica') || lines.find(line => line.startsWith('actor class'))) {
|
|
238
238
|
mode = 'replica';
|
|
239
239
|
}
|
|
240
240
|
|
|
@@ -182,7 +182,7 @@ export async function testWithReporter(reporterName, filter = '', defaultMode =
|
|
|
182
182
|
if (lines.includes('// @testmode wasi')) {
|
|
183
183
|
mode = 'wasi';
|
|
184
184
|
}
|
|
185
|
-
else if (lines.includes('actor {') || lines.includes('// @testmode replica')) {
|
|
185
|
+
else if (lines.includes('actor {') || lines.includes('// @testmode replica') || lines.find(line => line.startsWith('actor class'))) {
|
|
186
186
|
mode = 'replica';
|
|
187
187
|
}
|
|
188
188
|
if (mode === 'wasi' && !wasmtimePath) {
|
package/dist/package.json
CHANGED
package/dist/resolve-packages.js
CHANGED
|
@@ -82,7 +82,7 @@ export async function resolvePackages({ conflicts = 'ignore' } = {}) {
|
|
|
82
82
|
localNestedDir = path.resolve(configDir, pkgDetails.path).replaceAll('{MOPS_ENV}', process.env.MOPS_ENV || 'local');
|
|
83
83
|
let mopsToml = path.join(localNestedDir, 'mops.toml');
|
|
84
84
|
if (existsSync(mopsToml)) {
|
|
85
|
-
nestedConfig = readConfig();
|
|
85
|
+
nestedConfig = readConfig(mopsToml);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
else if (version) {
|
package/package.json
CHANGED
package/resolve-packages.ts
CHANGED
|
@@ -103,7 +103,7 @@ export async function resolvePackages({conflicts = 'ignore' as 'warning' | 'erro
|
|
|
103
103
|
localNestedDir = path.resolve(configDir, pkgDetails.path).replaceAll('{MOPS_ENV}', process.env.MOPS_ENV || 'local');
|
|
104
104
|
let mopsToml = path.join(localNestedDir, 'mops.toml');
|
|
105
105
|
if (existsSync(mopsToml)) {
|
|
106
|
-
nestedConfig = readConfig();
|
|
106
|
+
nestedConfig = readConfig(mopsToml);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
else if (version) {
|