diff --git a/src/ServerlessOffline.js b/src/ServerlessOffline.js index 0d633b81e..3db0276d9 100644 --- a/src/ServerlessOffline.js +++ b/src/ServerlessOffline.js @@ -1,7 +1,7 @@ import process, { env, exit } from 'node:process' -import updateNotifier from 'update-notifier' import chalk from 'chalk' import { parse as semverParse } from 'semver' +import updateNotifier from 'update-notifier' import debugLog from './debugLog.js' import serverlessLog, { logWarning, setLog } from './serverlessLog.js' import { satisfiesVersionRange } from './utils/index.js' diff --git a/src/lambda/LambdaFunction.js b/src/lambda/LambdaFunction.js index e24a8b243..4fb2cea0e 100644 --- a/src/lambda/LambdaFunction.js +++ b/src/lambda/LambdaFunction.js @@ -1,6 +1,7 @@ +import { readFile, writeFile } from 'node:fs/promises' import { dirname, join, resolve } from 'node:path' import { performance } from 'node:perf_hooks' -import { emptyDir, ensureDir, readFile, remove, writeFile } from 'fs-extra' +import { emptyDir, ensureDir, remove } from 'fs-extra' import jszip from 'jszip' import HandlerRunner from './handler-runner/index.js' import LambdaContext from './LambdaContext.js' diff --git a/src/lambda/handler-runner/docker-runner/DockerContainer.js b/src/lambda/handler-runner/docker-runner/DockerContainer.js index 2dcfc4583..5650a1e7b 100644 --- a/src/lambda/handler-runner/docker-runner/DockerContainer.js +++ b/src/lambda/handler-runner/docker-runner/DockerContainer.js @@ -1,10 +1,11 @@ import { createHash } from 'node:crypto' import { createWriteStream, unlinkSync } from 'node:fs' +import { readFile, writeFile } from 'node:fs/promises' import { platform } from 'node:os' import { dirname, join, sep } from 'node:path' import { Lambda } from 'aws-sdk' import execa from 'execa' -import { ensureDir, pathExists, readFile, writeFile } from 'fs-extra' +import { ensureDir, pathExists } from 'fs-extra' import jszip from 'jszip' import fetch from 'node-fetch' import pRetry from 'p-retry'