Skip to content

Commit 796d1c7

Browse files
committed
deps: @npmcli/run-script@7.0.3
1 parent 3b7f6f2 commit 796d1c7

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

node_modules/@npmcli/run-script/lib/signal-manager.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
const runningProcs = new Set()
22
let handlersInstalled = false
33

4-
// NOTE: these signals aren't actually forwarded anywhere. they're trapped and
5-
// ignored until all child processes have exited. in our next breaking change
6-
// we should rename this
74
const forwardedSignals = [
85
'SIGINT',
96
'SIGTERM',
@@ -12,8 +9,12 @@ const forwardedSignals = [
129
// no-op, this is so receiving the signal doesn't cause us to exit immediately
1310
// instead, we exit after all children have exited when we re-send the signal
1411
// to ourselves. see the catch handler at the bottom of run-script-pkg.js
15-
// istanbul ignore next - this function does nothing
16-
const handleSignal = () => {}
12+
const handleSignal = signal => {
13+
for (const proc of runningProcs) {
14+
proc.kill(signal)
15+
}
16+
}
17+
1718
const setupListeners = () => {
1819
for (const signal of forwardedSignals) {
1920
process.on(signal, handleSignal)

node_modules/@npmcli/run-script/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@npmcli/run-script",
3-
"version": "7.0.2",
3+
"version": "7.0.3",
44
"description": "Run a lifecycle script for a package (descendant of npm-lifecycle)",
55
"author": "GitHub Inc.",
66
"license": "ISC",
77
"scripts": {
88
"test": "tap",
99
"eslint": "eslint",
10-
"lint": "eslint \"**/*.js\"",
10+
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
1111
"lintfix": "npm run lint -- --fix",
1212
"postlint": "template-oss-check",
1313
"snap": "tap",
@@ -16,7 +16,7 @@
1616
},
1717
"devDependencies": {
1818
"@npmcli/eslint-config": "^4.0.0",
19-
"@npmcli/template-oss": "4.19.0",
19+
"@npmcli/template-oss": "4.21.3",
2020
"require-inject": "^1.4.4",
2121
"tap": "^16.0.1"
2222
},
@@ -41,7 +41,7 @@
4141
},
4242
"templateOSS": {
4343
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
44-
"version": "4.19.0",
44+
"version": "4.21.3",
4545
"publish": "true"
4646
},
4747
"tap": {

package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"@npmcli/map-workspaces": "^3.0.4",
9797
"@npmcli/package-json": "^5.0.0",
9898
"@npmcli/promise-spawn": "^7.0.1",
99-
"@npmcli/run-script": "^7.0.2",
99+
"@npmcli/run-script": "^7.0.3",
100100
"@sigstore/tuf": "^2.2.0",
101101
"abbrev": "^2.0.0",
102102
"archy": "~1.0.0",
@@ -1956,9 +1956,9 @@
19561956
}
19571957
},
19581958
"node_modules/@npmcli/run-script": {
1959-
"version": "7.0.2",
1960-
"resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-7.0.2.tgz",
1961-
"integrity": "sha512-Omu0rpA8WXvcGeY6DDzyRoY1i5DkCBkzyJ+m2u7PD6quzb0TvSqdIPOkTn8ZBOj7LbbcbMfZ3c5skwSu6m8y2w==",
1959+
"version": "7.0.3",
1960+
"resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-7.0.3.tgz",
1961+
"integrity": "sha512-ZMWGLHpzMq3rBGIwPyeaoaleaLMvrBrH8nugHxTi5ACkJZXTxXPtVuEH91ifgtss5hUwJQ2VDnzDBWPmz78rvg==",
19621962
"inBundle": true,
19631963
"dependencies": {
19641964
"@npmcli/node-gyp": "^3.0.0",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@npmcli/map-workspaces": "^3.0.4",
5959
"@npmcli/package-json": "^5.0.0",
6060
"@npmcli/promise-spawn": "^7.0.1",
61-
"@npmcli/run-script": "^7.0.2",
61+
"@npmcli/run-script": "^7.0.3",
6262
"@sigstore/tuf": "^2.2.0",
6363
"abbrev": "^2.0.0",
6464
"archy": "~1.0.0",

0 commit comments

Comments
 (0)