Skip to content

Commit

Permalink
fix(Console): Ensure to package extension without errors
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Mar 17, 2022
1 parent 3ccfec1 commit 64ee4a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/classes/console.js
Expand Up @@ -6,6 +6,7 @@ const lazy = require('d/lazy');
const path = require('path');
const os = require('os');
const fsp = require('fs').promises;
const fse = require('fs-extra');
const fetch = require('node-fetch');
const tar = require('tar');
const filesize = require('filesize');
Expand Down Expand Up @@ -264,6 +265,7 @@ class Console {
async packageOtelExtensionLayer() {
const layerFilename = await this.deferredExtensionLayerFilename;
log.debug('copy extension file (%s) to package directory', layerFilename);
await fse.ensureDir(path.join(this.serverless.serviceDir, '.serverless'));
await fsp.copyFile(
layerFilename,
path.join(
Expand Down

0 comments on commit 64ee4a5

Please sign in to comment.