@zachhandley/ez-i18n 0.3.12 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -397,10 +397,12 @@ function vitePlugin(config) {
397
397
  };
398
398
  useCache = true;
399
399
  for (const [locale, files] of Object.entries(cache.discovered)) {
400
+ const filesInPublic = files.length > 0 && isInPublicDir(files[0], projectRoot);
400
401
  translationInfo.set(locale, {
401
402
  locale,
402
403
  files,
403
- localeBaseDir: localeBaseDirs[locale]
404
+ localeBaseDir: localeBaseDirs[locale],
405
+ isPublic: filesInPublic
404
406
  });
405
407
  }
406
408
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zachhandley/ez-i18n",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },