Skip to content

filesystem provider does not support fileMappings #793

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

Open
jimmylewis opened this issue Apr 4, 2025 · 0 comments · May be fixed by #794
Open

filesystem provider does not support fileMappings #793

jimmylewis opened this issue Apr 4, 2025 · 0 comments · May be fixed by #794
Assignees

Comments

@jimmylewis
Copy link
Contributor

Describe the bug

Using the new fileMappings feature with the filesystem provider does not filter the files correctly.

To Reproduce

{
  "version": "3.0",
  "defaultProvider": "unpkg",
  "defaultDestination": "Scripts/",
  "libraries": [
    {
      "library": "SourcePath/",
      "provider": "filesystem",
      "fileMappings": [
        {
          "files": ["*.css"]
        }
      ]
    }
  ]
}

Run libman restore, see that all files from the source folder get copied (not just the *.css files in the filter).

Expected behavior

Only files matching the fileMapping should get copied

@jimmylewis jimmylewis self-assigned this Apr 4, 2025
@jimmylewis jimmylewis linked a pull request Apr 5, 2025 that will close this issue
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