*Switch to esm
This commit is contained in:
parent
baf1fa7695
commit
5081253cc9
|
@ -6,6 +6,7 @@
|
|||
},
|
||||
"main": "dist/index.js",
|
||||
"types": "types",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"libkernel": "^0.1.41",
|
||||
"libskynet": "^0.0.48",
|
||||
|
|
11
src/index.ts
11
src/index.ts
|
@ -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";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "commonjs",
|
||||
"module": "esnext",
|
||||
"declaration": true,
|
||||
"moduleResolution": "node",
|
||||
"outDir": "./build",
|
||||
|
|
Loading…
Reference in New Issue