@gtkx/cli 0.8.0 → 0.9.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.
Files changed (2) hide show
  1. package/dist/create.js +4 -3
  2. package/package.json +6 -6
package/dist/create.js CHANGED
@@ -10,13 +10,14 @@ const TESTING_DEV_DEPENDENCIES = {
10
10
  node: ["@gtkx/testing", "@types/node"],
11
11
  };
12
12
  export const getTestScript = (testing) => {
13
+ const env = "GDK_BACKEND=x11 GSK_RENDERER=cairo LIBGL_ALWAYS_SOFTWARE=1";
13
14
  switch (testing) {
14
15
  case "vitest":
15
- return "GDK_BACKEND=x11 xvfb-run -a vitest";
16
+ return `${env} xvfb-run -a vitest`;
16
17
  case "jest":
17
- return "GDK_BACKEND=x11 xvfb-run -a jest";
18
+ return `${env} xvfb-run -a jest`;
18
19
  case "node":
19
- return "GDK_BACKEND=x11 xvfb-run -a node --import tsx --test tests/**/*.test.ts";
20
+ return `${env} xvfb-run -a node --import tsx --test tests/**/*.test.ts`;
20
21
  case "none":
21
22
  return undefined;
22
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/cli",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "CLI for GTKX - create and develop GTK4 React applications",
5
5
  "keywords": [
6
6
  "gtk",
@@ -47,15 +47,15 @@
47
47
  "@vitejs/plugin-react": "^5.1.2",
48
48
  "citty": "^0.1.6",
49
49
  "vite": "^7.3.0",
50
- "@gtkx/ffi": "0.8.0",
51
- "@gtkx/react": "0.8.0"
52
- },
53
- "peerDependencies": {
54
- "react": "^19"
50
+ "@gtkx/ffi": "0.9.1",
51
+ "@gtkx/react": "0.9.1"
55
52
  },
56
53
  "devDependencies": {
57
54
  "memfs": "^4.51.1"
58
55
  },
56
+ "peerDependencies": {
57
+ "react": "^19"
58
+ },
59
59
  "scripts": {
60
60
  "build": "tsc -b",
61
61
  "test": "vitest run"