Skip to content

Commit

Permalink
chore: new build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Spittal committed May 9, 2022
1 parent 8039ccc commit 9680c12
Show file tree
Hide file tree
Showing 6 changed files with 21,282 additions and 4 deletions.
21,008 changes: 21,008 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

266 changes: 266 additions & 0 deletions .pnp.loader.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion dist/vue-i18n-extract.modern.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ function resolveConfig() {
const argvOptions = cac().parse(process.argv, {
run: false
}).options;
const excluded = argvOptions.exclude;
argvOptions.exclude = !Array.isArray(excluded) ? [excluded] : excluded;

try {
const pathToConfigFile = path.resolve(process.cwd(), './vue-i18n-extract.config.js'); // eslint-disable-next-line @typescript-eslint/no-var-requires
Expand Down Expand Up @@ -318,7 +320,7 @@ async function createI18NReport(options) {
const I18NItems = extractI18NItemsFromVueFiles(vueFiles);
const I18NLanguage = extractI18NLanguageFromLanguageFiles(languageFiles, dot);
const report = extractI18NReport(I18NItems, I18NLanguage);
report.unusedKeys = report.unusedKeys.filter(key => !exclude.includes(key.path));
report.unusedKeys = report.unusedKeys.filter(key => !exclude.filter(excluded => key.path.startsWith(excluded)).length);
if (report.missingKeys.length) console.info('\nMissing Keys'), console.table(report.missingKeys);
if (report.unusedKeys.length) console.info('\nUnused Keys'), console.table(report.unusedKeys);
if (report.maybeDynamicKeys.length) console.warn('\nSuspected Dynamic Keys Found\nvue-i18n-extract does not compile Vue templates and therefore can not infer the correct key for the following keys.'), console.table(report.maybeDynamicKeys);
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-i18n-extract.modern.mjs.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion dist/vue-i18n-extract.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue-i18n-extract.umd.js.map

Large diffs are not rendered by default.

0 comments on commit 9680c12

Please sign in to comment.