Skip to content

Commit 962ccf2

Browse files
committed
fix: wrong path.copy parameters & fix artifact
1 parent 424fe49 commit 962ccf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ export class TypeScriptPlugin {
219219
const { service } = this.serverless
220220

221221
await fs.copy(
222-
path.join(this.originalServicePath, BUILD_FOLDER, SERVERLESS_FOLDER),
223-
path.join(this.originalServicePath, SERVERLESS_FOLDER)
222+
path.join(this.originalServicePath, SERVERLESS_FOLDER),
223+
path.join(this.originalServicePath, BUILD_FOLDER, SERVERLESS_FOLDER)
224224
)
225225

226226
if (this.options.function) {
@@ -245,7 +245,7 @@ export class TypeScriptPlugin {
245245
return
246246
}
247247

248-
service.package.artifact = path.join(
248+
service.package.artifact = service.package.artifact && path.join(
249249
this.originalServicePath,
250250
SERVERLESS_FOLDER,
251251
path.basename(service.package.artifact)

0 commit comments

Comments
 (0)