Skip to content

Commit

Permalink
exports main classes (for inhertance purpose)
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiriac committed Apr 30, 2018
1 parent 9c68509 commit 64e7449
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,12 @@ engine.prototype.tokenGetAll = function(buffer) {

// exports the function
module.exports = engine;

// makes libraries public
module.exports.tokens = tokens;
module.exports.lexer = lexer;
module.exports.AST = AST;
module.exports.parser = parser;

// allow the default export in index.d.ts
module.exports.default = engine;

0 comments on commit 64e7449

Please sign in to comment.