@open-audio-stack/core 0.1.7 → 0.1.8

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.
@@ -1,7 +1,7 @@
1
1
  import path from 'path';
2
2
  import { Package } from './Package.js';
3
3
  import { Manager } from './Manager.js';
4
- import { archiveExtract, dirCreate, dirDelete, dirEmpty, dirRead, fileCreate, fileCreateJson, fileExists, fileHash, fileOpen, fileReadJson, filesMove, isAdmin, runCliAsAdmin, } from '../helpers/file.js';
4
+ import { archiveExtract, dirCreate, dirDelete, dirEmpty, dirRead, fileCreate, fileCreateJson, fileExists, fileHash, fileOpen, fileReadJson, fileReadYaml, filesMove, isAdmin, runCliAsAdmin, } from '../helpers/file.js';
5
5
  import { pathGetSlug, pathGetVersion } from '../helpers/utils.js';
6
6
  import { commandExists, getArchitecture, getSystem, isTests } from '../helpers/utilsLocal.js';
7
7
  import { apiBuffer } from '../helpers/api.js';
@@ -25,7 +25,7 @@ export class ManagerLocal extends Manager {
25
25
  const filePaths = dirRead(`${this.typeDir}/**/index.${ext}`);
26
26
  filePaths.forEach((filePath) => {
27
27
  const subPath = filePath.replace(`${this.typeDir}/`, '');
28
- const pkgJson = fileReadJson(filePath);
28
+ const pkgJson = ext === 'yaml' ? fileReadYaml(filePath) : fileReadJson(filePath);
29
29
  pkgJson.installed = true;
30
30
  const pkg = new Package(pathGetSlug(subPath));
31
31
  pkg.addVersion(pathGetVersion(subPath), pkgJson);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",