milkio 0.6.0-alpha.1 → 0.6.0-alpha.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.
package/api-test/index.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import schema from "../../../generated/api-schema";
2
2
  import { ExecuteResultFail, type MilkioApp } from "..";
3
- import { cwd } from "node:process";
4
3
  import chalk from "chalk";
5
4
  import { handleCatchError } from "../utils/handle-catch-error.ts";
6
5
 
7
6
  export const executeApiTests = async <Path extends Array<keyof (typeof schema)["apiTestsSchema"]>>(app: MilkioApp, path: Path | string | true | 1 | undefined) => {
8
- console.log(`${chalk.hex("#81C7D4")(`🧊 test running on`)} ${chalk.hex("#999A9E").underline(cwd())}`);
7
+ console.log(`${chalk.hex("#81C7D4")(`🧊 test running`)}`);
9
8
 
10
9
  let pathArr = [] as Array<string>;
11
10
  if (!path || path === "1" || path === 1 || path === true) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "milkio",
3
3
  "type": "module",
4
4
  "module": "index.ts",
5
- "version": "0.6.0-alpha.1",
5
+ "version": "0.6.0-alpha.3",
6
6
  "peerDependencies": {
7
7
  "typescript": "^5.4.2"
8
8
  },
@@ -237,8 +237,9 @@ export default async () => {
237
237
 
238
238
  console.time(`Client Stage`);
239
239
  try {
240
- await $`bun run ./node_modules/typescript/bin/tsc --outDir "./packages/client/project"`.quiet();
241
- } catch (error) {}
240
+ if (process.platform !== "win32") await $`bun run ./node_modules/typescript/bin/tsc --outDir './packages/client/project'`.quiet();
241
+ else await $`powershell.exe -command "bun run ./node_modules/typescript/bin/tsc --outDir './packages/client/project'"`.quiet();
242
+ } catch (error) { }
242
243
  await Bun.build({
243
244
  entrypoints: ["./packages/client/index.ts"],
244
245
  outdir: "./packages/client/dist",