Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The following include patterns in the... #1073

Closed
vanyauhalin opened this issue Nov 2, 2024 · 1 comment · Fixed by #1075
Closed

The following include patterns in the... #1073

vanyauhalin opened this issue Nov 2, 2024 · 1 comment · Fixed by #1075

Comments

@vanyauhalin
Copy link

Hello. I was working on version 2 (I am unable to specify which exact one), and everything was fine. Then I updated to the latest version 2, and I encountered an error when packing an extension. I decided to switch to the third version, but the error remained. Please take a look, it seems to be a bug.

vsce package --no-dependencies
 ERROR  The following include patterns in the "files" property in package.json do not match any files packaged in the extension:
  - /Users/vanyauhalin/self/moondusttheme/README.md
Remove any include pattern which is not needed.
cat package.json | jq '.files'
[
  "dist/dark.json",
  "dist/light.json",
  "docs/icon.png",
  "LICENSE",
  "package.json",
  "README.md"
]
vsce package --no-dependencies --allow-unused-files-pattern
 INFO  Files included in the VSIX:
moondusttheme-0.7.0.vsix
├─ [Content_Types].xml 
├─ extension.vsixmanifest 
└─ extension/
   ├─ LICENSE.txt [1.07 KB]
   ├─ package.json [1.66 KB]
   ├─ readme.md [0.12 KB]
   ├─ dist/
   │  ├─ dark.json [135.73 KB]
   │  └─ light.json [135.93 KB]
   └─ docs/
      └─ icon.png [15.8 KB]

 DONE  Packaged: /Users/vanyauhalin/self/moondusttheme/moondusttheme-0.7.0.vsix (8 files, 42.98 KB)
@vanyauhalin
Copy link
Author

@benibenj, thank you! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant