private protected IDisposable TemporarySetVersion(SVersion version) { return(TempFileTextModification.TemporaryReplacePackageVersion(NpmSolution, PackageJson.JsonFilePath, version, false, null)); }
private protected IDisposable TemporaryPrePack(SVersion version, Action <JObject> packageJsonPreProcessor) { return(TempFileTextModification.TemporaryReplacePackageVersion(NpmSolution, OutputPath.AppendPart("package.json"), version, true, packageJsonPreProcessor)); }
private protected IDisposable TemporarySetPackageVersion(SVersion version, bool targetOutputPath = false) { return(TempFileTextModification.TemporaryReplacePackageVersion(!targetOutputPath ? PackageJson.JsonFilePath : OutputPath.AppendPart("package.json"), version)); }