*Switch to esm
This commit is contained in:
parent
baf1fa7695
commit
5081253cc9
|
@ -6,6 +6,7 @@
|
||||||
},
|
},
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "types",
|
"types": "types",
|
||||||
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"libkernel": "^0.1.41",
|
"libkernel": "^0.1.41",
|
||||||
"libskynet": "^0.0.48",
|
"libskynet": "^0.0.48",
|
||||||
|
|
11
src/index.ts
11
src/index.ts
|
@ -6,16 +6,19 @@ import {
|
||||||
seedPhraseToSeed,
|
seedPhraseToSeed,
|
||||||
taggedRegistryEntryKeys,
|
taggedRegistryEntryKeys,
|
||||||
} from "libskynet";
|
} from "libskynet";
|
||||||
import { SEED_BYTES, seedToChecksumWords } from "libskynet/dist/seed";
|
import { SEED_BYTES, seedToChecksumWords } from "libskynet/dist/seed.js";
|
||||||
import { DICTIONARY_UNIQUE_PREFIX } from "libskynet/dist/dictionary";
|
import { DICTIONARY_UNIQUE_PREFIX } from "libskynet/dist/dictionary.js";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import { overwriteRegistryEntry } from "libskynetnode";
|
import { overwriteRegistryEntry } from "libskynetnode";
|
||||||
import * as kernel from "libkernel";
|
import * as kernel from "libkernel";
|
||||||
import { webcrypto } from "crypto";
|
import { webcrypto } from "crypto";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import * as StaticServer from "static-server";
|
import StaticServer from "static-server";
|
||||||
import { Page } from "puppeteer";
|
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 =
|
export const KERNEL_TEST_SUITE =
|
||||||
"AQCPJ9WRzMpKQHIsPo8no3XJpUydcDCjw7VJy8lG1MCZ3g";
|
"AQCPJ9WRzMpKQHIsPo8no3XJpUydcDCjw7VJy8lG1MCZ3g";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"module": "commonjs",
|
"module": "esnext",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "./build",
|
"outDir": "./build",
|
||||||
|
|
Loading…
Reference in New Issue