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.

package pack/publish ignores some folders

See original GitHub issue

The documentation states:

Publish a package to the registry so that it can be installed by name. All files in the package directory are included if export field is not declared in a package manifest (for example, see export). The next items are automatically excluded:

._* __* .DS_Store .git/ .hg/ .svn/ .pio/ **/.pio/

However, my library (https://github.com/maakbaas/esp8266-iot-framework) contains three folders not listed above html/, docs/, and build/ that are not included in the tarball in PlatformIO 5.0.1. By default the export section in my library.json looks like this:

“export”: { “exclude”: [ “node_modules”, “.vscode” ] }

even if I update my library.json export section to what is shown below, or several other iterations, these folders keep getting ignored.

“export”: { “exclude”: [ “node_modules”, “.vscode” ], “include”: [ “docs/", "build/”, ] }

If I rename build/ to build2/, docs/ to docs2/ and html/ to html2/, these will be included in the tarball. Is there another hardcoded list of folder names that is not mentioned in the documentation that will be excluded?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maakbaascommented, Nov 13, 2020

Yes, I can confirm that it works. Thanks a lot!

0reactions
ivankravetscommented, Nov 12, 2020

Double dash before dev

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature] pack/publish non-workspace folder · Issue #705
I can probably gitignore all the artifacts as well, since the sources are in the src/ folder, so basically ignoring any other folder...
Read more >
How to ignore files from your npm package
What you'll do is create a .gitignore file. # .gitignore node_modules. In this case, both Git and npm ignore the node_modules folder.
Read more >
Ignore Folders from Publish - Studio
In ReFramework project template, we have folder called Test and it contains all test cases related xaml files. We may required these files...
Read more >
python setup.py build ignoring some files
So far I've used the MANIFEST.in rules to include or exclude certain files, patterns and directories from the sdist. Is there a way...
Read more >
Rust And WebAssembly - wasm-pack
We can give any folder name or use the default. $ wasm-pack publish Your package hasn't been built, build it? yes out_dir[default: pkg]:....
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