@gjsify/cli 0.64.52 → 0.64.53

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.
@@ -726,6 +726,9 @@ export class BuildAction {
726
726
  consoleShim,
727
727
  ...(dialect !== undefined ? { dialect } : {}),
728
728
  ...(giRenderer === true ? { giRenderer: true } : {}),
729
+ ...(giRenderer === true && this.configData.nativescript?.giReal?.length
730
+ ? { giReal: this.configData.nativescript.giReal }
731
+ : {}),
729
732
  ...(nativescriptLocale ? { nativescriptLocale } : {}),
730
733
  ...(aliases ? { aliases } : {}),
731
734
  ...(opts.preserveDefaultExport ? { preserveDefaultExport: true } : {}),
package/lib/config.js CHANGED
@@ -327,6 +327,14 @@ export class Config {
327
327
  'It selects what an Android APK carries (ADR 0117); every other target resolves ' +
328
328
  '`gi://` against a GI stack the host already has.');
329
329
  }
330
+ if (configData.nativescript?.giReal?.length) {
331
+ if (configData.app !== 'nativescript' || configData.giRenderer !== true) {
332
+ throw new Error('gjsify build: nativescript.giReal only applies to --app nativescript with --gi-renderer: ' +
333
+ 'without the renderer every `gi://` is already an empty module, and every other target ' +
334
+ 'has real or node-gi namespaces.');
335
+ }
336
+ assertGiNamespaceEntries(configData.nativescript.giReal, 'gjsify build: nativescript.giReal');
337
+ }
330
338
  // Shape-checked through the shared helper, because the Vite path accepts the
331
339
  // same key and a check that holds on only one of them is a project that builds
332
340
  // one way and fails the other for a typo.
@@ -287,6 +287,12 @@ export interface ConfigDataNativescript {
287
287
  * itself and ships whether or not anything declares it.
288
288
  */
289
289
  giNamespaces?: string[];
290
+ /**
291
+ * With `giRenderer`: namespaces (`Ns` or `Ns-Version`) answered by real `@gjsify/node-gi`
292
+ * instead of the renderer's deliberately sparse `Gio`/`GLib` arm, so non-widget code can use
293
+ * e.g. `Gio.SocketClient`. Needs `@gjsify/node-gi` as an app dependency.
294
+ */
295
+ giReal?: string[];
290
296
  }
291
297
  /** Optional pointer to a non-default oxc config file. */
292
298
  export interface ConfigDataFormat {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/cli",
3
- "version": "0.64.52",
3
+ "version": "0.64.53",
4
4
  "description": "CLI for Gjsify",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -142,22 +142,22 @@
142
142
  "cli"
143
143
  ],
144
144
  "dependencies": {
145
- "@gjsify/blueprint": "0.64.52",
146
- "@gjsify/buffer": "0.64.52",
147
- "@gjsify/create-app": "0.64.52",
148
- "@gjsify/node-globals": "0.64.52",
149
- "@gjsify/node-polyfills": "0.64.52",
150
- "@gjsify/npm-registry": "0.64.52",
151
- "@gjsify/resolve-npm": "0.64.52",
152
- "@gjsify/rolldown-plugin-gjsify": "0.64.52",
153
- "@gjsify/vite-plugin-blueprint": "0.64.52",
154
- "@gjsify/rolldown-plugin-pnp": "0.64.52",
155
- "@gjsify/semver": "0.64.52",
156
- "@gjsify/tar": "0.64.52",
157
- "@gjsify/tsc": "0.64.52",
158
- "@gjsify/utils": "0.64.52",
159
- "@gjsify/web-polyfills": "0.64.52",
160
- "@gjsify/workspace": "0.64.52",
145
+ "@gjsify/blueprint": "0.64.53",
146
+ "@gjsify/buffer": "0.64.53",
147
+ "@gjsify/create-app": "0.64.53",
148
+ "@gjsify/node-globals": "0.64.53",
149
+ "@gjsify/node-polyfills": "0.64.53",
150
+ "@gjsify/npm-registry": "0.64.53",
151
+ "@gjsify/resolve-npm": "0.64.53",
152
+ "@gjsify/rolldown-plugin-gjsify": "0.64.53",
153
+ "@gjsify/vite-plugin-blueprint": "0.64.53",
154
+ "@gjsify/rolldown-plugin-pnp": "0.64.53",
155
+ "@gjsify/semver": "0.64.53",
156
+ "@gjsify/tar": "0.64.53",
157
+ "@gjsify/tsc": "0.64.53",
158
+ "@gjsify/utils": "0.64.53",
159
+ "@gjsify/web-polyfills": "0.64.53",
160
+ "@gjsify/workspace": "0.64.53",
161
161
  "acorn": "^8.17.0",
162
162
  "cosmiconfig": "^9.0.2",
163
163
  "get-tsconfig": "^4.14.0",
@@ -166,13 +166,13 @@
166
166
  "yargs": "^18.0.0"
167
167
  },
168
168
  "devDependencies": {
169
- "@gjsify/unit": "0.64.52",
169
+ "@gjsify/unit": "0.64.53",
170
170
  "@types/yargs": "^17.0.35",
171
171
  "typescript": "^6.0.3"
172
172
  },
173
173
  "peerDependencies": {
174
- "@gjsify/oxfmt-native": "0.64.52",
175
- "@gjsify/rolldown-native": "0.64.52"
174
+ "@gjsify/oxfmt-native": "0.64.53",
175
+ "@gjsify/rolldown-native": "0.64.53"
176
176
  },
177
177
  "peerDependenciesMeta": {
178
178
  "@gjsify/oxfmt-native": {