milkio 0.2.2 → 0.2.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.
package/c.ts CHANGED
@@ -25,7 +25,7 @@ const commands = {
25
25
  },
26
26
  async EAR(commandBase64ed: string) {
27
27
  try {
28
- await $`clear`;
28
+ console.clear();
29
29
  } catch (e) {}
30
30
  const command = Buffer.from(commandBase64ed, "base64").toString("utf-8");
31
31
  console.log("\x1B[2m%s\x1B[0m", `$ ${command}`);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "milkio",
3
3
  "type": "module",
4
4
  "module": "index.ts",
5
- "version": "0.2.2",
5
+ "version": "0.2.4",
6
6
  "peerDependencies": {
7
7
  "typescript": "^5.4.2"
8
8
  },
@@ -49,8 +49,9 @@ export default async () => {
49
49
 
50
50
  console.time(`File Stage`);
51
51
 
52
- for (const path of appFiles) {
53
- if (!path.endsWith(".ts")) continue;
52
+ for (const pathRaw of appFiles) {
53
+ if (!pathRaw.endsWith(".ts")) continue;
54
+ const path = pathRaw.replaceAll("\\", "/");
54
55
  const module = await import(/* @vite-ignore */ join(cwd(), "src", "apps", path));
55
56
 
56
57
  if (module?.api?.isApi === true) {