Skip to content

Commit

Permalink
Fixing copyFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Oct 3, 2024
1 parent 2f15f0d commit ecde078
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ node node_modules/@iobroker/build-tools/convertI18n.js path/to/i18n
-->

## Changelog
### 2.0.3 (2024-10-03)
### **WORK IN PROGRESS**

- (@GermanBluefox) Used glob for patterns

Expand Down
5 changes: 5 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ export function collectFiles(patterns: string[] | string): { name: string; base:
const files: string[] = globSync(_patterns[i]);

for (let f = 0; f < files.length; f++) {
files[f] = files[f].replace(/\\/g, '/');
if (files[f].startsWith(folder)) {
files[f] = files[f].substring(folder.length + 1);
}

if (add) {
// ignore folders
if (statSync(join(folder, files[f])).isDirectory()) {
Expand Down

0 comments on commit ecde078

Please sign in to comment.