@vixt/core 0.5.0 → 0.5.2

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.
@@ -128,7 +128,7 @@ async function applyLayerModules(layers) {
128
128
  for (const m of modulesDirs.reverse()) {
129
129
  if (fs.existsSync(m)) {
130
130
  const files = fs.readdirSync(m);
131
- for (const f of files) {
131
+ for (const f of files.filter((f2) => /(?:t|j)s$/.test(f2))) {
132
132
  const p = path.resolve(m, f);
133
133
  const module = await import(
134
134
  /* @vite-ignore */
@@ -414,7 +414,7 @@ function generatePlugins(vixt) {
414
414
  let i = 0;
415
415
  for (const pluginsDir of pluginsDirs.reverse()) {
416
416
  const files = fs.existsSync(pluginsDir) ? fs.readdirSync(pluginsDir) : [];
417
- for (const f of files) {
417
+ for (const f of files.filter((f2) => /(?:t|j)sx?$/.test(f2))) {
418
418
  const p = path.resolve(pluginsDir, f);
419
419
  const pluginName = `__plugin_${i}`;
420
420
  pluginsImportTemplate += `import ${pluginName} from '${p}'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.5.2",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",