Skip to content

Commit bb5676a

Browse files
committed
chore: remove duplicate type
1 parent 7b94343 commit bb5676a

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

app/utils/install-scripts.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
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
1113
const 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.

0 commit comments

Comments
 (0)