Skip to content

Commit

Permalink
chore(ci-context): bump properties-file from 2.2.4 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
gperdomor committed Aug 21, 2023
1 parent 3bf3ec3 commit fdc99b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"moment": "2.29.4",
"moment-timezone": "0.5.43",
"prisma": "5.1.1",
"properties-file": "2.2.4",
"properties-file": "3.2.17",
"semver": "7.5.4",
"tmp": "0.2.1",
"tslib": "2.5.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/ci-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"ci-info": "3.8.0",
"@octokit/openapi-types": "12.11.0",
"@actions/github": "5.1.1",
"properties-file": "2.2.4"
"properties-file": "3.2.17"
},
"peerDependencies": {
"tslib": "^2.5.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/ci-context/src/lib/utils/teamcity.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { readFile } from 'fs/promises';
import { propertiesToJson } from 'properties-file/content';
import { getProperties } from 'properties-file';
import * as url from 'url';
import { RepoMetadata, RunnerContext } from '../interfaces';
import { Git } from './git';
Expand Down Expand Up @@ -30,10 +30,10 @@ export class Teamcity {
public static async getProperties() {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const buildPropertiesFile = await readFile(process.env['TEAMCITY_BUILD_PROPERTIES_FILE']!, 'utf8');
const buildProperties = propertiesToJson(buildPropertiesFile);
const buildProperties = getProperties(buildPropertiesFile);

const configPropertiesFile = await readFile(buildProperties['teamcity.configuration.properties.file'], 'utf8');
const configProperties = propertiesToJson(configPropertiesFile);
const configProperties = getProperties(configPropertiesFile);

return { buildProperties, configProperties };
}
Expand Down

0 comments on commit fdc99b1

Please sign in to comment.