@gtkx/cli 0.10.5 → 0.11.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/dist/create.js CHANGED
@@ -50,7 +50,7 @@ const runCommand = (command, cwd) => {
50
50
  };
51
51
  const suggestAppId = (name) => {
52
52
  const sanitized = name.replace(/-/g, "");
53
- return `org.gtkx.${sanitized}`;
53
+ return `com.${sanitized}.app`;
54
54
  };
55
55
  const checkCancelled = (value) => {
56
56
  if (p.isCancel(value)) {
package/dist/templates.js CHANGED
@@ -1,11 +1,8 @@
1
1
  import { readFileSync } from "node:fs";
2
- import { dirname, join } from "node:path";
3
- import { fileURLToPath } from "node:url";
2
+ import { join } from "node:path";
4
3
  import ejs from "ejs";
5
- const __filename = fileURLToPath(import.meta.url);
6
- const __dirname = dirname(__filename);
7
4
  const getTemplatesDir = () => {
8
- return join(__dirname, "..", "templates");
5
+ return join(import.meta.dirname, "..", "templates");
9
6
  };
10
7
  const renderTemplate = (templatePath, context) => {
11
8
  const templateContent = readFileSync(templatePath, "utf-8");
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@gtkx/cli",
3
- "version": "0.10.5",
3
+ "version": "0.11.1",
4
4
  "description": "CLI for GTKX - create and develop GTK4 React applications",
5
5
  "keywords": [
6
+ "gtkx",
6
7
  "gtk",
8
+ "gtk4",
7
9
  "react",
10
+ "typescript",
8
11
  "native",
9
12
  "linux",
13
+ "desktop",
10
14
  "cli",
11
15
  "scaffold",
12
16
  "hmr",
@@ -54,8 +58,8 @@
54
58
  "ejs": "^3.1.10",
55
59
  "react-refresh": "^0.18.0",
56
60
  "vite": "^7.3.0",
57
- "@gtkx/ffi": "0.10.5",
58
- "@gtkx/react": "0.10.5"
61
+ "@gtkx/ffi": "0.11.1",
62
+ "@gtkx/react": "0.11.1"
59
63
  },
60
64
  "devDependencies": {
61
65
  "@types/ejs": "^3.1.5",