Skip to content

Commit

Permalink
export OM_SYRINX_VERSION from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cm-ayf committed May 24, 2024
1 parent a856a8a commit b7d8a63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export type {
SyrinxConfig,
} from "./native";

export const OM_SYRINX_VERSION: string;

import type { Readable } from "node:stream";
import type { SyrinxConfig, SynthesisOption } from "./native";

Expand Down
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ exports.EncoderType = EncoderType;
exports.Channels = Channels;
exports.Application = Application;

const { version: OM_SYRINX_VERSION } = require("../package.json");
exports.OM_SYRINX_VERSION = OM_SYRINX_VERSION;

class SyrinxStream extends Readable {
/**
* @param {import("./native").Syrinx} syrinx
Expand Down

0 comments on commit b7d8a63

Please sign in to comment.