-
Notifications
You must be signed in to change notification settings - Fork 161
fix: Clean up .serverless folder before packaging new artifact #275
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #275 +/- ##
====================================
Coverage ? 89%
====================================
Files ? 47
Lines ? 1664
Branches ? 230
====================================
Hits ? 1481
Misses ? 183
Partials ? 0
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add 1 comment - otherwise looks good.
src/plugins/azureBasePlugin.ts
Outdated
|
||
public constructor( | ||
protected serverless: Serverless, | ||
protected options: TOptions, | ||
) { | ||
Guard.null(serverless); | ||
this.originalCommand = (serverless as any as ServerlessObject).processedInput.commands[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider just calling this commands
and keep the whole array of commands vs only pulling the first value in the event we may need more later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call
0889174
to
35326cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need jsdoc for new interfaces and some questions
runtime: string; | ||
} | ||
|
||
export interface ServerlessObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsdoc
config: ServerlessConfig; | ||
} | ||
|
||
export enum ServerlessCliCommand { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsdoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought jsdoc syntax was documenting interface members outside and not inline?
LIST = "list", | ||
} | ||
|
||
export interface ServerlessConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsdoc
|
||
export interface ServerlessConfig { | ||
servicePath: string; | ||
packagePath: string; | ||
} | ||
|
||
export interface ServerlessAzureConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsdoc
35326cd
to
81d204e
Compare
81d204e
to
cbaf516
Compare
cbaf516
to
da21d8c
Compare
Cleans up
.serverless
folder unless the package plugin is being executed from adeploy
command in which the--package
option was included (don't want to remove a package the user is trying to deploy).Resolves #255