Skip to content

Commit 71bafcf

Browse files
committed
fix: one more fs/promises fixed for node12
1 parent 6e74824 commit 71bafcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sourceTracking.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import { unlink } from 'fs/promises';
7+
import { promises as fs } from 'fs';
88
import * as path from 'path';
99
import { NamedPackageDir, Logger, Org, SfdxProject } from '@salesforce/core';
1010
import { getString } from '@salesforce/ts-types';
@@ -210,7 +210,7 @@ export class SourceTracking extends AsyncCreatable {
210210
.map((change) => change.filenames as string[])
211211
.flat()
212212
.filter(Boolean);
213-
await Promise.all(filenames.map((filename) => unlink(filename)));
213+
await Promise.all(filenames.map((filename) => fs.unlink(filename)));
214214
await Promise.all([
215215
this.updateLocalTracking({ deletedFiles: filenames }),
216216
this.updateRemoteTracking(

0 commit comments

Comments
 (0)