1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

refactor: usage of node: for builtin modules

This commit is contained in:
Divlo
2021-07-03 18:40:17 +02:00
parent fd830c9a8b
commit c80eb11874
32 changed files with 1396 additions and 1270 deletions

View File

@ -1,5 +1,6 @@
import fs from 'node:fs'
import fsMock from 'mock-fs'
import fs from 'fs'
import { copyDirectory } from '../copyDirectory'

View File

@ -1,5 +1,6 @@
import fs from 'node:fs'
import fsMock from 'mock-fs'
import fs from 'fs'
import {
TEMPORARY_PATH,

View File

@ -1,5 +1,5 @@
import fs from 'fs'
import path from 'path'
import fs from 'node:fs'
import path from 'node:path'
export async function copyDirectory (
source: string,

View File

@ -1,5 +1,5 @@
import path from 'path'
import fs from 'fs'
import path from 'node:path'
import fs from 'node:fs'
import { isExistingPath } from '../utils/isExistingPath'

View File

@ -1,4 +1,4 @@
import fs from 'fs'
import fs from 'node:fs'
export const isExistingPath = async (path: string): Promise<boolean> => {
try {