@geekron/strapi 0.3.2 → 0.3.3

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.
@@ -201,7 +201,7 @@ export const translations = (config?: TranslationsConfig): Record<string, Record
201
201
 
202
202
  // @ts-ignore
203
203
  // 自动加载默认翻译目录
204
- const defaultModules = import.meta.glob('./*/**/*.json', { eager: true, import: 'default' });
204
+ const defaultModules = import.meta.glob('./*\/**\/*.json', { eager: true, import: 'default' });
205
205
 
206
206
  // 收集所有模块(默认目录在前,自定义目录在后,确保自定义目录覆盖默认目录)
207
207
  const allModuleSources = [
@@ -201,7 +201,7 @@ export const translations = (config?: TranslationsConfig): Record<string, Record
201
201
 
202
202
  // @ts-ignore
203
203
  // 自动加载默认翻译目录
204
- const defaultModules = import.meta.glob('./*/**/*.json', { eager: true, import: 'default' });
204
+ const defaultModules = import.meta.glob('./*\/**\/*.json', { eager: true, import: 'default' });
205
205
 
206
206
  // 收集所有模块(默认目录在前,自定义目录在后,确保自定义目录覆盖默认目录)
207
207
  const allModuleSources = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekron/strapi",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "极客领航网站管理插件",
5
5
  "type": "commonjs",
6
6
  "author": "Geekron",