Skip to content

Commit

Permalink
🐛 fixed exports
Browse files Browse the repository at this point in the history
  • Loading branch information
saby1101 committed Aug 12, 2023
1 parent e6555d9 commit 71b1dcc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const path = require("node:path");
const { rimraf } = require("rimraf");
const tmp = require("tmp-promise");

export const IMAGE_TAG = "v6.6.0";
exports.IMAGE_TAG = "v6.6.0";

export const DEFAULT_CONFIG = {
exports.DEFAULT_CONFIG = {
npmName: "temp",
npmVersion: "1.0.0",
snapshot: false,
Expand All @@ -23,7 +23,12 @@ export const DEFAULT_CONFIG = {
typescriptThreePlus: true
};

exports.generate = async function (openapiPath, outputDir, imageTag = IMAGE_TAG, config = DEFAULT_CONFIG) {
exports.generate = async function (
openapiPath,
outputDir,
imageTag = exports.IMAGE_TAG,
config = exports.DEFAULT_CONFIG
) {
if (!openapiPath) {
throw new Error("No openapiPath provided");
}
Expand Down

0 comments on commit 71b1dcc

Please sign in to comment.