We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f47e8f1 commit f514e6aCopy full SHA for f514e6a
index.js
@@ -109,8 +109,14 @@ class ServerlessPlugin {
109
110
//If we've specified a regex expression then we'll replace that expression in the file.
111
//Otherwise we'll just write (overwrite) the file
112
- if (params.regex) this.replaceFile(params.location, message, params.regex)
113
- else fs.writeFileSync(params.location, message);
+ if (params.regex) {
+ this.serverless.cli.log(`Replacing version file.`);
114
+ this.replaceFile(params.location, message, params.regex)
115
+ }
116
+ else {
117
+ this.serverless.cli.log(`Creating version file.`);
118
+ fs.writeFileSync(params.location, message);
119
120
}
121
else this.serverless.cli.log("Skipping Deployment Tracker");
122
0 commit comments