@mxpicture/build-api 0.2.57 → 0.2.59

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.
Files changed (48) hide show
  1. package/dist/common/common.json.d.ts +6 -0
  2. package/dist/common/common.json.d.ts.map +1 -1
  3. package/dist/common/common.json.js +18 -0
  4. package/dist/common/common.json.js.map +1 -1
  5. package/dist/exp/ExportsExtractor.d.ts +44 -0
  6. package/dist/exp/ExportsExtractor.d.ts.map +1 -0
  7. package/dist/exp/ExportsExtractor.js +179 -0
  8. package/dist/exp/ExportsExtractor.js.map +1 -0
  9. package/dist/exp/ExportsJsonFile.d.ts +13 -0
  10. package/dist/exp/ExportsJsonFile.d.ts.map +1 -0
  11. package/dist/exp/ExportsJsonFile.js +59 -0
  12. package/dist/exp/ExportsJsonFile.js.map +1 -0
  13. package/dist/exp/ExportsTsFile.d.ts +9 -0
  14. package/dist/exp/ExportsTsFile.d.ts.map +1 -0
  15. package/dist/exp/ExportsTsFile.js +29 -0
  16. package/dist/exp/ExportsTsFile.js.map +1 -0
  17. package/dist/exp/exports.d.ts +3 -0
  18. package/dist/exp/exports.d.ts.map +1 -0
  19. package/dist/exp/exports.js +945 -0
  20. package/dist/exp/exports.js.map +1 -0
  21. package/dist/exp/index.d.ts +5 -0
  22. package/dist/exp/index.d.ts.map +1 -0
  23. package/dist/exp/index.js +6 -0
  24. package/dist/exp/index.js.map +1 -0
  25. package/dist/pkg/pkg.fs.d.ts.map +1 -1
  26. package/dist/pkg/pkg.fs.js +4 -5
  27. package/dist/pkg/pkg.fs.js.map +1 -1
  28. package/dist/scripts/generateOwnExports.d.ts +2 -0
  29. package/dist/scripts/generateOwnExports.d.ts.map +1 -0
  30. package/dist/scripts/generateOwnExports.js +24 -0
  31. package/dist/scripts/generateOwnExports.js.map +1 -0
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/types/index.js +1 -0
  35. package/dist/types/index.js.map +1 -1
  36. package/dist/types/types.exports.d.ts +42 -0
  37. package/dist/types/types.exports.d.ts.map +1 -0
  38. package/dist/types/types.exports.js +2 -0
  39. package/dist/types/types.exports.js.map +1 -0
  40. package/dist/vscode/vscode.settings.d.ts.map +1 -1
  41. package/dist/vscode/vscode.settings.js +2 -2
  42. package/dist/vscode/vscode.settings.js.map +1 -1
  43. package/dist/vscode/vscode.storage.d.ts.map +1 -1
  44. package/dist/vscode/vscode.storage.js +2 -2
  45. package/dist/vscode/vscode.storage.js.map +1 -1
  46. package/dist/vscode/vscode.workspace.js +2 -2
  47. package/dist/vscode/vscode.workspace.js.map +1 -1
  48. package/package.json +8 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exp/exports.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE;QACX;YACE,EAAE,EAAE,6BAA6B;YACjC,IAAI,EAAE,wBAAwB;SAC/B;QACD;YACE,EAAE,EAAE,8BAA8B;YAClC,IAAI,EAAE,yBAAyB;SAChC;QACD;YACE,EAAE,EAAE,2BAA2B;YAC/B,IAAI,EAAE,sBAAsB;SAC7B;QACD;YACE,EAAE,EAAE,6BAA6B;YACjC,IAAI,EAAE,wBAAwB;SAC/B;QACD;YACE,EAAE,EAAE,2BAA2B;YAC/B,IAAI,EAAE,sBAAsB;SAC7B;QACD;YACE,EAAE,EAAE,0BAA0B;YAC9B,IAAI,EAAE,qBAAqB;SAC5B;QACD;YACE,EAAE,EAAE,0BAA0B;YAC9B,IAAI,EAAE,qBAAqB;SAC5B;QACD;YACE,EAAE,EAAE,6BAA6B;YACjC,IAAI,EAAE,wBAAwB;SAC/B;QACD;YACE,EAAE,EAAE,iCAAiC;YACrC,IAAI,EAAE,4BAA4B;SACnC;QACD;YACE,EAAE,EAAE,6BAA6B;YACjC,IAAI,EAAE,wBAAwB;SAC/B;QACD;YACE,EA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;QACD;YACE,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,kBAAkB;YACxB,MAAM,EACJ,wFAAwF;SAC3F;QACD;YACE,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,kBAAkB;YACxB,MAAM,EACJ,0FAA0F;SAC7F;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,kBAAkB;YACxB,MAAM,EACJ,2FAA2F;SAC9F;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,kBAAkB;YACxB,MAAM,EACJ,4FAA4F;SAC/F;QACD;YACE,IAAI,EAAE,yBAAyB;YAC/B,IAAI,EAAE,kBAAkB;YACxB,MAAM,EACJ,4FAA4F;SAC/F;QACD;YACE,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,kBAAkB;YACxB,MAAM,EACJ,4FAA4F;SAC/F;QACD;YACE,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,MAAM;YACZ,MAAM,EACJ,yFAAyF;SAC5F;QACD;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,kBAAkB;YACxB,MAAM,EACJ,sFAAsF;SACzF;QACD;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,kBAAkB;YACxB,MAAM,EACJ,oFAAoF;SACvF;KACF;CACF,CAAC","sourcesContent":["import { PackageAPI } from \"../types/types.exports.js\";\n\nexport const pkgExport: PackageAPI = {\n packageName: \"@mxpicture/build-api\",\n entrypoints: [\n {\n id: \"@mxpicture/build-api/barrel\",\n file: \"./dist/barrel/index.js\",\n },\n {\n id: \"@mxpicture/build-api/cleanup\",\n file: \"./dist/cleanup/index.js\",\n },\n {\n id: \"@mxpicture/build-api/code\",\n file: \"./dist/code/index.js\",\n },\n {\n id: \"@mxpicture/build-api/common\",\n file: \"./dist/common/index.js\",\n },\n {\n id: \"@mxpicture/build-api/deps\",\n file: \"./dist/deps/index.js\",\n },\n {\n id: \"@mxpicture/build-api/exp\",\n file: \"./dist/exp/index.js\",\n },\n {\n id: \"@mxpicture/build-api/git\",\n file: \"./dist/git/index.js\",\n },\n {\n id: \"@mxpicture/build-api/logger\",\n file: \"./dist/logger/index.js\",\n },\n {\n id: \"@mxpicture/build-api/npmPublish\",\n file: \"./dist/npmPublish/index.js\",\n },\n {\n id: \"@mxpicture/build-api/osInfo\",\n file: \"./dist/osInfo/index.js\",\n },\n {\n id: \"@mxpicture/build-api/pkg\",\n file: \"./dist/pkg/index.js\",\n },\n {\n id: \"@mxpicture/build-api/types\",\n file: \"./dist/types/index.js\",\n },\n {\n id: \"@mxpicture/build-api/vscode\",\n file: \"./dist/vscode/index.js\",\n },\n {\n id: \"@mxpicture/build-api/workspace\",\n file: \"./dist/workspace/index.js\",\n },\n {\n id: \"@mxpicture/build-api/package.json\",\n file: \"./package.json\",\n },\n ],\n runtimeExports: [\n {\n name: \"Barrel\",\n kind: \"function\",\n source: \"@mxpicture/build-api/barrel\",\n },\n {\n name: \"DEFAULT_EXCLUDED_PATTERNS\",\n kind: \"object\",\n source: \"@mxpicture/build-api/barrel\",\n },\n {\n name: \"DEFAULT_HEADER\",\n kind: \"string\",\n source: \"@mxpicture/build-api/barrel\",\n },\n {\n name: \"runBarrel\",\n kind: \"function\",\n source: \"@mxpicture/build-api/barrel\",\n },\n {\n name: \"Cleanup\",\n kind: \"function\",\n source: \"@mxpicture/build-api/cleanup\",\n },\n {\n name: \"runCleanup\",\n kind: \"function\",\n source: \"@mxpicture/build-api/cleanup\",\n },\n {\n name: \"createSourceFileMap\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"createSourceFiles\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"declarationKindName\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"fileExportsByFile\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"fileExportsCompilerApi\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"formatCode\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"formatJson\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"formatJsonStringify\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"guessKindFromFlags\",\n kind: \"function\",\n source: \"@mxpicture/build-api/code\",\n },\n {\n name: \"JsonStringifyFormat\",\n kind: \"object\",\n source: \"@mxpicture/build-api/common\",\n },\n {\n name: \"execAsync\",\n kind: \"function\",\n source: \"@mxpicture/build-api/common\",\n },\n {\n name: \"existsAsync\",\n kind: \"function\",\n source: \"@mxpicture/build-api/common\",\n },\n {\n name: \"jsonClone\",\n kind: \"function\",\n source: \"@mxpicture/build-api/common\",\n },\n {\n name: \"jsonEqual\",\n kind: \"function\",\n source: \"@mxpicture/build-api/common\",\n },\n {\n name: \"jsonParse\",\n kind: \"function\",\n source: \"@mxpicture/build-api/common\",\n },\n {\n name: \"jsonStringify\",\n kind: \"function\",\n source: \"@mxpicture/build-api/common\",\n },\n {\n name: \"FixWorkspaceDepsFile\",\n kind: \"function\",\n source: \"@mxpicture/build-api/deps\",\n },\n {\n name: \"FixWorkspaceDepsVersion\",\n kind: \"function\",\n source: \"@mxpicture/build-api/deps\",\n },\n {\n name: \"IFixWorkspaceDeps\",\n kind: \"function\",\n source: \"@mxpicture/build-api/deps\",\n },\n {\n name: \"instanceFixDeps\",\n kind: \"function\",\n source: \"@mxpicture/build-api/deps\",\n },\n {\n name: \"runFixDeps\",\n kind: \"function\",\n source: \"@mxpicture/build-api/deps\",\n },\n {\n name: \"ExportsExtractor\",\n kind: \"function\",\n source: \"@mxpicture/build-api/exp\",\n },\n {\n name: \"ExportsJsonFile\",\n kind: \"function\",\n source: \"@mxpicture/build-api/exp\",\n },\n {\n name: \"ExportsTsFile\",\n kind: \"function\",\n source: \"@mxpicture/build-api/exp\",\n },\n {\n name: \"loadExportsJsonFile\",\n kind: \"function\",\n source: \"@mxpicture/build-api/exp\",\n },\n {\n name: \"pkgExport\",\n kind: \"object\",\n source: \"@mxpicture/build-api/exp\",\n },\n {\n name: \"runExportsExtractor\",\n kind: \"function\",\n source: \"@mxpicture/build-api/exp\",\n },\n {\n name: \"GitChanges\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"__resetGitEntries\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"commitHashs\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"ensureCommitRef\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"gitChanges\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"initGitChanges\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"lastCommitHash\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"lastTag\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"tags\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"verifiedGit\",\n kind: \"function\",\n source: \"@mxpicture/build-api/git\",\n },\n {\n name: \"consoleLogger\",\n kind: \"object\",\n source: \"@mxpicture/build-api/logger\",\n },\n {\n name: \"initLogger\",\n kind: \"function\",\n source: \"@mxpicture/build-api/logger\",\n },\n {\n name: \"logError\",\n kind: \"function\",\n source: \"@mxpicture/build-api/logger\",\n },\n {\n name: \"logInfo\",\n kind: \"function\",\n source: \"@mxpicture/build-api/logger\",\n },\n {\n name: \"logSuccess\",\n kind: \"function\",\n source: \"@mxpicture/build-api/logger\",\n },\n {\n name: \"logger\",\n kind: \"function\",\n source: \"@mxpicture/build-api/logger\",\n },\n {\n name: \"silentLogger\",\n kind: \"object\",\n source: \"@mxpicture/build-api/logger\",\n },\n {\n name: \"NpmPublisher\",\n kind: \"function\",\n source: \"@mxpicture/build-api/npmPublish\",\n },\n {\n name: \"runNpmPublisher\",\n kind: \"function\",\n source: \"@mxpicture/build-api/npmPublish\",\n },\n {\n name: \"__resetOsInfo\",\n kind: \"function\",\n source: \"@mxpicture/build-api/osInfo\",\n },\n {\n name: \"defaultInfo\",\n kind: \"function\",\n source: \"@mxpicture/build-api/osInfo\",\n },\n {\n name: \"osInfo\",\n kind: \"function\",\n source: \"@mxpicture/build-api/osInfo\",\n },\n {\n name: \"wslInfo\",\n kind: \"function\",\n source: \"@mxpicture/build-api/osInfo\",\n },\n {\n name: \"Pkg\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"SyncPkgVersion\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"UpdatePackages\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"bumpVersion\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"compareVersions\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"compareVersionsGT\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"concatVersion\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"ensurePkgJsonPath\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"readPackageJson\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"readPackageJsonSync\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"runSyncPkgVersion\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"runUpdatePackages\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"splitVersion\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"writePackageJson\",\n kind: \"function\",\n source: \"@mxpicture/build-api/pkg\",\n },\n {\n name: \"ChangeWatchType\",\n kind: \"object\",\n source: \"@mxpicture/build-api/types\",\n },\n {\n name: \"DepsProcessMode\",\n kind: \"object\",\n source: \"@mxpicture/build-api/types\",\n },\n {\n name: \"DepsReplacementMode\",\n kind: \"object\",\n source: \"@mxpicture/build-api/types\",\n },\n {\n name: \"WorkspaceFileType\",\n kind: \"object\",\n source: \"@mxpicture/build-api/types\",\n },\n {\n name: \"__resetSettings\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"__resetStorage\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"activeProfile\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"clangFormatStyle\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"configPath\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"configUserPath\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"defaultSettingsPath\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"profileSettingsPath\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"profiles\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"storage\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"storagePath\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"vscodeSettings\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"vscodeWorkspace\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"vscodeWorkspaceRoot\",\n kind: \"function\",\n source: \"@mxpicture/build-api/vscode\",\n },\n {\n name: \"DEFAULT_WORKSPACE_FILE_ENDING\",\n kind: \"string\",\n source: \"@mxpicture/build-api/workspace\",\n },\n {\n name: \"Workspace\",\n kind: \"function\",\n source: \"@mxpicture/build-api/workspace\",\n },\n {\n name: \"__resetWorkspaceRoot\",\n kind: \"function\",\n source: \"@mxpicture/build-api/workspace\",\n },\n {\n name: \"findWorkspaceRoot\",\n kind: \"function\",\n source: \"@mxpicture/build-api/workspace\",\n },\n {\n name: \"getFileType\",\n kind: \"function\",\n source: \"@mxpicture/build-api/workspace\",\n },\n {\n name: \"initWorkspace\",\n kind: \"function\",\n source: \"@mxpicture/build-api/workspace\",\n },\n {\n name: \"readWorkspaceYaml\",\n kind: \"function\",\n source: \"@mxpicture/build-api/workspace\",\n },\n {\n name: \"workspace\",\n kind: \"function\",\n source: \"@mxpicture/build-api/workspace\",\n },\n {\n name: \"author\",\n kind: \"string\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"default\",\n kind: \"object\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"dependencies\",\n kind: \"object\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"description\",\n kind: \"string\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"engines\",\n kind: \"object\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"exports\",\n kind: \"object\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"files\",\n kind: \"object\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"license\",\n kind: \"string\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"name\",\n kind: \"string\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"publishConfig\",\n kind: \"object\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"repository\",\n kind: \"object\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"scripts\",\n kind: \"object\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"type\",\n kind: \"string\",\n source: \"@mxpicture/build-api/package.json\",\n },\n {\n name: \"version\",\n kind: \"string\",\n source: \"@mxpicture/build-api/package.json\",\n },\n ],\n typeExports: [\n {\n name: \"WorkspaceData\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/workspace/Workspace.d.ts\",\n },\n {\n name: \"Workspace\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/workspace/Workspace.d.ts\",\n },\n {\n name: \"PnpmWorkspace\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.workspace.d.ts\",\n },\n {\n name: \"WorkspaceFileType\",\n kind: \"enum\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.workspace.d.ts\",\n },\n {\n name: \"WorkspaceFile\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.workspace.d.ts\",\n },\n {\n name: \"VSCodeProfile\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.vscode.d.ts\",\n },\n {\n name: \"VSCodeStorage\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.vscode.d.ts\",\n },\n {\n name: \"VSCodeSettings\",\n kind: \"TypeAliasDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.vscode.d.ts\",\n },\n {\n name: \"VSCodeWorkspaceFolder\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.vscode.d.ts\",\n },\n {\n name: \"VSCodeWorkspace\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.vscode.d.ts\",\n },\n {\n name: \"RunRepoRootParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.run.d.ts\",\n },\n {\n name: \"PackageVersion\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.package.d.ts\",\n },\n {\n name: \"PackageJson\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.package.d.ts\",\n },\n {\n name: \"MapEntry\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.package.d.ts\",\n },\n {\n name: \"BumpParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.package.d.ts\",\n },\n {\n name: \"SyncPkgVersionParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.package.d.ts\",\n },\n {\n name: \"UpdatePackagesParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.package.d.ts\",\n },\n {\n name: \"OSInfo\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.os.d.ts\",\n },\n {\n name: \"NpmPublisherParams\",\n kind: \"TypeAliasDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.npm.d.ts\",\n },\n {\n name: \"GitChangedResult\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.git.d.ts\",\n },\n {\n name: \"GitChangedContent\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.git.d.ts\",\n },\n {\n name: \"GitChangedContentsResult\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.git.d.ts\",\n },\n {\n name: \"GitCommitHash\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.git.d.ts\",\n },\n {\n name: \"ExportNode\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.exports.d.ts\",\n },\n {\n name: \"EntryPoint\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.exports.d.ts\",\n },\n {\n name: \"PackageAPI\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.exports.d.ts\",\n },\n {\n name: \"ExportsExtractorParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.exports.d.ts\",\n },\n {\n name: \"DocumentFieldValue\",\n kind: \"TypeAliasDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.documents.d.ts\",\n },\n {\n name: \"DocumentData\",\n kind: \"TypeAliasDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.documents.d.ts\",\n },\n {\n name: \"DepsProcessMode\",\n kind: \"enum\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.deps.d.ts\",\n },\n {\n name: \"DepsReplacementMode\",\n kind: \"enum\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.deps.d.ts\",\n },\n {\n name: \"FixWorkspaceDepsMain\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.deps.d.ts\",\n },\n {\n name: \"FixWorkspaceDepsData\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.deps.d.ts\",\n },\n {\n name: \"FixWorkspaceDepsParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.deps.d.ts\",\n },\n {\n name: \"SourceFile\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.code.d.ts\",\n },\n {\n name: \"SourceExportItem\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.code.d.ts\",\n },\n {\n name: \"SourceExport\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.code.d.ts\",\n },\n {\n name: \"FileExportsParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.code.d.ts\",\n },\n {\n name: \"ToBeDeleted\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.cleanup.d.ts\",\n },\n {\n name: \"ToCleanup\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.cleanup.d.ts\",\n },\n {\n name: \"CleanupParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.cleanup.d.ts\",\n },\n {\n name: \"ChangeWatchType\",\n kind: \"enum\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.changelog.d.ts\",\n },\n {\n name: \"ChangeWatch\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.changelog.d.ts\",\n },\n {\n name: \"ChangeEventHandler\",\n kind: \"TypeAliasDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.changelog.d.ts\",\n },\n {\n name: \"ChangeWatchHandler\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.changelog.d.ts\",\n },\n {\n name: \"BarrelGroup\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.barrel.d.ts\",\n },\n {\n name: \"BarrelResult\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.barrel.d.ts\",\n },\n {\n name: \"BarrelParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.barrel.d.ts\",\n },\n {\n name: \"BarrelPersistParams\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/types/types.barrel.d.ts\",\n },\n {\n name: \"UpdatePackages\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/pkg/UpdatePackages.d.ts\",\n },\n {\n name: \"SyncPkgVersion\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/pkg/SyncPkgVersion.d.ts\",\n },\n {\n name: \"Pkg\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/pkg/Pkg.d.ts\",\n },\n {\n name: \"NpmPublisher\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/npmPublish/NpmPublisher.d.ts\",\n },\n {\n name: \"LoggerHandler\",\n kind: \"TypeAliasDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/logger/Logger.d.ts\",\n },\n {\n name: \"Logger\",\n kind: \"InterfaceDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/logger/Logger.d.ts\",\n },\n {\n name: \"GitChanges\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/git/GitChanges.d.ts\",\n },\n {\n name: \"ExportsTsFile\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/exp/ExportsTsFile.d.ts\",\n },\n {\n name: \"ExportsJsonFile\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/exp/ExportsJsonFile.d.ts\",\n },\n {\n name: \"ExportsExtractor\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/exp/ExportsExtractor.d.ts\",\n },\n {\n name: \"IFixWorkspaceDeps\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/deps/FixWorkspaceDeps.d.ts\",\n },\n {\n name: \"FixWorkspaceDepsVersion\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/deps/FixWorkspaceDeps.d.ts\",\n },\n {\n name: \"FixWorkspaceDepsFile\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/deps/FixWorkspaceDeps.d.ts\",\n },\n {\n name: \"JsonStringifyFormat\",\n kind: \"enum\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/common/common.json.d.ts\",\n },\n {\n name: \"Cleanup\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/cleanup/Cleanup.d.ts\",\n },\n {\n name: \"Barrel\",\n kind: \"ClassDeclaration\",\n source:\n \"/home/runner/work/npm-build-cli/npm-build-cli/packages/api/dist/barrel/Barrel.d.ts\",\n },\n ],\n};\n"]}
@@ -0,0 +1,5 @@
1
+ export * from "./ExportsExtractor.js";
2
+ export * from "./ExportsJsonFile.js";
3
+ export * from "./ExportsTsFile.js";
4
+ export * from "./exports.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exp/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ // This file is auto-generated for build-cli. Do not edit manually.
2
+ export * from "./ExportsExtractor.js";
3
+ export * from "./ExportsJsonFile.js";
4
+ export * from "./ExportsTsFile.js";
5
+ export * from "./exports.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exp/index.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC","sourcesContent":["// This file is auto-generated for build-cli. Do not edit manually.\nexport * from \"./ExportsExtractor.js\";\nexport * from \"./ExportsJsonFile.js\";\nexport * from \"./ExportsTsFile.js\";\nexport * from \"./exports.js\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pkg.fs.d.ts","sourceRoot":"","sources":["../../src/pkg/pkg.fs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAKxD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,GAC1B,eAAe,MAAM,KACpB,OAAO,CAAC,WAAW,CACiD,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,GAAI,eAAe,MAAM,KAAG,WACS,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,MAAM,EAChB,SAAS,WAAW,KACnB,OAAO,CAAC,IAAI,CAC2D,CAAC;AAE3E;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,eAAe,MAAM,KAAG,MAGjB,CAAC"}
1
+ {"version":3,"file":"pkg.fs.d.ts","sourceRoot":"","sources":["../../src/pkg/pkg.fs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AASxD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,GAC1B,eAAe,MAAM,KACpB,OAAO,CAAC,WAAW,CAC+C,CAAC;AAEtE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,GAAI,eAAe,MAAM,KAAG,WACO,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,MAAM,EAChB,SAAS,WAAW,KACnB,OAAO,CAAC,IAAI,CAIZ,CAAC;AAEJ;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,eAAe,MAAM,KAAG,MAGjB,CAAC"}
@@ -1,8 +1,7 @@
1
- import json5 from "json5";
2
1
  import { readFile, writeFile } from "node:fs/promises";
3
2
  import { join } from "node:path";
4
- import { formatJsonStringify } from "../code/code.format.js";
5
3
  import { readFileSync } from "node:fs";
4
+ import { jsonParse, jsonStringify, JsonStringifyFormat, } from "../common/common.json.js";
6
5
  /**
7
6
  * Reads and parses a `package.json` file asynchronously.
8
7
  *
@@ -19,7 +18,7 @@ import { readFileSync } from "node:fs";
19
18
  * console.log(pkg.name);
20
19
  * ```
21
20
  */
22
- export const readPackageJson = async (dirOrFilepath) => json5.parse(await readFile(ensurePkgJsonPath(dirOrFilepath), "utf8"));
21
+ export const readPackageJson = async (dirOrFilepath) => jsonParse(await readFile(ensurePkgJsonPath(dirOrFilepath), "utf8"));
23
22
  /**
24
23
  * Reads and parses a `package.json` file synchronously.
25
24
  *
@@ -36,7 +35,7 @@ export const readPackageJson = async (dirOrFilepath) => json5.parse(await readFi
36
35
  * console.log(pkg.version);
37
36
  * ```
38
37
  */
39
- export const readPackageJsonSync = (dirOrFilepath) => json5.parse(readFileSync(ensurePkgJsonPath(dirOrFilepath), "utf8"));
38
+ export const readPackageJsonSync = (dirOrFilepath) => jsonParse(readFileSync(ensurePkgJsonPath(dirOrFilepath), "utf8"));
40
39
  /**
41
40
  * Writes a {@link PackageJson} object to disk as formatted JSON.
42
41
  *
@@ -48,7 +47,7 @@ export const readPackageJsonSync = (dirOrFilepath) => json5.parse(readFileSync(e
48
47
  * @param content - The package JSON content to serialize and write.
49
48
  * @returns A promise that resolves when the file has been written.
50
49
  */
51
- export const writePackageJson = async (jsonPath, content) => writeFile(jsonPath, await formatJsonStringify(json5.stringify(content)));
50
+ export const writePackageJson = async (jsonPath, content) => writeFile(jsonPath, await jsonStringify(content, JsonStringifyFormat.jsonStringify));
52
51
  /**
53
52
  * Ensures a path ends with `/package.json`.
54
53
  *
@@ -1 +1 @@
1
- {"version":3,"file":"pkg.fs.js","sourceRoot":"","sources":["../../src/pkg/pkg.fs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,aAAqB,EACC,EAAE,CACxB,KAAK,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAqB,EAAe,EAAE,CACxE,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,QAAgB,EAChB,OAAoB,EACL,EAAE,CACjB,SAAS,CAAC,QAAQ,EAAE,MAAM,mBAAmB,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,aAAqB,EAAU,EAAE,CACjE,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC;IACrC,CAAC,CAAC,aAAa;IACf,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC","sourcesContent":["import json5 from \"json5\";\nimport { readFile, writeFile } from \"node:fs/promises\";\nimport { PackageJson } from \"../types/types.package.js\";\nimport { join } from \"node:path\";\nimport { formatJsonStringify } from \"../code/code.format.js\";\nimport { readFileSync } from \"node:fs\";\n\n/**\n * Reads and parses a `package.json` file asynchronously.\n *\n * @remarks\n * Uses JSON5 for parsing, so comments and trailing commas are permitted.\n * If the path is a directory, `/package.json` is automatically appended.\n *\n * @param dirOrFilepath - An absolute path to either a directory containing `package.json` or the file itself.\n * @returns A promise resolving to the parsed {@link PackageJson} contents.\n *\n * @example\n * ```ts\n * const pkg = await readPackageJson(\"/path/to/my-package\");\n * console.log(pkg.name);\n * ```\n */\nexport const readPackageJson = async (\n dirOrFilepath: string,\n): Promise<PackageJson> =>\n json5.parse(await readFile(ensurePkgJsonPath(dirOrFilepath), \"utf8\"));\n\n/**\n * Reads and parses a `package.json` file synchronously.\n *\n * @remarks\n * Uses JSON5 for parsing, so comments and trailing commas are permitted.\n * If the path is a directory, `/package.json` is automatically appended.\n *\n * @param dirOrFilepath - An absolute path to either a directory containing `package.json` or the file itself.\n * @returns The parsed {@link PackageJson} contents.\n *\n * @example\n * ```ts\n * const pkg = readPackageJsonSync(\"/path/to/my-package\");\n * console.log(pkg.version);\n * ```\n */\nexport const readPackageJsonSync = (dirOrFilepath: string): PackageJson =>\n json5.parse(readFileSync(ensurePkgJsonPath(dirOrFilepath), \"utf8\"));\n\n/**\n * Writes a {@link PackageJson} object to disk as formatted JSON.\n *\n * @remarks\n * The output is stringified via JSON5 and then formatted with the project's\n * standard JSON formatter before being written.\n *\n * @param jsonPath - The absolute file path to write the `package.json` to.\n * @param content - The package JSON content to serialize and write.\n * @returns A promise that resolves when the file has been written.\n */\nexport const writePackageJson = async (\n jsonPath: string,\n content: PackageJson,\n): Promise<void> =>\n writeFile(jsonPath, await formatJsonStringify(json5.stringify(content)));\n\n/**\n * Ensures a path ends with `/package.json`.\n *\n * @remarks\n * If the path already ends with `/package.json` it is returned as-is;\n * otherwise `package.json` is appended via `path.join`.\n *\n * @param dirOrFilepath - A directory path or a path already pointing to `package.json`.\n * @returns The path guaranteed to end with `/package.json`.\n */\nexport const ensurePkgJsonPath = (dirOrFilepath: string): string =>\n dirOrFilepath.endsWith(\"/package.json\")\n ? dirOrFilepath\n : join(dirOrFilepath, \"package.json\");\n"]}
1
+ {"version":3,"file":"pkg.fs.js","sourceRoot":"","sources":["../../src/pkg/pkg.fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EACL,SAAS,EACT,aAAa,EACb,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,aAAqB,EACC,EAAE,CACxB,SAAS,CAAC,MAAM,QAAQ,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAEtE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAqB,EAAe,EAAE,CACxE,SAAS,CAAC,YAAY,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,QAAgB,EAChB,OAAoB,EACL,EAAE,CACjB,SAAS,CACP,QAAQ,EACR,MAAM,aAAa,CAAC,OAAO,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAChE,CAAC;AAEJ;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,aAAqB,EAAU,EAAE,CACjE,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC;IACrC,CAAC,CAAC,aAAa;IACf,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC","sourcesContent":["import { readFile, writeFile } from \"node:fs/promises\";\nimport { PackageJson } from \"../types/types.package.js\";\nimport { join } from \"node:path\";\nimport { readFileSync } from \"node:fs\";\nimport {\n jsonParse,\n jsonStringify,\n JsonStringifyFormat,\n} from \"../common/common.json.js\";\n\n/**\n * Reads and parses a `package.json` file asynchronously.\n *\n * @remarks\n * Uses JSON5 for parsing, so comments and trailing commas are permitted.\n * If the path is a directory, `/package.json` is automatically appended.\n *\n * @param dirOrFilepath - An absolute path to either a directory containing `package.json` or the file itself.\n * @returns A promise resolving to the parsed {@link PackageJson} contents.\n *\n * @example\n * ```ts\n * const pkg = await readPackageJson(\"/path/to/my-package\");\n * console.log(pkg.name);\n * ```\n */\nexport const readPackageJson = async (\n dirOrFilepath: string,\n): Promise<PackageJson> =>\n jsonParse(await readFile(ensurePkgJsonPath(dirOrFilepath), \"utf8\"));\n\n/**\n * Reads and parses a `package.json` file synchronously.\n *\n * @remarks\n * Uses JSON5 for parsing, so comments and trailing commas are permitted.\n * If the path is a directory, `/package.json` is automatically appended.\n *\n * @param dirOrFilepath - An absolute path to either a directory containing `package.json` or the file itself.\n * @returns The parsed {@link PackageJson} contents.\n *\n * @example\n * ```ts\n * const pkg = readPackageJsonSync(\"/path/to/my-package\");\n * console.log(pkg.version);\n * ```\n */\nexport const readPackageJsonSync = (dirOrFilepath: string): PackageJson =>\n jsonParse(readFileSync(ensurePkgJsonPath(dirOrFilepath), \"utf8\"));\n\n/**\n * Writes a {@link PackageJson} object to disk as formatted JSON.\n *\n * @remarks\n * The output is stringified via JSON5 and then formatted with the project's\n * standard JSON formatter before being written.\n *\n * @param jsonPath - The absolute file path to write the `package.json` to.\n * @param content - The package JSON content to serialize and write.\n * @returns A promise that resolves when the file has been written.\n */\nexport const writePackageJson = async (\n jsonPath: string,\n content: PackageJson,\n): Promise<void> =>\n writeFile(\n jsonPath,\n await jsonStringify(content, JsonStringifyFormat.jsonStringify),\n );\n\n/**\n * Ensures a path ends with `/package.json`.\n *\n * @remarks\n * If the path already ends with `/package.json` it is returned as-is;\n * otherwise `package.json` is appended via `path.join`.\n *\n * @param dirOrFilepath - A directory path or a path already pointing to `package.json`.\n * @returns The path guaranteed to end with `/package.json`.\n */\nexport const ensurePkgJsonPath = (dirOrFilepath: string): string =>\n dirOrFilepath.endsWith(\"/package.json\")\n ? dirOrFilepath\n : join(dirOrFilepath, \"package.json\");\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=generateOwnExports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateOwnExports.d.ts","sourceRoot":"","sources":["../../src/scripts/generateOwnExports.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { initWorkspace } from "../workspace/Workspace.js";
2
+ import { join, resolve } from "node:path";
3
+ import { ExportsJsonFile } from "../exp/ExportsJsonFile.js";
4
+ import { ExportsExtractor } from "../exp/ExportsExtractor.js";
5
+ import { ExportsTsFile } from "../exp/ExportsTsFile.js";
6
+ const __dirname = import.meta.dirname;
7
+ const repoRoot = resolve(__dirname, "..");
8
+ const run = async () => {
9
+ initWorkspace(repoRoot);
10
+ const jsonPath = join(repoRoot, "exp", "exports.json");
11
+ const jsonFile = new ExportsJsonFile("@mxpicture/build-api", jsonPath);
12
+ const tsFile = ExportsTsFile.linkByJson(jsonFile);
13
+ const exp = new ExportsExtractor(jsonFile);
14
+ const result = await exp.run();
15
+ await Promise.all([jsonFile.write(), tsFile.write()]);
16
+ console.log("{");
17
+ console.log(` packageName: ${result.packageName}`);
18
+ console.log(` entrypoints: ${result.entrypoints.length}`);
19
+ console.log(` runtimeExports: ${result.runtimeExports.length}`);
20
+ console.log(` typeExports: ${result.typeExports.length}`);
21
+ console.log("}");
22
+ };
23
+ run().catch(console.log);
24
+ //# sourceMappingURL=generateOwnExports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateOwnExports.js","sourceRoot":"","sources":["../../src/scripts/generateOwnExports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;AACtC,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAE1C,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE;IACrB,aAAa,CAAC,QAAQ,CAAC,CAAC;IAExB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;IAEvD,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;IACvE,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;IAE/B,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,OAAO,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;IACpD,OAAO,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,qBAAqB,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC,CAAC;AAEF,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC","sourcesContent":["import { initWorkspace } from \"../workspace/Workspace.js\";\nimport { join, resolve } from \"node:path\";\nimport { ExportsJsonFile } from \"../exp/ExportsJsonFile.js\";\nimport { ExportsExtractor } from \"../exp/ExportsExtractor.js\";\nimport { ExportsTsFile } from \"../exp/ExportsTsFile.js\";\n\nconst __dirname = import.meta.dirname;\nconst repoRoot = resolve(__dirname, \"..\");\n\nconst run = async () => {\n initWorkspace(repoRoot);\n\n const jsonPath = join(repoRoot, \"exp\", \"exports.json\");\n\n const jsonFile = new ExportsJsonFile(\"@mxpicture/build-api\", jsonPath);\n const tsFile = ExportsTsFile.linkByJson(jsonFile);\n const exp = new ExportsExtractor(jsonFile);\n const result = await exp.run();\n\n await Promise.all([jsonFile.write(), tsFile.write()]);\n\n console.log(\"{\");\n console.log(` packageName: ${result.packageName}`);\n console.log(` entrypoints: ${result.entrypoints.length}`);\n console.log(` runtimeExports: ${result.runtimeExports.length}`);\n console.log(` typeExports: ${result.typeExports.length}`);\n console.log(\"}\");\n};\n\nrun().catch(console.log);\n"]}
@@ -4,6 +4,7 @@ export * from "./types.cleanup.js";
4
4
  export * from "./types.code.js";
5
5
  export * from "./types.deps.js";
6
6
  export * from "./types.documents.js";
7
+ export * from "./types.exports.js";
7
8
  export * from "./types.git.js";
8
9
  export * from "./types.npm.js";
9
10
  export * from "./types.os.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
@@ -5,6 +5,7 @@ export * from "./types.cleanup.js";
5
5
  export * from "./types.code.js";
6
6
  export * from "./types.deps.js";
7
7
  export * from "./types.documents.js";
8
+ export * from "./types.exports.js";
8
9
  export * from "./types.git.js";
9
10
  export * from "./types.npm.js";
10
11
  export * from "./types.os.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC","sourcesContent":["// This file is auto-generated for build-cli. Do not edit manually.\nexport * from \"./types.barrel.js\";\nexport * from \"./types.changelog.js\";\nexport * from \"./types.cleanup.js\";\nexport * from \"./types.code.js\";\nexport * from \"./types.deps.js\";\nexport * from \"./types.documents.js\";\nexport * from \"./types.git.js\";\nexport * from \"./types.npm.js\";\nexport * from \"./types.os.js\";\nexport * from \"./types.package.js\";\nexport * from \"./types.run.js\";\nexport * from \"./types.vscode.js\";\nexport * from \"./types.workspace.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC","sourcesContent":["// This file is auto-generated for build-cli. Do not edit manually.\nexport * from \"./types.barrel.js\";\nexport * from \"./types.changelog.js\";\nexport * from \"./types.cleanup.js\";\nexport * from \"./types.code.js\";\nexport * from \"./types.deps.js\";\nexport * from \"./types.documents.js\";\nexport * from \"./types.exports.js\";\nexport * from \"./types.git.js\";\nexport * from \"./types.npm.js\";\nexport * from \"./types.os.js\";\nexport * from \"./types.package.js\";\nexport * from \"./types.run.js\";\nexport * from \"./types.vscode.js\";\nexport * from \"./types.workspace.js\";\n"]}
@@ -0,0 +1,42 @@
1
+ import { RunRepoRootParams } from "./types.run.js";
2
+ /**
3
+ * Represents a discovered export in a package.
4
+ */
5
+ export interface ExportNode {
6
+ /** Export name */
7
+ name: string;
8
+ /** Type of export (function, object, class, etc.) */
9
+ kind: string;
10
+ /** Source entrypoint */
11
+ source: string;
12
+ }
13
+ /**
14
+ * Represents a resolved package entrypoint.
15
+ */
16
+ export interface EntryPoint {
17
+ /** Import specifier used to load the entrypoint */
18
+ id: string;
19
+ /** Absolute path to resolved file */
20
+ file?: string;
21
+ }
22
+ /**
23
+ * Final API analysis result.
24
+ */
25
+ export interface PackageAPI {
26
+ /** Name of root package */
27
+ packageName: string;
28
+ /** All discovered entrypoints */
29
+ entrypoints: EntryPoint[];
30
+ /** Runtime exports discovered via module loading */
31
+ runtimeExports: ExportNode[];
32
+ /** Type exports discovered via `.d.ts` parsing */
33
+ typeExports: ExportNode[];
34
+ }
35
+ /**
36
+ * Parameters for bulk-updating packages that match a pattern.
37
+ */
38
+ export interface ExportsExtractorParams extends RunRepoRootParams {
39
+ package: string;
40
+ json?: string;
41
+ }
42
+ //# sourceMappingURL=types.exports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.exports.d.ts","sourceRoot":"","sources":["../../src/types/types.exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IAEb,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IAEb,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,oDAAoD;IACpD,cAAc,EAAE,UAAU,EAAE,CAAC;IAC7B,kDAAkD;IAClD,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.exports.js","sourceRoot":"","sources":["../../src/types/types.exports.ts"],"names":[],"mappings":"","sourcesContent":["import { RunRepoRootParams } from \"./types.run.js\";\n\n/**\n * Represents a discovered export in a package.\n */\nexport interface ExportNode {\n /** Export name */\n name: string;\n\n /** Type of export (function, object, class, etc.) */\n kind: string;\n\n /** Source entrypoint */\n source: string;\n}\n\n/**\n * Represents a resolved package entrypoint.\n */\nexport interface EntryPoint {\n /** Import specifier used to load the entrypoint */\n id: string;\n /** Absolute path to resolved file */\n file?: string;\n}\n\n/**\n * Final API analysis result.\n */\nexport interface PackageAPI {\n /** Name of root package */\n packageName: string;\n /** All discovered entrypoints */\n entrypoints: EntryPoint[];\n /** Runtime exports discovered via module loading */\n runtimeExports: ExportNode[];\n /** Type exports discovered via `.d.ts` parsing */\n typeExports: ExportNode[];\n}\n\n/**\n * Parameters for bulk-updating packages that match a pattern.\n */\nexport interface ExportsExtractorParams extends RunRepoRootParams {\n package: string;\n json?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"vscode.settings.d.ts","sourceRoot":"","sources":["../../src/vscode/vscode.settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAO1D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,cAAc,CAgBzE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,MAAM,CAKlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAE3B,CAAC"}
1
+ {"version":3,"file":"vscode.settings.d.ts","sourceRoot":"","sources":["../../src/vscode/vscode.settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAM1D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,cAAc,CAgBzE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,MAAM,CAKlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAE3B,CAAC"}
@@ -1,6 +1,6 @@
1
+ import { jsonParse } from "../common/common.json.js";
1
2
  import { activeProfile, defaultSettingsPath } from "./vscode.profiles.js";
2
3
  import { readFile } from "node:fs/promises";
3
- import json5 from "json5";
4
4
  let __settings = null;
5
5
  /**
6
6
  * Reads and returns the VS Code `settings.json` for the active profile.
@@ -26,7 +26,7 @@ export const vscodeSettings = async (dir) => {
26
26
  settingsPath = defaultSettingsPath();
27
27
  }
28
28
  const raw = await readFile(settingsPath, "utf-8");
29
- __settings = json5.parse(raw);
29
+ __settings = jsonParse(raw);
30
30
  if (!__settings)
31
31
  throw new Error("No settings found");
32
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vscode.settings.js","sourceRoot":"","sources":["../../src/vscode/vscode.settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,IAAI,UAAU,GAA0B,IAAI,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,GAAY,EAA2B,EAAE;IAC5E,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,IAAI,YAAgC,CAAC;QAErC,IAAI,CAAC;YACH,YAAY,GAAG,CAAC,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC;QACzD,CAAC;QAAC,MAAM,CAAC;YACP,YAAY,GAAG,mBAAmB,EAAE,CAAC;QACvC,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAClD,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,EAAE,GAAG,UAAU,EAAE,CAAC;AAC3B,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,GAAW,EAAmB,EAAE;IACrE,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAC,GAAG,CAAC,CAAC;IAC3C,IAAI,CAAC,CAAC,0BAA0B,IAAI,QAAQ,CAAC;QAC3C,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACzE,OAAO,QAAQ,CAAC,0BAA0B,CAAW,CAAC;AACxD,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,UAAU,GAAG,IAAI,CAAC;AACpB,CAAC,CAAC","sourcesContent":["import { VSCodeSettings } from \"../types/types.vscode.js\";\nimport { activeProfile, defaultSettingsPath } from \"./vscode.profiles.js\";\nimport { readFile } from \"node:fs/promises\";\nimport json5 from \"json5\";\n\nlet __settings: VSCodeSettings | null = null;\n\n/**\n * Reads and returns the VS Code `settings.json` for the active profile.\n *\n * @remarks\n * The result is cached after the first successful read. If no active profile\n * can be resolved, the default (global) settings file is used as a fallback.\n * A shallow copy is returned so that callers cannot mutate the cached object.\n *\n * @param dir - Optional directory used to resolve the active profile's\n * workspace. Defaults to the current working directory.\n * @returns A promise that resolves to a shallow copy of the parsed\n * {@link VSCodeSettings}.\n * @throws If the settings file cannot be read or parsed.\n */\nexport const vscodeSettings = async (dir?: string): Promise<VSCodeSettings> => {\n if (!__settings) {\n let settingsPath: string | undefined;\n\n try {\n settingsPath = (await activeProfile(dir)).settingsPath;\n } catch {\n settingsPath = defaultSettingsPath();\n }\n\n const raw = await readFile(settingsPath, \"utf-8\");\n __settings = json5.parse(raw);\n if (!__settings) throw new Error(\"No settings found\");\n }\n\n return { ...__settings };\n};\n\n/**\n * Extracts the `C_Cpp.clang_format_style` value from the VS Code settings.\n *\n * @param cwd - The working directory used to locate the active profile's settings.\n * @returns A promise that resolves to the clang-format style string.\n * @throws If the `C_Cpp.clang_format_style` key is missing from the settings.\n */\nexport const clangFormatStyle = async (cwd: string): Promise<string> => {\n const settings = await vscodeSettings(cwd);\n if (!(\"C_Cpp.clang_format_style\" in settings))\n throw new Error(\"C_Cpp.clang_format_style not found in settings.json\");\n return settings[\"C_Cpp.clang_format_style\"] as string;\n};\n\n/**\n * Resets the cached settings so they are re-read on the next call.\n *\n * @internal\n */\nexport const __resetSettings = () => {\n __settings = null;\n};\n"]}
1
+ {"version":3,"file":"vscode.settings.js","sourceRoot":"","sources":["../../src/vscode/vscode.settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,IAAI,UAAU,GAA0B,IAAI,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,GAAY,EAA2B,EAAE;IAC5E,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,IAAI,YAAgC,CAAC;QAErC,IAAI,CAAC;YACH,YAAY,GAAG,CAAC,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC;QACzD,CAAC;QAAC,MAAM,CAAC;YACP,YAAY,GAAG,mBAAmB,EAAE,CAAC;QACvC,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAClD,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,EAAE,GAAG,UAAU,EAAE,CAAC;AAC3B,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,GAAW,EAAmB,EAAE;IACrE,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAC,GAAG,CAAC,CAAC;IAC3C,IAAI,CAAC,CAAC,0BAA0B,IAAI,QAAQ,CAAC;QAC3C,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACzE,OAAO,QAAQ,CAAC,0BAA0B,CAAW,CAAC;AACxD,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,UAAU,GAAG,IAAI,CAAC;AACpB,CAAC,CAAC","sourcesContent":["import { jsonParse } from \"../common/common.json.js\";\nimport { VSCodeSettings } from \"../types/types.vscode.js\";\nimport { activeProfile, defaultSettingsPath } from \"./vscode.profiles.js\";\nimport { readFile } from \"node:fs/promises\";\n\nlet __settings: VSCodeSettings | null = null;\n\n/**\n * Reads and returns the VS Code `settings.json` for the active profile.\n *\n * @remarks\n * The result is cached after the first successful read. If no active profile\n * can be resolved, the default (global) settings file is used as a fallback.\n * A shallow copy is returned so that callers cannot mutate the cached object.\n *\n * @param dir - Optional directory used to resolve the active profile's\n * workspace. Defaults to the current working directory.\n * @returns A promise that resolves to a shallow copy of the parsed\n * {@link VSCodeSettings}.\n * @throws If the settings file cannot be read or parsed.\n */\nexport const vscodeSettings = async (dir?: string): Promise<VSCodeSettings> => {\n if (!__settings) {\n let settingsPath: string | undefined;\n\n try {\n settingsPath = (await activeProfile(dir)).settingsPath;\n } catch {\n settingsPath = defaultSettingsPath();\n }\n\n const raw = await readFile(settingsPath, \"utf-8\");\n __settings = jsonParse(raw);\n if (!__settings) throw new Error(\"No settings found\");\n }\n\n return { ...__settings };\n};\n\n/**\n * Extracts the `C_Cpp.clang_format_style` value from the VS Code settings.\n *\n * @param cwd - The working directory used to locate the active profile's settings.\n * @returns A promise that resolves to the clang-format style string.\n * @throws If the `C_Cpp.clang_format_style` key is missing from the settings.\n */\nexport const clangFormatStyle = async (cwd: string): Promise<string> => {\n const settings = await vscodeSettings(cwd);\n if (!(\"C_Cpp.clang_format_style\" in settings))\n throw new Error(\"C_Cpp.clang_format_style not found in settings.json\");\n return settings[\"C_Cpp.clang_format_style\"] as string;\n};\n\n/**\n * Resets the cached settings so they are re-read on the next call.\n *\n * @internal\n */\nexport const __resetSettings = () => {\n __settings = null;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"vscode.storage.d.ts","sourceRoot":"","sources":["../../src/vscode/vscode.storage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGzD;;;;GAIG;AACH,eAAO,MAAM,WAAW,QAAO,MAC0B,CAAC;AAI1D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,QAAO,aAM1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAE1B,CAAC"}
1
+ {"version":3,"file":"vscode.storage.d.ts","sourceRoot":"","sources":["../../src/vscode/vscode.storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD;;;;GAIG;AACH,eAAO,MAAM,WAAW,QAAO,MAC0B,CAAC;AAI1D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,QAAO,aAM1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAE1B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as fs from "node:fs";
2
2
  import { join } from "node:path";
3
- import json5 from "json5";
4
3
  import { configUserPath } from "./vscode.config.js";
4
+ import { jsonParse } from "../common/common.json.js";
5
5
  /**
6
6
  * Returns the absolute path to the VS Code `storage.json` file.
7
7
  *
@@ -24,7 +24,7 @@ export const storage = () => {
24
24
  if (__storage)
25
25
  return __storage;
26
26
  const content = fs.readFileSync(storagePath()).toString();
27
- __storage = json5.parse(content);
27
+ __storage = jsonParse(content);
28
28
  if (!__storage)
29
29
  throw new Error("VS Code storage.json could not be loaded");
30
30
  return __storage;
@@ -1 +1 @@
1
- {"version":3,"file":"vscode.storage.js","sourceRoot":"","sources":["../../src/vscode/vscode.storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAW,EAAE,CACtC,IAAI,CAAC,cAAc,EAAE,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;AAE1D,IAAI,SAAoC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,GAAkB,EAAE;IACzC,IAAI,SAAS;QAAE,OAAO,SAAS,CAAC;IAChC,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1D,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC5E,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,SAAS,GAAG,SAAS,CAAC;AACxB,CAAC,CAAC","sourcesContent":["import * as fs from \"node:fs\";\nimport { join } from \"node:path\";\nimport json5 from \"json5\";\nimport { VSCodeStorage } from \"../types/types.vscode.js\";\nimport { configUserPath } from \"./vscode.config.js\";\n\n/**\n * Returns the absolute path to the VS Code `storage.json` file.\n *\n * @returns The path to `storage.json` inside the `globalStorage` directory.\n */\nexport const storagePath = (): string =>\n join(configUserPath(), \"globalStorage\", \"storage.json\");\n\nlet __storage: VSCodeStorage | undefined;\n\n/**\n * Reads and returns the parsed VS Code `storage.json`.\n *\n * @remarks\n * The result is cached after the first successful read. Subsequent calls\n * return the cached {@link VSCodeStorage} instance without re-reading\n * the file from disk.\n *\n * @returns The parsed {@link VSCodeStorage} object.\n * @throws If the file cannot be read or parsed.\n */\nexport const storage = (): VSCodeStorage => {\n if (__storage) return __storage;\n const content = fs.readFileSync(storagePath()).toString();\n __storage = json5.parse(content);\n if (!__storage) throw new Error(\"VS Code storage.json could not be loaded\");\n return __storage;\n};\n\n/**\n * Resets the cached storage so it is re-read on the next call.\n *\n * @internal\n */\nexport const __resetStorage = () => {\n __storage = undefined;\n};\n"]}
1
+ {"version":3,"file":"vscode.storage.js","sourceRoot":"","sources":["../../src/vscode/vscode.storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAW,EAAE,CACtC,IAAI,CAAC,cAAc,EAAE,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;AAE1D,IAAI,SAAoC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,GAAkB,EAAE;IACzC,IAAI,SAAS;QAAE,OAAO,SAAS,CAAC;IAChC,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1D,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAC/B,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC5E,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,SAAS,GAAG,SAAS,CAAC;AACxB,CAAC,CAAC","sourcesContent":["import * as fs from \"node:fs\";\nimport { join } from \"node:path\";\nimport { VSCodeStorage } from \"../types/types.vscode.js\";\nimport { configUserPath } from \"./vscode.config.js\";\nimport { jsonParse } from \"../common/common.json.js\";\n\n/**\n * Returns the absolute path to the VS Code `storage.json` file.\n *\n * @returns The path to `storage.json` inside the `globalStorage` directory.\n */\nexport const storagePath = (): string =>\n join(configUserPath(), \"globalStorage\", \"storage.json\");\n\nlet __storage: VSCodeStorage | undefined;\n\n/**\n * Reads and returns the parsed VS Code `storage.json`.\n *\n * @remarks\n * The result is cached after the first successful read. Subsequent calls\n * return the cached {@link VSCodeStorage} instance without re-reading\n * the file from disk.\n *\n * @returns The parsed {@link VSCodeStorage} object.\n * @throws If the file cannot be read or parsed.\n */\nexport const storage = (): VSCodeStorage => {\n if (__storage) return __storage;\n const content = fs.readFileSync(storagePath()).toString();\n __storage = jsonParse(content);\n if (!__storage) throw new Error(\"VS Code storage.json could not be loaded\");\n return __storage;\n};\n\n/**\n * Resets the cached storage so it is re-read on the next call.\n *\n * @internal\n */\nexport const __resetStorage = () => {\n __storage = undefined;\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { readFile } from "node:fs/promises";
2
- import json5 from "json5";
3
2
  import { dirname } from "node:path";
3
+ import { jsonParse } from "../common/common.json.js";
4
4
  const __workspaces = {};
5
5
  /**
6
6
  * Reads and returns a parsed VS Code `.code-workspace` file.
@@ -17,7 +17,7 @@ export const vscodeWorkspace = async (workspaceFile) => {
17
17
  let found = __workspaces[workspaceFile];
18
18
  if (!found) {
19
19
  const raw = await readFile(workspaceFile, "utf-8");
20
- found = json5.parse(raw);
20
+ found = jsonParse(raw);
21
21
  __workspaces[workspaceFile] = found;
22
22
  }
23
23
  return { ...found };
@@ -1 +1 @@
1
- {"version":3,"file":"vscode.workspace.js","sourceRoot":"","sources":["../../src/vscode/vscode.workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,YAAY,GAAoC,EAAE,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,aAAqB,EACK,EAAE;IAC5B,IAAI,KAAK,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IACxC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACnD,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACzB,YAAY,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;IACtC,CAAC;IAED,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC;AACtB,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAC3D,OAAO,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import { readFile } from \"node:fs/promises\";\nimport { VSCodeWorkspace } from \"../types/types.vscode.js\";\nimport json5 from \"json5\";\nimport { dirname } from \"node:path\";\n\nconst __workspaces: Record<string, VSCodeWorkspace> = {};\n\n/**\n * Reads and returns a parsed VS Code `.code-workspace` file.\n *\n * @remarks\n * The result is cached per `workspaceFile` path. A shallow copy is returned\n * so that callers cannot mutate the cached object.\n *\n * @param workspaceFile - Absolute path to the `.code-workspace` file.\n * @returns A promise that resolves to a shallow copy of the parsed\n * {@link VSCodeWorkspace}.\n */\nexport const vscodeWorkspace = async (\n workspaceFile: string,\n): Promise<VSCodeWorkspace> => {\n let found = __workspaces[workspaceFile];\n if (!found) {\n const raw = await readFile(workspaceFile, \"utf-8\");\n found = json5.parse(raw);\n __workspaces[workspaceFile] = found;\n }\n\n return { ...found };\n};\n\n/**\n * Returns the directory that contains the given workspace file.\n *\n * @param workspaceFile - Absolute path to the `.code-workspace` file.\n * @returns The parent directory of the workspace file.\n */\nexport const vscodeWorkspaceRoot = (workspaceFile: string) =>\n dirname(workspaceFile);\n"]}
1
+ {"version":3,"file":"vscode.workspace.js","sourceRoot":"","sources":["../../src/vscode/vscode.workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,YAAY,GAAoC,EAAE,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,aAAqB,EACK,EAAE;IAC5B,IAAI,KAAK,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IACxC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACnD,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QACvB,YAAY,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;IACtC,CAAC;IAED,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC;AACtB,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAC3D,OAAO,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import { readFile } from \"node:fs/promises\";\nimport { VSCodeWorkspace } from \"../types/types.vscode.js\";\nimport { dirname } from \"node:path\";\nimport { jsonParse } from \"../common/common.json.js\";\n\nconst __workspaces: Record<string, VSCodeWorkspace> = {};\n\n/**\n * Reads and returns a parsed VS Code `.code-workspace` file.\n *\n * @remarks\n * The result is cached per `workspaceFile` path. A shallow copy is returned\n * so that callers cannot mutate the cached object.\n *\n * @param workspaceFile - Absolute path to the `.code-workspace` file.\n * @returns A promise that resolves to a shallow copy of the parsed\n * {@link VSCodeWorkspace}.\n */\nexport const vscodeWorkspace = async (\n workspaceFile: string,\n): Promise<VSCodeWorkspace> => {\n let found = __workspaces[workspaceFile];\n if (!found) {\n const raw = await readFile(workspaceFile, \"utf-8\");\n found = jsonParse(raw);\n __workspaces[workspaceFile] = found;\n }\n\n return { ...found };\n};\n\n/**\n * Returns the directory that contains the given workspace file.\n *\n * @param workspaceFile - Absolute path to the `.code-workspace` file.\n * @returns The parent directory of the workspace file.\n */\nexport const vscodeWorkspaceRoot = (workspaceFile: string) =>\n dirname(workspaceFile);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxpicture/build-api",
3
- "version": "0.2.57",
3
+ "version": "0.2.59",
4
4
  "description": "Build utilities API",
5
5
  "type": "module",
6
6
  "author": "MXPicture",
@@ -15,6 +15,7 @@
15
15
  "./code": "./dist/code/index.js",
16
16
  "./common": "./dist/common/index.js",
17
17
  "./deps": "./dist/deps/index.js",
18
+ "./exp": "./dist/exp/index.js",
18
19
  "./git": "./dist/git/index.js",
19
20
  "./logger": "./dist/logger/index.js",
20
21
  "./npmPublish": "./dist/npmPublish/index.js",
@@ -34,7 +35,8 @@
34
35
  "scripts": {
35
36
  "lint": "eslint \"src/**/*.{ts,tsx}\" --ext .ts,.tsx",
36
37
  "build": "tsc -b .",
37
- "test": "vitest run"
38
+ "test": "vitest run",
39
+ "update-own-exports": "pnpm exec tsx src/scripts/generateOwnExports.ts"
38
40
  },
39
41
  "publishConfig": {
40
42
  "access": "public"
@@ -42,11 +44,14 @@
42
44
  "dependencies": {
43
45
  "@mxpicture/dep-analyzer": "^0.1.0",
44
46
  "@types/micromatch": "^4.0.10",
47
+ "glob": "^13.0.6",
45
48
  "json5": "^2.2.3",
46
49
  "micromatch": "^4.0.8",
47
50
  "prettier": "^3.8.1",
51
+ "resolve.exports": "^2.0.3",
48
52
  "simple-git": "^3.32.3",
49
53
  "typescript": "^5.9.3",
50
- "yaml": "^2.8.2"
54
+ "yaml": "^2.8.2",
55
+ "zod": "^4.3.6"
51
56
  }
52
57
  }