Skip to content

Commit

Permalink
feat: export VERSION (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Mar 13, 2024
1 parent 2755ebf commit a2b8c70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -2,6 +2,7 @@ import type { Octokit } from "@octokit/core";
import { createIterator } from "./iterator.js";
import { createPaginate } from "./paginate.js";
export type { PageInfoForward, PageInfoBackward } from "./page-info.js";
export { VERSION } from "./version.js";

type paginateGraphQLInterface = {
graphql: Octokit["graphql"] & {
Expand Down
1 change: 1 addition & 0 deletions src/version.ts
@@ -0,0 +1 @@
export const VERSION = "0.0.0-development";
5 changes: 4 additions & 1 deletion test/smoke.test.js
@@ -1,7 +1,10 @@
import { paginateGraphQL } from "../pkg/dist-bundle/index.js";
import { paginateGraphQL, VERSION } from "../pkg/dist-bundle/index.js";

describe("Test package exports", () => {
it("should export the paginateGraphQL function", () => {
expect(paginateGraphQL).toBeInstanceOf(Function);
});
it("should export the VERSION string", () => {
expect(VERSION).toStrictEqual("0.0.0-development");
});
});

0 comments on commit a2b8c70

Please sign in to comment.