aboutsummaryrefslogtreecommitdiff
path: root/node_modules/simple-git/promise.js
blob: bae68f9833f942ac95334f77f42e9a220b302122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// TODO: deprecation warning
console.warn(`=============================================
simple-git has supported promises / async await since version 2.6.0.
 Importing from 'simple-git/promise' has been deprecated and will be
 removed by July 2022.

To upgrade, change all 'simple-git/promise' imports to just 'simple-git'
=============================================`);

const simpleGit = require('.');

module.exports = Object.assign(
   function () { return simpleGit.gitP.apply(null, arguments) },
   simpleGit,
   { default: simpleGit.gitP },
);