From 32a90de75d47307859fd7edd6456b96783b2648c Mon Sep 17 00:00:00 2001 From: reggi Date: Wed, 18 Sep 2024 15:48:35 -0400 Subject: [PATCH 1/3] feat: add devEngines --- types/index.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 293b1e0..c99cdae 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -86,6 +86,20 @@ interface Dist { unpackedSize?: number } +interface DevEngines { + os?: DevEngineDependency | DevEngineDependency[]; + cpu?: DevEngineDependency | DevEngineDependency[]; + libc?: DevEngineDependency | DevEngineDependency[]; + runtime?: DevEngineDependency | DevEngineDependency[]; + packageManager?: DevEngineDependency | DevEngineDependency[]; +} + +interface DevEngineDependency { + name: string; + version?: string; + onFail?: 'ignore' | 'warn' | 'error'; +} + // this is in the tarball for the project. it really could have anything in it. export interface PackageJSON { author?: Contact | string @@ -100,6 +114,7 @@ export interface PackageJSON { dependencies?: Record description?: string devDependencies?: Record + devEngines?: DevEngines directories?: Record engines?: Record files?: string[] From 7eecc994a7428548577bf871757f2fce43c71c22 Mon Sep 17 00:00:00 2001 From: Reggi Date: Wed, 18 Sep 2024 16:11:28 -0400 Subject: [PATCH 2/3] add download, rm colins --- types/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index c99cdae..a7e98d8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -87,17 +87,17 @@ interface Dist { } interface DevEngines { - os?: DevEngineDependency | DevEngineDependency[]; - cpu?: DevEngineDependency | DevEngineDependency[]; - libc?: DevEngineDependency | DevEngineDependency[]; - runtime?: DevEngineDependency | DevEngineDependency[]; - packageManager?: DevEngineDependency | DevEngineDependency[]; + os?: DevEngineDependency | DevEngineDependency[] + cpu?: DevEngineDependency | DevEngineDependency[] + libc?: DevEngineDependency | DevEngineDependency[] + runtime?: DevEngineDependency | DevEngineDependency[] + packageManager?: DevEngineDependency | DevEngineDependency[] } interface DevEngineDependency { - name: string; - version?: string; - onFail?: 'ignore' | 'warn' | 'error'; + name: string + version?: string + onFail?: 'ignore' | 'warn' | 'error' | 'download' } // this is in the tarball for the project. it really could have anything in it. From a2ea4c532ceefccd78eac122e594d7b421a7d05f Mon Sep 17 00:00:00 2001 From: reggi Date: Fri, 20 Sep 2024 10:34:21 -0400 Subject: [PATCH 3/3] flip usage --- types/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index a7e98d8..ac4432d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -86,6 +86,12 @@ interface Dist { unpackedSize?: number } +interface DevEngineDependency { + name: string + version?: string + onFail?: 'ignore' | 'warn' | 'error' | 'download' +} + interface DevEngines { os?: DevEngineDependency | DevEngineDependency[] cpu?: DevEngineDependency | DevEngineDependency[] @@ -94,12 +100,6 @@ interface DevEngines { packageManager?: DevEngineDependency | DevEngineDependency[] } -interface DevEngineDependency { - name: string - version?: string - onFail?: 'ignore' | 'warn' | 'error' | 'download' -} - // this is in the tarball for the project. it really could have anything in it. export interface PackageJSON { author?: Contact | string