forked from microsoft/monaco-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
333 additions
and
1 deletion.
There are no files selected for viewing
0
monaco-editor-samples/.husky/pre-commit → .husky/pre-commit
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
const cp = require('child_process'); | ||
const path = require('path'); | ||
|
||
function huskyInstall() { | ||
console.log(`Installing husky hooks...`); | ||
console.log(`$ husky install`); | ||
const result = cp.spawnSync( | ||
process.execPath, | ||
[path.join(__dirname, '../node_modules/husky/lib/bin.js'), 'install'], | ||
{ stdio: 'inherit' } | ||
); | ||
|
||
if (result.error || result.status !== 0) { | ||
process.exit(1); | ||
} | ||
} | ||
|
||
huskyInstall(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.