@agoric/builders 0.1.1-dev-0dccf64.0.0dccf64 → 0.1.1-dev-3dacdc3.0.3dacdc3
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/package.json +19 -19
- package/scripts/lib/build-bundle.js +8 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/builders",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-3dacdc3.0.3dacdc3",
|
|
4
4
|
"description": "Build scripts for proposals to an Agoric chain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"author": "Agoric",
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@agoric/client-utils": "0.1.1-dev-
|
|
24
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
25
|
-
"@agoric/internal": "0.3.3-dev-
|
|
26
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
27
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
28
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
29
|
-
"@agoric/vats": "0.15.2-dev-
|
|
30
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
23
|
+
"@agoric/client-utils": "0.1.1-dev-3dacdc3.0.3dacdc3",
|
|
24
|
+
"@agoric/ertp": "0.16.3-dev-3dacdc3.0.3dacdc3",
|
|
25
|
+
"@agoric/internal": "0.3.3-dev-3dacdc3.0.3dacdc3",
|
|
26
|
+
"@agoric/notifier": "0.6.3-dev-3dacdc3.0.3dacdc3",
|
|
27
|
+
"@agoric/smart-wallet": "0.5.4-dev-3dacdc3.0.3dacdc3",
|
|
28
|
+
"@agoric/vat-data": "0.5.3-dev-3dacdc3.0.3dacdc3",
|
|
29
|
+
"@agoric/vats": "0.15.2-dev-3dacdc3.0.3dacdc3",
|
|
30
|
+
"@agoric/zoe": "0.26.3-dev-3dacdc3.0.3dacdc3",
|
|
31
31
|
"@endo/bundle-source": "^4.1.2",
|
|
32
32
|
"@endo/captp": "^4.4.8",
|
|
33
33
|
"@endo/eventual-send": "^1.3.4",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"import-meta-resolve": "^4.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
45
|
-
"@agoric/governance": "0.10.4-dev-
|
|
46
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
47
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
48
|
-
"@agoric/store": "0.9.3-dev-
|
|
49
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
50
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
51
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
52
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
+
"@agoric/deploy-script-support": "0.10.4-dev-3dacdc3.0.3dacdc3",
|
|
45
|
+
"@agoric/governance": "0.10.4-dev-3dacdc3.0.3dacdc3",
|
|
46
|
+
"@agoric/inter-protocol": "0.16.2-dev-3dacdc3.0.3dacdc3",
|
|
47
|
+
"@agoric/orchestration": "0.1.1-dev-3dacdc3.0.3dacdc3",
|
|
48
|
+
"@agoric/store": "0.9.3-dev-3dacdc3.0.3dacdc3",
|
|
49
|
+
"@agoric/swing-store": "0.9.2-dev-3dacdc3.0.3dacdc3",
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-3dacdc3.0.3dacdc3",
|
|
51
|
+
"@agoric/swingset-vat": "0.32.3-dev-3dacdc3.0.3dacdc3",
|
|
52
|
+
"@agoric/time": "0.3.3-dev-3dacdc3.0.3dacdc3",
|
|
53
53
|
"@endo/errors": "^1.2.13",
|
|
54
54
|
"ava": "^6.4.1",
|
|
55
55
|
"c8": "^10.1.3"
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"typeCoverage": {
|
|
80
80
|
"atLeast": 89.7
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "3dacdc33b578ee52258e5771192bf8e57beb603b"
|
|
83
83
|
}
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import { dirname, resolve as pathResolve } from 'path';
|
|
3
3
|
import { fileURLToPath } from 'url';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
sharedBundleCachePath,
|
|
7
|
+
unsafeMakeBundleCache,
|
|
8
|
+
} from '@agoric/swingset-vat/tools/bundleTool.js';
|
|
6
9
|
|
|
7
10
|
/** @type {Map<string, Promise<Awaited<ReturnType<typeof unsafeMakeBundleCache>>>>} */
|
|
8
11
|
const bundleCaches = new Map();
|
|
@@ -31,7 +34,7 @@ export const buildBundlePath = async (
|
|
|
31
34
|
bundleName = undefined,
|
|
32
35
|
options = {},
|
|
33
36
|
) => {
|
|
34
|
-
const { bundleDirRel
|
|
37
|
+
const { bundleDirRel } = options;
|
|
35
38
|
const fromDir = dirname(fileURLToPath(fromMetaUrl));
|
|
36
39
|
/** @type {string | undefined} */
|
|
37
40
|
let sourceSpec;
|
|
@@ -61,7 +64,9 @@ export const buildBundlePath = async (
|
|
|
61
64
|
);
|
|
62
65
|
}
|
|
63
66
|
|
|
64
|
-
const bundleDir =
|
|
67
|
+
const bundleDir = bundleDirRel
|
|
68
|
+
? pathResolve(fromDir, bundleDirRel)
|
|
69
|
+
: sharedBundleCachePath;
|
|
65
70
|
// Use '\0' to avoid ambiguity between key components.
|
|
66
71
|
const cacheKey = [bundleDir, sourceSpec, resolvedBundleName].join('\0');
|
|
67
72
|
const cached = bundlePathCache.get(cacheKey);
|