diff --git a/cli/package.json b/cli/package.json index 5273622ecb..8e79eb3853 100644 --- a/cli/package.json +++ b/cli/package.json @@ -32,7 +32,6 @@ "dependencies": { "@aws-sdk/client-s3": "^3.86.0", "axios": "^1.2.1", - "aws-sdk": "^2.1167.0", "class-transformer": "^0.5.1", "cli": "^1.0.1", "cli-table3": "^0.6.3", diff --git a/cli/src/action/storage/index.ts b/cli/src/action/storage/index.ts index a90869c00f..7621f2640b 100644 --- a/cli/src/action/storage/index.ts +++ b/cli/src/action/storage/index.ts @@ -97,7 +97,7 @@ export async function pull(bucketName: string, outPath: string, options: { force // get local files const localFiles = readDirectoryRecursive(absPath).map((file) => { return { - key: path.relative(absPath, file), + key: path.relative(absPath, file).replace('\\', '/'), absPath: path.resolve(file), } }) @@ -146,7 +146,7 @@ export async function push(bucketName: string, inPath: string, options: { force: // get local files const localFiles = readDirectoryRecursive(absPath).map((file) => { return { - key: path.relative(absPath, file), + key: path.relative(absPath, file).replace('\\', '/'), absPath: path.resolve(file), } })