* use import_map.json instead of per-file import * remove test_deps.ts in favor of import_map * remove common/deps.ts in favor of import_map * use import_map instead of server/deps.ts * make all plug-api files usable without an import_map * make all lib files usable without an import_map * remove web/deps.ts in favor of import_map * fix plug build * remove plug-api/deps.ts in favor of lib/deps.ts * fix server deps bundled in client deps
13 lines
362 B
TypeScript
13 lines
362 B
TypeScript
import { YAML } from "../../lib/deps_server.ts";
|
|
|
|
globalThis.syscall = (name: string, ...args: readonly any[]) => {
|
|
switch (name) {
|
|
case "yaml.parse":
|
|
return Promise.resolve(YAML.parse(args[0]));
|
|
case "system.applyAttributeExtractors":
|
|
return Promise.resolve({});
|
|
default:
|
|
throw Error(`Not implemented in tests: ${name}`);
|
|
}
|
|
};
|