Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add devEngines #85

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ interface Dist {
unpackedSize?: number
}

interface DevEngineDependency {
name: string
hashtagchris marked this conversation as resolved.
Show resolved Hide resolved
version?: string
onFail?: 'ignore' | 'warn' | 'error' | 'download'
}

interface DevEngines {
os?: DevEngineDependency | DevEngineDependency[]
cpu?: DevEngineDependency | DevEngineDependency[]
libc?: DevEngineDependency | DevEngineDependency[]
runtime?: DevEngineDependency | DevEngineDependency[]
packageManager?: DevEngineDependency | DevEngineDependency[]
}

// this is in the tarball for the project. it really could have anything in it.
export interface PackageJSON {
author?: Contact | string
Expand All @@ -100,6 +114,7 @@ export interface PackageJSON {
dependencies?: Record<string, string>
description?: string
devDependencies?: Record<string, string>
devEngines?: DevEngines
directories?: Record<string, string>
engines?: Record<string, string>
files?: string[]
Expand Down
Loading