refactor(compartment-mapper): Rename assemble.js to link.js
MODIFY
packages/compartment-mapper/src/archive.js
packages/compartment-mapper/src/archive.js
@@ -16,7 +16,7 @@ import { writeZip } from '@endo/zip';
import { resolve } from './node-module-specifier.js';
import { compartmentMapForNodeModules } from './node-modules.js';
import { search } from './search.js';
-import { link } from './assemble.js';
+import { link } from './link.js';
import { makeImportHookMaker } from './import-hook.js';
import { parseJson } from './parse-json.js';
import { parseArchiveCjs } from './parse-archive-cjs.js';

MODIFY
packages/compartment-mapper/src/bundle.js
packages/compartment-mapper/src/bundle.js
import { resolve } from './node-module-specifier.js';
import { compartmentMapForNodeModules } from './node-modules.js';
import { search } from './search.js';
-import { link } from './assemble.js';
+import { link } from './link.js';
import { makeImportHookMaker } from './import-hook.js';
import { parseJson } from './parse-json.js';
import { parseArchiveCjs } from './parse-archive-cjs.js';

MODIFY
packages/compartment-mapper/src/import-archive.js
packages/compartment-mapper/src/import-archive.js
/** @typedef {import('./types.js').ExecuteOptions} ExecuteOptions */
import { readZip } from '@endo/zip';
-import { link } from './assemble.js';
+import { link } from './link.js';
import { parsePreCjs } from './parse-pre-cjs.js';
import { parseJson } from './parse-json.js';
import { parsePreMjs } from './parse-pre-mjs.js';

MODIFY
packages/compartment-mapper/src/import.js
packages/compartment-mapper/src/import.js
import { compartmentMapForNodeModules } from './node-modules.js';
import { search } from './search.js';
-import { link } from './assemble.js';
+import { link } from './link.js';
import { makeImportHookMaker } from './import-hook.js';
import { parseJson } from './parse-json.js';
import { parseCjs } from './parse-cjs.js';

RENAME
packages/compartment-mapper/src/assemble.js
packages/compartment-mapper/src/link.js
MODIFY
packages/endo/bin/endo.js
packages/endo/bin/endo.js
/* global process */
(async () => {
const fs = await import('fs');
+ const crypto = await import('crypto');
const { main } = await import('../src/cli.js');
- main(process, { fs: fs.promises });
+ main(process, { fs, crypto });
})();

refactor(compartment-mapper): Rename assemble.js to link.js