Skip to content

Commit

Permalink
Update camelCase NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Apr 7, 2020
1 parent 964651c commit 2573f43
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 306 deletions.
1 change: 1 addition & 0 deletions src/nerdbank-gitversioning.npm/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
out/
js/
typings/
.ntvs_analysis.dat
tools/
Expand Down
3 changes: 2 additions & 1 deletion src/nerdbank-gitversioning.npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"versioning"
],
"devDependencies": {
"@types/camel-case": "^1.2.1",
"@types/node": "^13.11.0",
"del": "^5.1.0",
"gulp": "^4.0.2",
Expand All @@ -32,7 +33,7 @@
"typescript": "^3.3.1"
},
"dependencies": {
"camel-case": "^3.0.0"
"camel-case": "^4.1.1"
},
"scripts": {
"build": "gulp"
Expand Down
4 changes: 2 additions & 2 deletions src/nerdbank-gitversioning.npm/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as fs from 'fs';
import * as path from 'path';
var camelCase = require('camel-case')
import * as camelCase from 'camel-case';
import {execAsync} from './asyncprocess';

const nbgvPath = 'nbgv.cli';
Expand Down Expand Up @@ -53,7 +53,7 @@ export async function getVersion(projectDirectory?: string, dotnetCommand?: stri
var directResult = JSON.parse(versionText.stdout);
var result = {};
for (var field in directResult) {
result[camelCase(field)] = directResult[field];
result[camelCase.camelCase(field)] = directResult[field];
}

return <IGitVersion>result;
Expand Down
Loading

0 comments on commit 2573f43

Please sign in to comment.