@regardio/dev 1.18.2 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/exec/husky.js +2 -1
- package/package.json +1 -1
- package/src/bin/exec/husky.ts +2 -1
package/dist/bin/exec/husky.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { spawn } from 'node:child_process';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
|
+
import { dirname, resolve } from 'node:path';
|
|
4
5
|
const require = createRequire(import.meta.url);
|
|
5
|
-
const bin = require.resolve('husky');
|
|
6
|
+
const bin = resolve(dirname(require.resolve('husky')), 'bin.js');
|
|
6
7
|
const args = process.argv.slice(2);
|
|
7
8
|
const child = spawn(process.execPath, [bin, ...args], { stdio: 'inherit' });
|
|
8
9
|
child.on('exit', (code) => process.exit(code ?? 0));
|
package/package.json
CHANGED
package/src/bin/exec/husky.ts
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { spawn } from 'node:child_process';
|
|
7
7
|
import { createRequire } from 'node:module';
|
|
8
|
+
import { dirname, resolve } from 'node:path';
|
|
8
9
|
|
|
9
10
|
const require = createRequire(import.meta.url);
|
|
10
|
-
const bin = require.resolve('husky');
|
|
11
|
+
const bin = resolve(dirname(require.resolve('husky')), 'bin.js');
|
|
11
12
|
const args = process.argv.slice(2);
|
|
12
13
|
const child = spawn(process.execPath, [bin, ...args], { stdio: 'inherit' });
|
|
13
14
|
child.on('exit', (code) => process.exit(code ?? 0));
|