@harmoniclabs/pebble-cli 0.3.2 → 0.3.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.
@@ -54,6 +54,17 @@ export async function runTestsCommand(target, flags) {
54
54
  propertyIterations,
55
55
  seed,
56
56
  });
57
+ // A file that fails to compile yields NO test descriptors, so
58
+ // `test()` returns `[]` without throwing. Previously that made the
59
+ // compile error vanish and the run report "0 total". Surface the
60
+ // compile diagnostics instead. (Errors render as `ERROR ...`.)
61
+ const errorDiags = compiler.diagnostics.filter(d => String(d).startsWith("ERROR"));
62
+ if (errorDiags.length > 0) {
63
+ process.stderr.write(`compile error in ${path.relative(root, file)}:\n`);
64
+ for (const d of errorDiags)
65
+ process.stderr.write(" " + String(d) + "\n");
66
+ process.exitCode = 1;
67
+ }
57
68
  if (results.length > 0)
58
69
  resultsByFile.set(file, results);
59
70
  }
@@ -1,3 +1,3 @@
1
- export declare const PEBBLE_VERSION = "0.3.2";
2
- export declare const PEBBLE_LIB_VERSION = "0.3.2";
3
- export declare const PEBBLE_COMMIT_HASH = "54f2edd67973722e132bed92ede2a60a06c4ab0a";
1
+ export declare const PEBBLE_VERSION = "0.3.4";
2
+ export declare const PEBBLE_LIB_VERSION = "0.3.4";
3
+ export declare const PEBBLE_COMMIT_HASH = "0d46366f6563552d25c315c9e4f5e177adc466fd";
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by scripts/genVersions.js. Do not edit.
2
- export const PEBBLE_VERSION = "0.3.2";
3
- export const PEBBLE_LIB_VERSION = "0.3.2";
4
- export const PEBBLE_COMMIT_HASH = "54f2edd67973722e132bed92ede2a60a06c4ab0a";
2
+ export const PEBBLE_VERSION = "0.3.4";
3
+ export const PEBBLE_LIB_VERSION = "0.3.4";
4
+ export const PEBBLE_COMMIT_HASH = "0d46366f6563552d25c315c9e4f5e177adc466fd";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harmoniclabs/pebble-cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "A simple, yet rock solid, functional language with an imperative bias, targeting UPLC",
5
5
  "bin": {
6
6
  "pebble": "./dist/index.js",
@@ -51,7 +51,7 @@
51
51
  "dependencies": {
52
52
  "@harmoniclabs/crypto": "^0.3.0",
53
53
  "@harmoniclabs/obj-utils": "^1.0.0",
54
- "@harmoniclabs/pebble": "0.3.2",
54
+ "@harmoniclabs/pebble": "0.3.4",
55
55
  "@harmoniclabs/plutus-machine": "^3.0.0",
56
56
  "@harmoniclabs/uint8array-utils": "^1.0.4",
57
57
  "@harmoniclabs/uplc": "^2.0.5",