Skip to content

Commit

Permalink
sqlpatch as a member
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmer Bulthuis committed Jan 23, 2018
1 parent d601789 commit 36d34ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/* jshint node: true */

var sqlpatch = require('./src/sqlpatch');
var sqlpatch = require('./src/sqlpatch').sqlpatch;
var nopt = require('nopt');
var glob = require("glob");

Expand Down
4 changes: 1 addition & 3 deletions src/sqlpatch.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
export = sqlpatch;

interface SqlPatchOptions{
dialect: string;
schema: string;
table: string;
}

declare function sqlpatch(fileList: string[], options: SqlPatchOptions):string;
export function sqlpatch(fileList: string[], options: SqlPatchOptions):string;
4 changes: 3 additions & 1 deletion src/sqlpatch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* jshint node: true */

module.exports = sqlpatch;
module.exports = {
sqlpatch: sqlpatch,
}

var fs = require('fs');
var path = require('path');
Expand Down

0 comments on commit 36d34ee

Please sign in to comment.