Skip to content

Commit

Permalink
Use node named import
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Nov 21, 2024
1 parent 6b32b64 commit dc8dc5b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"build": "yarn clean && lerna run build",
"lint": "lerna run lint",
"check-types": "lerna run check-types",
"test:unit": "lerna run test:unit",
"test:browsers": "lerna run test:browsers",
"test": "lerna run test",
"benchmark:files": "NODE_OPTIONS=--max_old_space_size=4096 benchmark --config .benchrc.yaml",
Expand Down
2 changes: 1 addition & 1 deletion packages/as-sha256/scripts/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// we preprocess the binary data into valid javascript code, a single exportable object.
// which can be statically imported.

import fs from "fs";
import fs from "node:fs";

const INPUT = "build/optimized.wasm";
const OUTPUT = "src/wasmCode.ts";
Expand Down
4 changes: 2 additions & 2 deletions packages/ssz/test/spec/downloadTests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from "fs";
import path from "path";
import fs from "node:fs";
import path from "node:path";
import {execSync} from "child_process";
import {SPEC_TEST_LOCATION, SPEC_TEST_VERSION, SPEC_TEST_REPO_URL} from "../specTestVersioning";

Expand Down
4 changes: 2 additions & 2 deletions packages/ssz/test/spec/generic/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {describe, it, expect} from "vitest";
import path from "path";
import fs from "fs";
import path from "node:path";
import fs from "node:fs";
import {SPEC_TEST_LOCATION} from "../../specTestVersioning";
import {parseSszGenericValidTestcase, parseSszGenericInvalidTestcase} from "../testRunner";
import {runValidSszTest} from "../runValidTest";
Expand Down
4 changes: 2 additions & 2 deletions packages/ssz/test/spec/ssz_static.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from "fs";
import path from "path";
import fs from "node:fs";
import path from "node:path";
import {describe, it, vi} from "vitest";
import {isCompositeType, Type} from "../../src";
import {ssz} from "../lodestarTypes";
Expand Down
4 changes: 2 additions & 2 deletions packages/ssz/test/spec/testRunner.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import fs from "fs";
import path from "node:path";
import fs from "node:fs";
import {uncompress} from "snappyjs";
import jsyaml from "js-yaml";
import {schema} from "./sszYamlSchema";
Expand Down
2 changes: 1 addition & 1 deletion packages/ssz/test/specTestVersioning.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from "path";
import path from "node:path";

// WARNING! Don't move or rename this file !!!
//
Expand Down

0 comments on commit dc8dc5b

Please sign in to comment.