From 39e8426e4dda11a982aabc1ed7b44e76627a8a25 Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Mon, 2 Jan 2023 13:34:40 +0100 Subject: [PATCH] build: update local imports (only for tests & tools) --- packages/cellular/test/index.ts | 2 +- packages/color/tools/blackbody.ts | 2 +- packages/color/tools/index.ts | 2 +- packages/color/tools/limits.ts | 2 +- packages/dsp/tools/generate-diagrams.ts | 2 +- packages/file-io/test/index.ts | 2 +- packages/geom-axidraw/test/index.ts | 2 +- packages/geom-sdf/test/index.ts | 2 +- packages/lowdisc/tools/index.ts | 2 +- packages/random-fxhash/test/index.ts | 2 +- packages/rasterize/test/index.ts | 2 +- packages/transclude/src/tpl/whitespace.ts | 2 +- packages/viz/tools/candles.ts | 2 +- packages/viz/tools/line.ts | 2 +- packages/wasm-api-canvas/test/index.ts | 6 ++---- packages/wasm-api-dom/test/index.ts | 6 ++---- packages/wasm-api-schedule/test/index.ts | 2 +- 17 files changed, 19 insertions(+), 23 deletions(-) diff --git a/packages/cellular/test/index.ts b/packages/cellular/test/index.ts index 94598242ed..1da33100ca 100644 --- a/packages/cellular/test/index.ts +++ b/packages/cellular/test/index.ts @@ -1,5 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; group("cellular", {}); diff --git a/packages/color/tools/blackbody.ts b/packages/color/tools/blackbody.ts index d3b0aa1267..90c8d1ddbb 100644 --- a/packages/color/tools/blackbody.ts +++ b/packages/color/tools/blackbody.ts @@ -4,7 +4,7 @@ import { svg } from "@thi.ng/hiccup-svg"; import { mix } from "@thi.ng/math"; import { map, normRange } from "@thi.ng/transducers"; import { writeFileSync } from "fs"; -import { kelvinRgb, wavelengthXyz } from "../src"; +import { kelvinRgb, wavelengthXyz } from "../src/index.js"; writeFileSync( "export/blackbody.svg", diff --git a/packages/color/tools/index.ts b/packages/color/tools/index.ts index 88479c1088..612bf4b869 100644 --- a/packages/color/tools/index.ts +++ b/packages/color/tools/index.ts @@ -18,7 +18,7 @@ import { selectChannel, sort, swatchesH, -} from "../src"; +} from "../src/index.js"; Object.keys(COSINE_GRADIENTS).forEach((id) => { const fname = `export/gradient-${id}-srgb.svg`; diff --git a/packages/color/tools/limits.ts b/packages/color/tools/limits.ts index 839df9a079..76eb45f4d0 100644 --- a/packages/color/tools/limits.ts +++ b/packages/color/tools/limits.ts @@ -1,7 +1,7 @@ import { map, normRange3d, reducer, transduce } from "@thi.ng/transducers"; import { max4, MAX4, MIN4, min4, Vec } from "@thi.ng/vectors"; import { vector } from "@thi.ng/strings"; -import { ColorMode, convert } from "../src"; +import { ColorMode, convert } from "../src/index.js"; const FMT = vector(4, 4); diff --git a/packages/dsp/tools/generate-diagrams.ts b/packages/dsp/tools/generate-diagrams.ts index 0f61830561..e475f12f5a 100644 --- a/packages/dsp/tools/generate-diagrams.ts +++ b/packages/dsp/tools/generate-diagrams.ts @@ -55,7 +55,7 @@ import { waveshapeTan, wavetable, whiteNoise, -} from "../src"; +} from "../src/index.js"; const FS = 48000; diff --git a/packages/file-io/test/index.ts b/packages/file-io/test/index.ts index c87c618653..dee199300c 100644 --- a/packages/file-io/test/index.ts +++ b/packages/file-io/test/index.ts @@ -1,5 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; group("file-io", {}); diff --git a/packages/geom-axidraw/test/index.ts b/packages/geom-axidraw/test/index.ts index 93e809f0f4..62639c6b41 100644 --- a/packages/geom-axidraw/test/index.ts +++ b/packages/geom-axidraw/test/index.ts @@ -1,5 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; group("geom-axidraw", {}); diff --git a/packages/geom-sdf/test/index.ts b/packages/geom-sdf/test/index.ts index 5b1368997c..57602e8289 100644 --- a/packages/geom-sdf/test/index.ts +++ b/packages/geom-sdf/test/index.ts @@ -1,5 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; group("geom-sdf", {}); diff --git a/packages/lowdisc/tools/index.ts b/packages/lowdisc/tools/index.ts index 98d13e69b1..bd885d2e3c 100644 --- a/packages/lowdisc/tools/index.ts +++ b/packages/lowdisc/tools/index.ts @@ -4,7 +4,7 @@ import { setPrecision } from "@thi.ng/hiccup-svg"; import { Z4 } from "@thi.ng/strings"; import { mapIndexed, take } from "@thi.ng/transducers"; import { writeFileSync } from "fs"; -import { plasticND } from "../src"; +import { plasticND } from "../src/index.js"; const W = 600; const R = 0.005; diff --git a/packages/random-fxhash/test/index.ts b/packages/random-fxhash/test/index.ts index 8afa4908ff..1aa9786110 100644 --- a/packages/random-fxhash/test/index.ts +++ b/packages/random-fxhash/test/index.ts @@ -1,5 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; group("random-fxhash", {}); diff --git a/packages/rasterize/test/index.ts b/packages/rasterize/test/index.ts index 7365af32bd..25b9c78e1c 100644 --- a/packages/rasterize/test/index.ts +++ b/packages/rasterize/test/index.ts @@ -1,5 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; group("rasterize", {}); diff --git a/packages/transclude/src/tpl/whitespace.ts b/packages/transclude/src/tpl/whitespace.ts index 5e0aa9f7ad..e1a6c72701 100644 --- a/packages/transclude/src/tpl/whitespace.ts +++ b/packages/transclude/src/tpl/whitespace.ts @@ -1,4 +1,4 @@ -import type { TemplateFn } from "../api"; +import type { TemplateFn } from "../api.js"; /** * Post-processing stage template function. Replaces all leading tabs (per line diff --git a/packages/viz/tools/candles.ts b/packages/viz/tools/candles.ts index 57ae761030..d7eae8c044 100644 --- a/packages/viz/tools/candles.ts +++ b/packages/viz/tools/candles.ts @@ -12,7 +12,7 @@ import { linearAxis, linearTicks, plotCartesian, -} from "../src"; +} from "../src/index.js"; const prices: any[] = JSON.parse( readFileSync("dev/ohlc.json").toString() diff --git a/packages/viz/tools/line.ts b/packages/viz/tools/line.ts index 2ffcdbbb10..b0cb10c94c 100644 --- a/packages/viz/tools/line.ts +++ b/packages/viz/tools/line.ts @@ -13,7 +13,7 @@ import { plotCartesian, scatterPlot, uniformDomain, -} from "../src"; +} from "../src/index.js"; const xaxis = linearAxis({ domain: [0, 100], diff --git a/packages/wasm-api-canvas/test/index.ts b/packages/wasm-api-canvas/test/index.ts index b08977ad40..9ea9b34b4d 100644 --- a/packages/wasm-api-canvas/test/index.ts +++ b/packages/wasm-api-canvas/test/index.ts @@ -1,7 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; -group("wasm-api-canvas", { - -}); +group("wasm-api-canvas", {}); diff --git a/packages/wasm-api-dom/test/index.ts b/packages/wasm-api-dom/test/index.ts index 14478d10a4..82d4eff668 100644 --- a/packages/wasm-api-dom/test/index.ts +++ b/packages/wasm-api-dom/test/index.ts @@ -1,7 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; -group("wasm-api-dom", { - -}); +group("wasm-api-dom", {}); diff --git a/packages/wasm-api-schedule/test/index.ts b/packages/wasm-api-schedule/test/index.ts index 0f145e1b48..f730f48c22 100644 --- a/packages/wasm-api-schedule/test/index.ts +++ b/packages/wasm-api-schedule/test/index.ts @@ -1,5 +1,5 @@ import { group } from "@thi.ng/testament"; // import * as assert from "assert"; -// import { } from "../src"; +// import { } from "../src/index.js"; group("wasm-api-schedule", {});