Skip to content

Commit a2b8c70

Browse files
authored
feat: export VERSION (#181)
1 parent 2755ebf commit a2b8c70

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Octokit } from "@octokit/core";
22
import { createIterator } from "./iterator.js";
33
import { createPaginate } from "./paginate.js";
44
export type { PageInfoForward, PageInfoBackward } from "./page-info.js";
5+
export { VERSION } from "./version.js";
56

67
type paginateGraphQLInterface = {
78
graphql: Octokit["graphql"] & {

src/version.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const VERSION = "0.0.0-development";

test/smoke.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { paginateGraphQL } from "../pkg/dist-bundle/index.js";
1+
import { paginateGraphQL, VERSION } from "../pkg/dist-bundle/index.js";
22

33
describe("Test package exports", () => {
44
it("should export the paginateGraphQL function", () => {
55
expect(paginateGraphQL).toBeInstanceOf(Function);
66
});
7+
it("should export the VERSION string", () => {
8+
expect(VERSION).toStrictEqual("0.0.0-development");
9+
});
710
});

0 commit comments

Comments
 (0)