@open-audio-stack/core 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -218,3 +218,4 @@ export declare const PackageVersionValidator: z.ZodObject<{
|
|
|
218
218
|
export declare const SemverValidator: z.ZodString;
|
|
219
219
|
export declare function packageRecommendations(pkgVersion: PackageVersion): PackageValidationRec[];
|
|
220
220
|
export declare function packageRecommendationsUrl(obj: PackageVersion | PluginFile | PresetFile | ProjectFile, recs: PackageValidationRec[], field: string, domain?: string): void;
|
|
221
|
+
export declare function packageToYaml(pkgVersion: PackageVersion): string;
|
package/build/helpers/package.js
CHANGED
|
@@ -9,6 +9,7 @@ import { PresetType } from '../types/PresetType.js';
|
|
|
9
9
|
import { ProjectType } from '../types/ProjectType.js';
|
|
10
10
|
import { SystemType } from '../types/SystemType.js';
|
|
11
11
|
import { pathGetExt } from './utils.js';
|
|
12
|
+
import yaml from 'js-yaml';
|
|
12
13
|
export function packageCompatibleFiles(pkg, arch, sys, excludedFormats) {
|
|
13
14
|
return pkg.files.filter((file) => {
|
|
14
15
|
const archMatches = file.architectures.filter(architecture => {
|
|
@@ -193,3 +194,6 @@ export function packageRecommendationsUrl(obj, recs, field, domain) {
|
|
|
193
194
|
});
|
|
194
195
|
}
|
|
195
196
|
}
|
|
197
|
+
export function packageToYaml(pkgVersion) {
|
|
198
|
+
return yaml.dump(pkgVersion);
|
|
199
|
+
}
|