run-script:为包运行生命周期脚本(npm-lifecycle的后代)

时间:2024-05-18 03:34:13
【文件属性】:

文件名称:run-script:为包运行生命周期脚本(npm-lifecycle的后代)

文件大小:109KB

文件格式:ZIP

更新时间:2024-05-18 03:34:13

JavaScript

@ npmcli / run-script 为包运行生命周期脚本(npm-lifecycle的后代) 用法 const runScript = require ( '@npmcli/run-script' ) runScript ( { // required, the script to run event : 'install' , // extra args to pass to the command, defaults to [] args : [ ] , // required, the folder where the package lives path : '/path/to/package/folder' , // optional, defaults to /bin/sh on unix, or cmd.exe on windows


【文件预览】:
run-script-master
----.github()
--------settings.yml(48B)
--------workflows()
----map.js(54B)
----lib()
--------node-gyp-bin()
--------make-spawn-args.js(1KB)
--------is-server-package.js(314B)
--------set-path.js(2KB)
--------package-envs.js(683B)
--------validate-options.js(1KB)
--------is-windows.js(113B)
--------signal-manager.js(812B)
--------run-script-pkg.js(2KB)
--------run-script.js(484B)
----LICENSE(739B)
----test()
--------make-spawn-args.js(3KB)
--------is-server-package.js(759B)
--------set-path.js(2KB)
--------package-envs.js(1KB)
--------validate-options.js(1KB)
--------is-windows.js(393B)
--------signal-manager.js(2KB)
--------node-gyp-bin.js(540B)
--------run-script-pkg.js(10KB)
--------run-script.js(671B)
----README.md(6KB)
----.gitignore(282B)
----package-lock.json(397KB)
----package.json(1KB)

网友评论