@agoric/deploy-script-support 0.10.4-u11.0 → 0.10.4-u12.0

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 CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [0.10.4-u12.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.4-u11wf.0...@agoric/deploy-script-support@0.10.4-u12.0) (2023-11-10)
7
+
8
+ **Note:** Version bump only for package @agoric/deploy-script-support
9
+
10
+
11
+
12
+
13
+
14
+ ### [0.10.4-u11wf.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.4-u11.0...@agoric/deploy-script-support@0.10.4-u11wf.0) (2023-09-23)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **deploy-scripts-support:** correct bare module resolution ([f1e7109](https://github.com/Agoric/agoric-sdk/commit/f1e710937cd25fc261ca34c670c206fbaed583d3))
20
+
21
+
22
+
6
23
  ### [0.10.4-u11.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.3...@agoric/deploy-script-support@0.10.4-u11.0) (2023-08-24)
7
24
 
8
25
  **Note:** Version bump only for package @agoric/deploy-script-support
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/deploy-script-support",
3
- "version": "0.10.4-u11.0",
3
+ "version": "0.10.4-u12.0",
4
4
  "description": "Helpers and other support for writing deploy scripts",
5
5
  "type": "module",
6
6
  "main": "src/helpers.js",
@@ -34,24 +34,24 @@
34
34
  },
35
35
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
36
36
  "dependencies": {
37
- "@agoric/assert": "^0.6.0",
38
- "@agoric/ertp": "^0.16.3-u11.0",
39
- "@agoric/import-manager": "^0.3.12-u11.0",
40
- "@agoric/internal": "^0.3.3-u11.0",
41
- "@agoric/notifier": "^0.6.3-u11.0",
42
- "@agoric/store": "^0.9.3-u11.0",
43
- "@agoric/zoe": "^0.26.3-u11.0",
44
- "@endo/base64": "^0.2.31",
45
- "@endo/bundle-source": "^2.5.1",
46
- "@endo/far": "^0.2.18",
47
- "@endo/marshal": "^0.8.5",
48
- "@endo/nat": "^4.1.27",
49
- "@endo/promise-kit": "^0.2.56",
50
- "@endo/zip": "^0.2.31"
37
+ "@agoric/assert": "^0.6.1-u11wf.0",
38
+ "@agoric/ertp": "^0.16.3-u12.0",
39
+ "@agoric/import-manager": "^0.3.12-u12.0",
40
+ "@agoric/internal": "^0.4.0-u12.0",
41
+ "@agoric/notifier": "^0.6.3-u12.0",
42
+ "@agoric/store": "^0.9.3-u12.0",
43
+ "@agoric/zoe": "^0.26.3-u12.0",
44
+ "@endo/base64": "0.2.31",
45
+ "@endo/bundle-source": "2.5.2-upstream-rollup",
46
+ "@endo/far": "0.2.18",
47
+ "@endo/marshal": "0.8.5",
48
+ "@endo/nat": "4.1.27",
49
+ "@endo/promise-kit": "0.2.56",
50
+ "@endo/zip": "0.2.31"
51
51
  },
52
52
  "devDependencies": {
53
- "@agoric/vats": "^0.15.2-u11.0",
54
- "@endo/init": "^0.5.56",
53
+ "@agoric/vats": "^0.15.2-u12.0",
54
+ "@endo/init": "0.5.56",
55
55
  "ava": "^5.2.0",
56
56
  "import-meta-resolve": "^2.2.1"
57
57
  },
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "92b6cd72484079b0349d8ccfa4510aeb820e8d67"
71
+ "gitHead": "ee5a5fdad9187a6b1b7b26b772b6564c0db3062e"
72
72
  }
@@ -35,6 +35,11 @@ const pathResolve = (...paths) => {
35
35
  }
36
36
  };
37
37
 
38
+ const findModule = (initDir, srcSpec) =>
39
+ srcSpec.match(/^(\.\.?)?\//)
40
+ ? pathResolve(initDir, srcSpec)
41
+ : req.resolve(srcSpec);
42
+
38
43
  /**
39
44
  * Format core proposals to be run at bootstrap:
40
45
  * SwingSet `bundles` configuration
@@ -99,12 +104,12 @@ export const extractCoreProposalBundles = async (
99
104
  const thisProposalBundleHandles = new Set();
100
105
  assert(getSequenceForProposal);
101
106
  const thisProposalSequence = getSequenceForProposal(i);
102
- const initPath = pathResolve(dirname, module);
107
+ const initPath = findModule(dirname, module);
103
108
  const initDir = path.dirname(initPath);
104
109
  /** @type {Record<string, import('./externalTypes.js').ProposalBuilder>} */
105
110
  const ns = await import(initPath);
106
111
  const install = (srcSpec, bundlePath) => {
107
- const absoluteSrc = pathResolve(initDir, srcSpec);
112
+ const absoluteSrc = findModule(initDir, srcSpec);
108
113
  const bundleHandle = {};
109
114
  const absolutePaths = { source: absoluteSrc };
110
115
  if (bundlePath) {