Skip to content

Commit

Permalink
Merge pull request #1848 from CarsonF/ts-patch-plugin
Browse files Browse the repository at this point in the history
feat(plugin): add export for cli plugin for ts-patch/ttypescript
  • Loading branch information
kamilmysliwiec authored Mar 25, 2022
2 parents daa95f9 + 2f20127 commit 273e4a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
exports.__esModule = true;
__export(require('./dist/plugin'));
const plugin = require('./dist/plugin');
__export(plugin);

/** Compatibility with ts-patch/ttypescript */
exports.default = (program, options) => plugin.before(options, program);

0 comments on commit 273e4a5

Please sign in to comment.