Skip to content

Commit

Permalink
build: update local imports (only for tests & tools)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 2, 2023
1 parent fb1812f commit 39e8426
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/cellular/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});
2 changes: 1 addition & 1 deletion packages/color/tools/blackbody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/color/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
2 changes: 1 addition & 1 deletion packages/color/tools/limits.ts
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
2 changes: 1 addition & 1 deletion packages/dsp/tools/generate-diagrams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import {
waveshapeTan,
wavetable,
whiteNoise,
} from "../src";
} from "../src/index.js";

const FS = 48000;

Expand Down
2 changes: 1 addition & 1 deletion packages/file-io/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});
2 changes: 1 addition & 1 deletion packages/geom-axidraw/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});
2 changes: 1 addition & 1 deletion packages/geom-sdf/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});
2 changes: 1 addition & 1 deletion packages/lowdisc/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/random-fxhash/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});
2 changes: 1 addition & 1 deletion packages/rasterize/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});
2 changes: 1 addition & 1 deletion packages/transclude/src/tpl/whitespace.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/viz/tools/candles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
linearAxis,
linearTicks,
plotCartesian,
} from "../src";
} from "../src/index.js";

const prices: any[] = JSON.parse(
readFileSync("dev/ohlc.json").toString()
Expand Down
2 changes: 1 addition & 1 deletion packages/viz/tools/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
plotCartesian,
scatterPlot,
uniformDomain,
} from "../src";
} from "../src/index.js";

const xaxis = linearAxis({
domain: [0, 100],
Expand Down
6 changes: 2 additions & 4 deletions packages/wasm-api-canvas/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});
6 changes: 2 additions & 4 deletions packages/wasm-api-dom/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});
2 changes: 1 addition & 1 deletion packages/wasm-api-schedule/test/index.ts
Original file line number Diff line number Diff line change
@@ -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", {});

0 comments on commit 39e8426

Please sign in to comment.