1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = makeHook;
|
7 |
|
8 | function _execa() {
|
9 | const data = _interopRequireDefault(require("execa"));
|
10 |
|
11 | _execa = function () {
|
12 | return data;
|
13 | };
|
14 |
|
15 | return data;
|
16 | }
|
17 |
|
18 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19 |
|
20 | function makeHook(command) {
|
21 | return () => {
|
22 | const args = command.split(' ');
|
23 | const cmd = args.shift();
|
24 | return (0, _execa().default)(cmd, args, {
|
25 | stdio: 'inherit'
|
26 | });
|
27 | };
|
28 | }
|
29 |
|
30 |
|
\ | No newline at end of file |