mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-23 02:22:42 +00:00
Merge pull request #2546 from balena-io/update-simple-git
Update simple git
This commit is contained in:
commit
6e4fe229bf
@ -15,11 +15,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const stripIndent = require('common-tags/lib/stripIndent');
|
// tslint:disable-next-line:import-blacklist
|
||||||
const _ = require('lodash');
|
import { stripIndent } from 'common-tags';
|
||||||
const { promises: fs } = require('fs');
|
import * as _ from 'lodash';
|
||||||
const path = require('path');
|
import { promises as fs } from 'fs';
|
||||||
const simplegit = require('simple-git/promise');
|
import * as path from 'path';
|
||||||
|
import { simpleGit } from 'simple-git';
|
||||||
|
|
||||||
const ROOT = path.normalize(path.join(__dirname, '..'));
|
const ROOT = path.normalize(path.join(__dirname, '..'));
|
||||||
|
|
||||||
@ -31,7 +32,7 @@ const ROOT = path.normalize(path.join(__dirname, '..'));
|
|||||||
* using `touch`.
|
* using `touch`.
|
||||||
*/
|
*/
|
||||||
async function checkBuildTimestamps() {
|
async function checkBuildTimestamps() {
|
||||||
const git = simplegit(ROOT);
|
const git = simpleGit(ROOT);
|
||||||
const docFile = path.join(ROOT, 'docs', 'balena-cli.md');
|
const docFile = path.join(ROOT, 'docs', 'balena-cli.md');
|
||||||
const [docStat, gitStatus] = await Promise.all([
|
const [docStat, gitStatus] = await Promise.all([
|
||||||
fs.stat(docFile),
|
fs.stat(docFile),
|
||||||
@ -81,4 +82,5 @@ async function run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// tslint:disable-next-line:no-floating-promises
|
||||||
run();
|
run();
|
14
npm-shrinkwrap.json
generated
14
npm-shrinkwrap.json
generated
@ -15164,20 +15164,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"simple-git": {
|
"simple-git": {
|
||||||
"version": "2.48.0",
|
"version": "3.14.1",
|
||||||
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.48.0.tgz",
|
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.14.1.tgz",
|
||||||
"integrity": "sha512-z4qtrRuaAFJS4PUd0g+xy7aN4y+RvEt/QTJpR184lhJguBA1S/LsVlvE/CM95RsYMOFJG3NGGDjqFCzKU19S/A==",
|
"integrity": "sha512-1ThF4PamK9wBORVGMK9HK5si4zoGS2GpRO7tkAFObA4FZv6dKaCVHLQT+8zlgiBm6K2h+wEU9yOaFCu/SR3OyA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@kwsites/file-exists": "^1.1.1",
|
"@kwsites/file-exists": "^1.1.1",
|
||||||
"@kwsites/promise-deferred": "^1.1.1",
|
"@kwsites/promise-deferred": "^1.1.1",
|
||||||
"debug": "^4.3.2"
|
"debug": "^4.3.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": {
|
"debug": {
|
||||||
"version": "4.3.3",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ms": "2.1.2"
|
"ms": "2.1.2"
|
||||||
|
@ -95,7 +95,7 @@
|
|||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "node automation/check-npm-version.js && node automation/check-doc.js"
|
"pre-commit": "node automation/check-npm-version.js && ts-node automation/check-doc.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oclif": {
|
"oclif": {
|
||||||
@ -188,7 +188,7 @@
|
|||||||
"pkg": "^5.5.1",
|
"pkg": "^5.5.1",
|
||||||
"publish-release": "^1.6.1",
|
"publish-release": "^1.6.1",
|
||||||
"rewire": "^5.0.0",
|
"rewire": "^5.0.0",
|
||||||
"simple-git": "^2.48.0",
|
"simple-git": "^3.14.1",
|
||||||
"sinon": "^11.1.2",
|
"sinon": "^11.1.2",
|
||||||
"ts-node": "^10.4.0",
|
"ts-node": "^10.4.0",
|
||||||
"typescript": "^4.6.4"
|
"typescript": "^4.6.4"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user