@harmoniclabs/pebble-cli 0.3.4 → 0.3.5
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { productionOptions } from "@harmoniclabs/pebble";
|
|
1
|
+
import { productionOptions, COMPILER_VERSION } from "@harmoniclabs/pebble";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import { normalizeRoot, isRecord } from "../utils/miscellaneous.js";
|
|
@@ -26,6 +26,12 @@ export function completeCompileOptions(flags) {
|
|
|
26
26
|
// ignore malformed config; proceed with flags/defaults
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
// Allow `pebble compile --entry <file>` with no `pebble.config.json`:
|
|
30
|
+
// default the required `compilerVersion` to THIS compiler's version when no
|
|
31
|
+
// config supplies one (an explicit config range still wins and is checked).
|
|
32
|
+
if (typeof config?.compilerVersion !== "string" || config.compilerVersion.length === 0) {
|
|
33
|
+
config = { ...config, compilerVersion: COMPILER_VERSION };
|
|
34
|
+
}
|
|
29
35
|
const cfgEntry = typeof config?.entry === "string" ? String(config.entry) : undefined;
|
|
30
36
|
const entry = cfgEntry ?? (flags.entry ?? "./src/index.pebble");
|
|
31
37
|
const desiredOutput = flags.output;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { productionOptions } from "@harmoniclabs/pebble";
|
|
1
|
+
import { productionOptions, COMPILER_VERSION } from "@harmoniclabs/pebble";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import { normalizeRoot, isRecord } from "../utils/miscellaneous.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -29,6 +29,14 @@ export function completeExportOptions(flags) {
|
|
|
29
29
|
// ignore malformed config; proceed with flags/defaults
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
// A one-off `pebble export --function-name <fn> --entry <file>` should work
|
|
33
|
+
// without a `pebble.config.json`. The Compiler requires a `compilerVersion`
|
|
34
|
+
// semver range; when no config supplies one, default it to THIS compiler's
|
|
35
|
+
// version (which trivially satisfies the range). An explicit config range
|
|
36
|
+
// still takes precedence and is still checked.
|
|
37
|
+
if (typeof config?.compilerVersion !== "string" || config.compilerVersion.length === 0) {
|
|
38
|
+
config = { ...config, compilerVersion: COMPILER_VERSION };
|
|
39
|
+
}
|
|
32
40
|
const cfgEntry = typeof config?.entry === "string" ? String(config.entry) : undefined;
|
|
33
41
|
const entry = (flags.entry ?? (cfgEntry ?? "./src/index.pebble")).trim();
|
|
34
42
|
const desiredOutput = flags.output;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const PEBBLE_VERSION = "0.3.
|
|
2
|
-
export declare const PEBBLE_LIB_VERSION = "0.3.
|
|
3
|
-
export declare const PEBBLE_COMMIT_HASH = "
|
|
1
|
+
export declare const PEBBLE_VERSION = "0.3.5";
|
|
2
|
+
export declare const PEBBLE_LIB_VERSION = "0.3.5";
|
|
3
|
+
export declare const PEBBLE_COMMIT_HASH = "119eb32a24acb4dc9c058b9f6f5fac1532663c75";
|
|
@@ -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.
|
|
3
|
-
export const PEBBLE_LIB_VERSION = "0.3.
|
|
4
|
-
export const PEBBLE_COMMIT_HASH = "
|
|
2
|
+
export const PEBBLE_VERSION = "0.3.5";
|
|
3
|
+
export const PEBBLE_LIB_VERSION = "0.3.5";
|
|
4
|
+
export const PEBBLE_COMMIT_HASH = "119eb32a24acb4dc9c058b9f6f5fac1532663c75";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harmoniclabs/pebble-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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.
|
|
54
|
+
"@harmoniclabs/pebble": "0.3.5",
|
|
55
55
|
"@harmoniclabs/plutus-machine": "^3.0.0",
|
|
56
56
|
"@harmoniclabs/uint8array-utils": "^1.0.4",
|
|
57
57
|
"@harmoniclabs/uplc": "^2.0.5",
|