Skip to content

Commit 6d89cc9

Browse files
committed
chore: bump versions
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 06222cf commit 6d89cc9

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

packages/observablehq-compiler/bin/ojscc.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// globalThis.Response = Response;
88
// }
99
import { promises as fs } from "fs";
10-
import { compile, download } from "../dist/index.js";
10+
import { compile, download } from "../dist/node/index.js";
1111
import yargsMode from "yargs/yargs";
1212

1313
async function doDownload(url, filePath) {
@@ -65,4 +65,4 @@ yargs
6565
.help("h")
6666
.alias("h", "help")
6767
.epilog("https://github.com/hpcc-systems/Visualization/tree/trunk/packages/observablehq-compiler")
68-
.argv;
68+
.parse();

packages/observablehq-compiler/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"types": "./types/kit/runtime.d.ts",
1515
"import": "./dist/runtime.js"
1616
},
17+
"./node": {
18+
"types": "./types/index.node.d.ts",
19+
"import": "./dist/node/index.js",
20+
"require": "./dist/node/index.cjs",
21+
"default": "./dist/node/index.js"
22+
},
1723
"./dist/*": "./dist/*"
1824
},
1925
"types": "./types/index.d.ts",

packages/observablehq-compiler/tests/simple.node.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from "vitest";
2-
import { compile, Writer } from "@hpcc-js/observablehq-compiler";
2+
import { compile, Writer } from "@hpcc-js/observablehq-compiler/node";
33
import { imports } from "./Introduction to Imports.ts";
44

55
describe("observablehq-compiler-node", function () {

packages/observablehq-compiler/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
},
2222
"include": [
2323
"./src/index.ts",
24+
"./src/index.node.ts",
2425
"src/kit/runtime.ts"
2526
]
2627
}

0 commit comments

Comments
 (0)