@ts-for-gir/cli 4.0.0-rc.12 → 4.0.0-rc.13
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/ts-for-gir
CHANGED
|
@@ -7268,7 +7268,7 @@ import { dirname, join } from "node:path";
|
|
|
7268
7268
|
import { fileURLToPath } from "node:url";
|
|
7269
7269
|
function getPackageVersion() {
|
|
7270
7270
|
if (true) {
|
|
7271
|
-
return "4.0.0-rc.
|
|
7271
|
+
return "4.0.0-rc.13";
|
|
7272
7272
|
}
|
|
7273
7273
|
const currentModulePath = fileURLToPath(import.meta.url);
|
|
7274
7274
|
const currentDir = dirname(currentModulePath);
|
|
@@ -8165,7 +8165,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
8165
8165
|
var NEW_LINE_REG_EXP = /[\n\r]+/g;
|
|
8166
8166
|
function getPackageVersion2() {
|
|
8167
8167
|
if (true) {
|
|
8168
|
-
return "4.0.0-rc.
|
|
8168
|
+
return "4.0.0-rc.13";
|
|
8169
8169
|
}
|
|
8170
8170
|
try {
|
|
8171
8171
|
const currentModulePath = fileURLToPath2(import.meta.url);
|
|
@@ -21072,6 +21072,7 @@ import { existsSync as existsSync2, readFileSync as readFileSync3, writeFileSync
|
|
|
21072
21072
|
|
|
21073
21073
|
// src/config/config-loader.ts
|
|
21074
21074
|
import { dirname as dirname5, resolve as resolve4 } from "node:path";
|
|
21075
|
+
import { pathToFileURL } from "node:url";
|
|
21075
21076
|
import { cosmiconfig } from "cosmiconfig";
|
|
21076
21077
|
|
|
21077
21078
|
// src/config/config-writer.ts
|
|
@@ -21502,9 +21503,12 @@ var analyzeOptions = {
|
|
|
21502
21503
|
async function loadConfigFile(configName) {
|
|
21503
21504
|
const configSearchOptions = {
|
|
21504
21505
|
loaders: {
|
|
21505
|
-
// ESM loader
|
|
21506
|
+
// ESM loader. cosmiconfig hands us an absolute filesystem path; Node's import()
|
|
21507
|
+
// tolerates that as a non-spec extension, but spec-compliant runtimes (GJS /
|
|
21508
|
+
// SpiderMonkey) reject it with "Module not found: <abs-path>". Convert to a
|
|
21509
|
+
// file:// URL so the loader works in both runtimes.
|
|
21506
21510
|
".js": async (filepath) => {
|
|
21507
|
-
const file = await import(filepath);
|
|
21511
|
+
const file = await import(pathToFileURL(filepath).href);
|
|
21508
21512
|
if (file?.default?.default) {
|
|
21509
21513
|
return file.default.default;
|
|
21510
21514
|
}
|
|
@@ -27771,7 +27775,7 @@ import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
|
27771
27775
|
import { i18n, JSX as JSX8, ReflectionKind as ReflectionKind5 } from "typedoc";
|
|
27772
27776
|
function getTsForGirVersion() {
|
|
27773
27777
|
if (true) {
|
|
27774
|
-
return "4.0.0-rc.
|
|
27778
|
+
return "4.0.0-rc.13";
|
|
27775
27779
|
}
|
|
27776
27780
|
const __dirname3 = dirname8(fileURLToPath5(import.meta.url));
|
|
27777
27781
|
return JSON.parse(readFileSync7(join14(__dirname3, "..", "..", "package.json"), "utf8")).version;
|
package/bin/ts-for-gir-gjs
CHANGED
|
@@ -20725,7 +20725,7 @@ init_esm$15();
|
|
|
20725
20725
|
* or falling back to reading package.json in development mode.
|
|
20726
20726
|
*/
|
|
20727
20727
|
function getPackageVersion$1() {
|
|
20728
|
-
return "4.0.0-rc.
|
|
20728
|
+
return "4.0.0-rc.13";
|
|
20729
20729
|
}
|
|
20730
20730
|
const PACKAGE_VERSION = getPackageVersion$1();
|
|
20731
20731
|
|
|
@@ -21536,7 +21536,7 @@ const NEW_LINE_REG_EXP = /[\n\r]+/g;
|
|
|
21536
21536
|
* or falling back to reading package.json in development mode.
|
|
21537
21537
|
*/
|
|
21538
21538
|
function getPackageVersion() {
|
|
21539
|
-
return "4.0.0-rc.
|
|
21539
|
+
return "4.0.0-rc.13";
|
|
21540
21540
|
}
|
|
21541
21541
|
const APP_NAME = "ts-for-gir";
|
|
21542
21542
|
const APP_USAGE = "TypeScript type definition generator for GObject introspection GIR files";
|
|
@@ -214044,6 +214044,7 @@ const analyzeOptions = {
|
|
|
214044
214044
|
//#endregion
|
|
214045
214045
|
//#region src/config/config-loader.ts
|
|
214046
214046
|
init_esm$9();
|
|
214047
|
+
init_esm$15();
|
|
214047
214048
|
/**
|
|
214048
214049
|
* The user can create a `.ts-for-girrc` file for his default configs,
|
|
214049
214050
|
* this method load this config file an returns the user configuration
|
|
@@ -214051,7 +214052,7 @@ init_esm$9();
|
|
|
214051
214052
|
*/
|
|
214052
214053
|
async function loadConfigFile(configName) {
|
|
214053
214054
|
const configSearchOptions = { loaders: { ".js": async (filepath) => {
|
|
214054
|
-
const file = await import(filepath);
|
|
214055
|
+
const file = await import(pathToFileURL(filepath).href);
|
|
214055
214056
|
if (file?.default?.default) return file.default.default;
|
|
214056
214057
|
if (file?.default) return file.default;
|
|
214057
214058
|
return file;
|
|
@@ -295354,7 +295355,7 @@ init_esm$5();
|
|
|
295354
295355
|
init_esm$9();
|
|
295355
295356
|
init_esm$15();
|
|
295356
295357
|
function getTsForGirVersion() {
|
|
295357
|
-
return "4.0.0-rc.
|
|
295358
|
+
return "4.0.0-rc.13";
|
|
295358
295359
|
}
|
|
295359
295360
|
const TSFOR_GIR_VERSION = getTsForGirVersion();
|
|
295360
295361
|
/** Render the module info section (namespace name, versions, dependencies). */
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"typescript": "^6.0.2"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@girs/adw-1": "^1.10.0-4.0.0-rc.
|
|
18
|
-
"@girs/gio-2.0": "^2.88.0-4.0.0-rc.
|
|
19
|
-
"@girs/gjs": "^4.0.0-rc.
|
|
20
|
-
"@girs/glib-2.0": "^2.88.0-4.0.0-rc.
|
|
21
|
-
"@girs/gtk-4.0": "^4.23.0-4.0.0-rc.
|
|
17
|
+
"@girs/adw-1": "^1.10.0-4.0.0-rc.12",
|
|
18
|
+
"@girs/gio-2.0": "^2.88.0-4.0.0-rc.12",
|
|
19
|
+
"@girs/gjs": "^4.0.0-rc.12",
|
|
20
|
+
"@girs/glib-2.0": "^2.88.0-4.0.0-rc.12",
|
|
21
|
+
"@girs/gtk-4.0": "^4.23.0-4.0.0-rc.12"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-for-gir/cli",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.13",
|
|
4
4
|
"description": "TypeScript type definition generator for GObject introspection GIR files",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"module": "src/index.ts",
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
".": "./src/index.ts"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@gi.ts/parser": "^4.0.0-rc.
|
|
75
|
+
"@gi.ts/parser": "^4.0.0-rc.13",
|
|
76
76
|
"@gjsify/cli": "^0.3.14",
|
|
77
|
-
"@ts-for-gir/generator-base": "^4.0.0-rc.
|
|
78
|
-
"@ts-for-gir/generator-html-doc": "^4.0.0-rc.
|
|
79
|
-
"@ts-for-gir/generator-json": "^4.0.0-rc.
|
|
80
|
-
"@ts-for-gir/generator-typescript": "^4.0.0-rc.
|
|
81
|
-
"@ts-for-gir/lib": "^4.0.0-rc.
|
|
82
|
-
"@ts-for-gir/reporter": "^4.0.0-rc.
|
|
83
|
-
"@ts-for-gir/tsconfig": "^4.0.0-rc.
|
|
77
|
+
"@ts-for-gir/generator-base": "^4.0.0-rc.13",
|
|
78
|
+
"@ts-for-gir/generator-html-doc": "^4.0.0-rc.13",
|
|
79
|
+
"@ts-for-gir/generator-json": "^4.0.0-rc.13",
|
|
80
|
+
"@ts-for-gir/generator-typescript": "^4.0.0-rc.13",
|
|
81
|
+
"@ts-for-gir/lib": "^4.0.0-rc.13",
|
|
82
|
+
"@ts-for-gir/reporter": "^4.0.0-rc.13",
|
|
83
|
+
"@ts-for-gir/tsconfig": "^4.0.0-rc.13",
|
|
84
84
|
"@types/ejs": "^3.1.5",
|
|
85
85
|
"@types/inquirer": "^9.0.9",
|
|
86
86
|
"@types/node": "^25.6.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@inquirer/prompts": "^8.4.2",
|
|
94
|
-
"@ts-for-gir/templates": "^4.0.0-rc.
|
|
94
|
+
"@ts-for-gir/templates": "^4.0.0-rc.13",
|
|
95
95
|
"colorette": "^2.0.20",
|
|
96
96
|
"cosmiconfig": "^9.0.1",
|
|
97
97
|
"ejs": "^5.0.2",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { dirname, resolve } from "node:path";
|
|
6
|
+
import { pathToFileURL } from "node:url";
|
|
6
7
|
import type { ConfigFlags, OptionsGeneration, UserConfig, UserConfigLoadResult } from "@ts-for-gir/lib";
|
|
7
8
|
import { APP_NAME, isEqual } from "@ts-for-gir/lib";
|
|
8
9
|
import { type Options as ConfigSearchOptions, cosmiconfig } from "cosmiconfig";
|
|
@@ -18,9 +19,12 @@ import { docOptions, options } from "./options.ts";
|
|
|
18
19
|
export async function loadConfigFile(configName?: string): Promise<UserConfigLoadResult | null> {
|
|
19
20
|
const configSearchOptions: Partial<ConfigSearchOptions> = {
|
|
20
21
|
loaders: {
|
|
21
|
-
// ESM loader
|
|
22
|
+
// ESM loader. cosmiconfig hands us an absolute filesystem path; Node's import()
|
|
23
|
+
// tolerates that as a non-spec extension, but spec-compliant runtimes (GJS /
|
|
24
|
+
// SpiderMonkey) reject it with "Module not found: <abs-path>". Convert to a
|
|
25
|
+
// file:// URL so the loader works in both runtimes.
|
|
22
26
|
".js": async (filepath) => {
|
|
23
|
-
const file = await import(filepath);
|
|
27
|
+
const file = await import(pathToFileURL(filepath).href);
|
|
24
28
|
|
|
25
29
|
// Files with `exports.default = { ... }`
|
|
26
30
|
if (file?.default?.default) {
|