question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`patterns` not working as expected for me - files missing from `.zip`

See original GitHub issue

Hi.

Using version 1.23.1.

I’m trying to get some files included in my deployment bundle - I have these files in migrations-core alongside my serverless function handlers.

image

On these functions only, I have this:

package: {
  patterns: ['**/migrations-core/*'],
},

When the code is being bundled, I can see these __only folders with the files and it refers to the the 2 expected functions.

image

However, these files are never included in the .zip file.

Am I missing something here - how can I get these files included? This is my config.

  esbuild: {
    bundle: true,
    minify: true,
    treeShaking: true,
    sourcemap: false,
    nativeZip: true,
    concurrency: 20,
    external: ['mongoose', 'winston', 'migrate-mongo', 'pdfkit', 'pdf-lib'],
    format: 'cjs',
},

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Jan 4, 2022

🎉 This issue has been resolved in version 1.23.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

1reaction
samchungycommented, Dec 21, 2021

Think I’ve figured it out in the above PR @chearmstrong ^

Read more comments on GitHub >

github_iconTop Results From Across the Web

r function unzip error 1 in extracting from zip file - Stack Overflow
I finally used getwd() to get the working directory and then placed the zip file in that directory. I then was able to...
Read more >
5 Methods to Fix Zip File Is Valid Problem
5 Methods to Fix Zip File Is Valid Problem · Part 1: What causes zip file invalid errors? · Part 2: Reinstallation of...
Read more >
macOS ZIP files made with the built-in Archive Utility aren't ...
For some reason, the macOS Finder's ZIP program is creating ZIP archives that are apparently missing certain validation information (like checksums), or where ......
Read more >
While uploading the ZIP file to manage apps error
I tried to generating app package multiple times and upload freshly most of the time it worked, however few times it is giving...
Read more >
Thing files not included in the "Download All" zip file
Every week I get a message about "missing legs", "please upload the legs", "where are the hips??", etc. The page shows 11 files,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found