MCPcopy Index your code
hub / github.com/darkreader/darkreader / getOutputPath

Function getOutputPath

tasks/bundle-locales.js:88–88  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

86async function writeFiles(data, fileName, {platforms, debug}){
87 const locale = fileName.substring(0, fileName.lastIndexOf('.')).replace('-', '_');
88 const getOutputPath = (dir) => `${dir}/_locales/${locale}/messages.json`;
89 const enabledPlatforms = Object.values(PLATFORM).filter((platform) => platform !== PLATFORM.API && platforms[platform]);
90 for (const platform of enabledPlatforms) {
91 const dir = getDestDir({debug, platform});

Callers 1

writeFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected