@crievo/omni 0.1.0 → 0.1.1

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/bin/omni.mjs CHANGED
@@ -10,5 +10,9 @@ import { join } from "node:path";
10
10
  if (!process.env.OMNI_HOME)
11
11
  process.env.OMNI_HOME = existsSync(join(process.cwd(), "omnivideo.config.json")) ? process.cwd() : join(homedir(), "OmniVideo");
12
12
 
13
+ /* a first run has no workspace yet, and the tools read its config as they load */
14
+ const { ensureWorkspace } = await import("../tools/lib/up.mjs");
15
+ ensureWorkspace();
16
+
13
17
  const { main } = await import("../tools/omni.mjs");
14
18
  await main(process.argv.slice(2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crievo/omni",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "OmniVideo no seu computador: o CLI omni, o studio local e as ferramentas do pipeline.",
5
5
  "type": "module",
6
6
  "bin": {
package/tools/package.mjs CHANGED
@@ -52,7 +52,7 @@ const INCLUDE = [
52
52
  ".env.example",
53
53
  ];
54
54
  const SKIP = [
55
- /\.test\.(mjs|ts|js)$/,
55
+ /\.test\.(mjs|ts|tsx|js)$/,
56
56
  /(^|\/)test(\/|$)/,
57
57
  /(^|\/)__pycache__(\/|$)/,
58
58
  /\.pyc$/,
@@ -1,30 +0,0 @@
1
- import { describe, expect, test } from "bun:test";
2
- import { renderToString } from "react-dom/server";
3
- import { Tip, Tooltip, TooltipContent, TooltipTrigger } from "./tooltip";
4
-
5
- describe("Tooltip", () => {
6
- test("Tip keeps its child as the trigger and shows nothing until it is hovered", () => {
7
- const html = renderToString(
8
- <Tip label="Enviar">
9
- <button type="button">ok</button>
10
- </Tip>,
11
- );
12
- expect(html).toContain("<button");
13
- expect(html).toContain("ok");
14
- expect(html).toContain('data-state="closed"');
15
- expect(html).not.toContain("Enviar");
16
- });
17
-
18
- test("an open tooltip is instant and described to screen readers (the label itself goes to a portal)", () => {
19
- const html = renderToString(
20
- <Tooltip open>
21
- <TooltipTrigger asChild>
22
- <button type="button">ok</button>
23
- </TooltipTrigger>
24
- <TooltipContent>Encerrar</TooltipContent>
25
- </Tooltip>,
26
- );
27
- expect(html).toContain('data-state="instant-open"');
28
- expect(html).toContain("aria-describedby");
29
- });
30
- });