@jsverse/transloco-keys-manager
Version:
Extract translatable keys from projects that uses Transloco
12 lines • 556 B
JavaScript
import { sync as globSync } from 'glob';
export function normalizedGlob(path, options = {}) {
// on Windows system the path will have `\` which are used a escape characters in glob
// therefore we have to escape those for the glob to work correctly on those systems
const normalizedPath = path.replace(/\\/g, '/');
const mergedOptions = {
...options,
ignore: ['node_modules/**', 'tmp/**', 'coverage/**', 'dist/**'],
};
return globSync(normalizedPath, mergedOptions);
}
//# sourceMappingURL=normalize-glob-path.js.map