We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 424fe49 commit 962ccf2Copy full SHA for 962ccf2
src/index.ts
@@ -219,8 +219,8 @@ export class TypeScriptPlugin {
219
const { service } = this.serverless
220
221
await fs.copy(
222
- path.join(this.originalServicePath, BUILD_FOLDER, SERVERLESS_FOLDER),
223
- path.join(this.originalServicePath, SERVERLESS_FOLDER)
+ path.join(this.originalServicePath, SERVERLESS_FOLDER),
+ path.join(this.originalServicePath, BUILD_FOLDER, SERVERLESS_FOLDER)
224
)
225
226
if (this.options.function) {
@@ -245,7 +245,7 @@ export class TypeScriptPlugin {
245
return
246
}
247
248
- service.package.artifact = path.join(
+ service.package.artifact = service.package.artifact && path.join(
249
this.originalServicePath,
250
SERVERLESS_FOLDER,
251
path.basename(service.package.artifact)
0 commit comments