@gtkx/cli 0.2.6 → 0.2.7

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/cli.js CHANGED
@@ -1,10 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { createRequire } from "node:module";
3
4
  import { resolve } from "node:path";
4
5
  import { render } from "@gtkx/react";
5
6
  import { defineCommand, runMain } from "citty";
6
7
  import { createApp } from "./create.js";
7
8
  import { createDevServer } from "./dev-server.js";
9
+ const require = createRequire(import.meta.url);
10
+ const { version } = require("../package.json");
8
11
  const dev = defineCommand({
9
12
  meta: {
10
13
  name: "dev",
@@ -75,7 +78,7 @@ const create = defineCommand({
75
78
  const main = defineCommand({
76
79
  meta: {
77
80
  name: "gtkx",
78
- version: "0.1.55",
81
+ version,
79
82
  description: "CLI for GTKX - create and develop GTK4 React applications",
80
83
  },
81
84
  subCommands: {
package/dist/create.js CHANGED
@@ -228,7 +228,7 @@ export const createApp = async (options = {}) => {
228
228
  const defaultAppId = suggestAppId(name);
229
229
  const appId = options.appId ??
230
230
  (await p.text({
231
- message: "App ID (reverse domain notation)",
231
+ message: "App ID",
232
232
  placeholder: defaultAppId,
233
233
  initialValue: defaultAppId,
234
234
  validate: (value) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/cli",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "CLI for GTKX - create and develop GTK4 React applications",
5
5
  "license": "MPL-2.0",
6
6
  "author": "Eugenio Depalo <eugeniodepalo@gmail.com>",
@@ -47,8 +47,8 @@
47
47
  "@vitejs/plugin-react": "5.1.2",
48
48
  "citty": "0.1.6",
49
49
  "vite": "7.2.7",
50
- "@gtkx/ffi": "0.2.6",
51
- "@gtkx/react": "0.2.6"
50
+ "@gtkx/ffi": "0.2.7",
51
+ "@gtkx/react": "0.2.7"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^19"