*Switch to esm

This commit is contained in:
Derrick Hammer 2022-07-20 14:01:54 -04:00
parent baf1fa7695
commit 5081253cc9
3 changed files with 9 additions and 5 deletions

View File

@ -6,6 +6,7 @@
},
"main": "dist/index.js",
"types": "types",
"type": "module",
"dependencies": {
"libkernel": "^0.1.41",
"libskynet": "^0.0.48",

View File

@ -6,16 +6,19 @@ import {
seedPhraseToSeed,
taggedRegistryEntryKeys,
} from "libskynet";
import { SEED_BYTES, seedToChecksumWords } from "libskynet/dist/seed";
import { DICTIONARY_UNIQUE_PREFIX } from "libskynet/dist/dictionary";
import { SEED_BYTES, seedToChecksumWords } from "libskynet/dist/seed.js";
import { DICTIONARY_UNIQUE_PREFIX } from "libskynet/dist/dictionary.js";
import * as path from "path";
import { overwriteRegistryEntry } from "libskynetnode";
import * as kernel from "libkernel";
import { webcrypto } from "crypto";
// @ts-ignore
import * as StaticServer from "static-server";
import StaticServer from "static-server";
import { Page } from "puppeteer";
import { errTuple } from "libskynet/dist";
import { errTuple } from "libskynet";
import * as url from "url";
const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
export const KERNEL_TEST_SUITE =
"AQCPJ9WRzMpKQHIsPo8no3XJpUydcDCjw7VJy8lG1MCZ3g";

View File

@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"module": "esnext",
"declaration": true,
"moduleResolution": "node",
"outDir": "./build",