@stelliajs/framework 1.0.3 → 1.0.4

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.
@@ -3,7 +3,7 @@ import { readdirSync, statSync } from "fs";
3
3
  import path from "path";
4
4
  export const requiredFiles = async (directoryPath) => {
5
5
  const collection = new Collection();
6
- const filesPath = getAllFilesPath(directoryPath).filter((file) => file.endsWith(".ts"));
6
+ const filesPath = getAllFilesPath(directoryPath).filter((file) => /\.(js|[^d]\.ts)$/.test(file));
7
7
  for (const filePath of filesPath) {
8
8
  const data = await loadInteraction(filePath);
9
9
  collection.set(data.data.name, data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stelliajs/framework",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {