We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 087c5be commit cd3f5b3Copy full SHA for cd3f5b3
lib/pip.js
@@ -385,6 +385,11 @@ function installRequirementsIfNeeded(
385
// Our source requirements, under our service path, and our module path (if specified)
386
const fileName = path.join(servicePath, modulePath, options.fileName);
387
388
+ // Skip requirements generation, if requirements file doesn't exist
389
+ if (!fse.existsSync(fileName)) {
390
+ return false;
391
+ }
392
+
393
let requirementsTxtDirectory;
394
// Copy our requirements to another filename in .serverless (incase of individually packaged)
395
if (modulePath && modulePath != '.') {
0 commit comments