UNPKG

@halospv3/hce.shared-config

Version:

Automate commit message quality, changelogs, and CI/CD releases. Exports a semantic-release shareable configuration deserialized from this package's '.releaserc.yml'. Shared resources for .NET projects are also distributed with this package.

23 lines (20 loc) 750 B
'use strict'; const node_fs = require('node:fs'); const path = require('node:path'); /** * Known properties. Additional properties may be added upon request. */ class MSBuildProjectProperties { FullPath = ''; TargetFramework = ''; TargetFrameworks = ''; RuntimeIdentifier = ''; RuntimeIdentifiers = ''; constructor(fullPath, exists = true) { this.FullPath = fullPath; if (!path.isAbsolute(this.FullPath)) this.FullPath = path.resolve(this.FullPath); if (!node_fs.existsSync(this.FullPath) && exists) throw new Error(`Project ${path.basename(this.FullPath)} could not be found at "${this.FullPath}"`); } } exports.MSBuildProjectProperties = MSBuildProjectProperties; //# sourceMappingURL=MSBuildProjectProperties.cjs.map