Skip to content

Commit

Permalink
chore: upgrade execa to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
刘文涛 committed Jan 10, 2024
1 parent 2e67cf2 commit 2335192
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@schematics/angular": "^14.0.0",
"colorette": "^2.0.16",
"debug": "^4.3.2",
"execa": "^5.1.1",
"execa": "^8.0.1",
"schematics-task": "^0.2.9",
"tslib": "^2.3.1",
"type-fest": "^2.5.0"
Expand Down
3 changes: 2 additions & 1 deletion src/toolchain-husky/utility.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Rule, Tree } from '@angular-devkit/schematics';
import { debugLib } from '../shared/utility/debug';
import { addTask as addSchematicsTask } from 'schematics-task';
import execa from 'execa';

const debug = debugLib('toolchain-husky');

Expand All @@ -11,6 +10,7 @@ export function addHookScript(hook: string, script: string): Rule {

if (!tree.exists(hookFile)) {
return addSchematicsTask(async function createHookFile() {
const { execa } = await import('execa');
debug('create hook %s with script: %s', hook, script);
await execa('npx', ['husky', 'add', hookFile, script]);
});
Expand All @@ -23,6 +23,7 @@ export function addHookScript(hook: string, script: string): Rule {
}

return addSchematicsTask(async function appendHookFile() {
const { execa } = await import('execa');
debug('append hook %s with script: %s', hook, script);
await execa('npx', ['husky', 'add', hookFile, script]);
});
Expand Down
32 changes: 31 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ esutils@^2.0.2:
resolved "https://registry.npmmirror.com/esutils/download/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha1-dNLrTeC42hKTcRkQ1Qd1ubcQ72Q=

execa@^5.0.0, execa@^5.1.1:
execa@^5.0.0:
version "5.1.1"
resolved "https://registry.npmmirror.com/execa/download/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
integrity sha1-+ArZy/Qpj3vR1MlVXCHpN0HEEd0=
Expand Down Expand Up @@ -1061,6 +1061,21 @@ execa@^6.1.0:
signal-exit "^3.0.7"
strip-final-newline "^3.0.0"

execa@^8.0.1:
version "8.0.1"
resolved "https://registry.npmmirror.com/execa/-/execa-8.0.1.tgz#51f6a5943b580f963c3ca9c6321796db8cc39b8c"
integrity sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==
dependencies:
cross-spawn "^7.0.3"
get-stream "^8.0.1"
human-signals "^5.0.0"
is-stream "^3.0.0"
merge-stream "^2.0.0"
npm-run-path "^5.1.0"
onetime "^6.0.0"
signal-exit "^4.1.0"
strip-final-newline "^3.0.0"

fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
version "3.1.3"
resolved "https://registry.npmmirror.com/fast-deep-equal/download/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
Expand Down Expand Up @@ -1176,6 +1191,11 @@ get-stream@^6.0.0, get-stream@^6.0.1:
resolved "https://registry.npmmirror.com/get-stream/download/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
integrity sha1-omLY7vZ6ztV8KFKtYWdSakPL97c=

get-stream@^8.0.1:
version "8.0.1"
resolved "https://registry.npmmirror.com/get-stream/-/get-stream-8.0.1.tgz#def9dfd71742cd7754a7761ed43749a27d02eca2"
integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==

git-raw-commits@^2.0.0:
version "2.0.10"
resolved "https://registry.npmmirror.com/git-raw-commits/download/git-raw-commits-2.0.10.tgz#e2255ed9563b1c9c3ea6bd05806410290297bbc1"
Expand Down Expand Up @@ -1288,6 +1308,11 @@ human-signals@^3.0.1:
resolved "https://registry.npmmirror.com/human-signals/-/human-signals-3.0.1.tgz#c740920859dafa50e5a3222da9d3bf4bb0e5eef5"
integrity sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==

human-signals@^5.0.0:
version "5.0.0"
resolved "https://registry.npmmirror.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==

husky@^8.0.0:
version "8.0.1"
resolved "https://registry.npmmirror.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9"
Expand Down Expand Up @@ -2120,6 +2145,11 @@ signal-exit@^3.0.7:
resolved "https://registry.npmmirror.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==

signal-exit@^4.1.0:
version "4.1.0"
resolved "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04"
integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==

slash@^3.0.0:
version "3.0.0"
resolved "https://registry.npmmirror.com/slash/download/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
Expand Down

0 comments on commit 2335192

Please sign in to comment.