Skip to content

Commit

Permalink
[skip ci] Update mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
r2-action-bot[bot] committed Nov 27, 2022
1 parent 4a16c65 commit ff2f9ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53443,16 +53443,18 @@ const getFileList = (dir) => {
return files;
};
const run = async (config) => {
// Remove slashes in source dir
config.sourceDir = config.sourceDir.replace(/\\/g, "").replace(/\//g, "");
const map = new Map();
const urls = {};
const files = getFileList(config.sourceDir);
for (const file of files) {
console.log(file);
const fileStream = fs__WEBPACK_IMPORTED_MODULE_2__.readFileSync(file);
console.log(config.sourceDir);
const sourceDirRegex = new RegExp(config.sourceDir, 'g');
const sourceDirRegex = new RegExp(config.sourceDir + "\\\\", 'g');
console.log(config.destinationDir);
const fileName = file.replace(sourceDirRegex, config.destinationDir);
const fileName = file.replace(sourceDirRegex, path__WEBPACK_IMPORTED_MODULE_5___default().join(config.destinationDir));
if (fileName.includes('.gitkeep'))
continue;
console.log(fileName);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit ff2f9ec

Please sign in to comment.