File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 * Also extracts npx package calls from those scripts.
88 */
99
10+ import type { InstallScriptsInfo } from '#shared/types'
11+
1012// Scripts that run when installing a package as a dependency
1113const INSTALL_SCRIPTS = new Set ( [ 'preinstall' , 'install' , 'postinstall' ] )
1214
@@ -82,15 +84,6 @@ function isBuiltinCommand(name: string): boolean {
8284 return builtins . has ( name )
8385}
8486
85- export interface InstallScriptsInfo {
86- /** Which install scripts are present */
87- scripts : ( 'preinstall' | 'install' | 'postinstall' ) [ ]
88- /** The actual script content for each install script */
89- content : Record < string , string >
90- /** npx packages called in those scripts */
91- npxDependencies : Record < string , string >
92- }
93-
9487/**
9588 * Extract install script information from package.json scripts.
9689 * Returns info about which install scripts exist and any npx packages they call.
You can’t perform that action at this time.
0 commit comments