graphile 5.0.0-rc.3 → 5.0.0-rc.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # graphile
2
2
 
3
+ ## 5.0.0-rc.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a3722d6`](https://github.com/graphile/crystal/commit/a3722d613bc6fb9e32f167aae9a31eaa422ceef1)
8
+ Thanks [@benjie](https://github.com/benjie)! - Refactor to enable TypeScript
9
+ options rewriteRelativeImportExtensions and erasableSyntaxOnly (including
10
+ using .ts extensions in source code)
11
+
12
+ - [#2893](https://github.com/graphile/crystal/pull/2893)
13
+ [`63828eb`](https://github.com/graphile/crystal/commit/63828eb9f1db0fbebd4ce368b85d86e7ae2d55f1)
14
+ Thanks [@benjie](https://github.com/benjie)! - `graphile` CLI gains
15
+ `graphile config print [scope]` sub-selector, and neater formatting.
16
+ - Updated dependencies
17
+ [[`9eb3829`](https://github.com/graphile/crystal/commit/9eb3829ea337041e4585e0cfeb63b44e87d7d14f),
18
+ [`a3722d6`](https://github.com/graphile/crystal/commit/a3722d613bc6fb9e32f167aae9a31eaa422ceef1),
19
+ [`ebe1d22`](https://github.com/graphile/crystal/commit/ebe1d22e45156d9ec2274f291bbb824405e02049),
20
+ [`0f913ee`](https://github.com/graphile/crystal/commit/0f913ee4d91e9383aceda001640e171aa8a3069a),
21
+ [`7b20942`](https://github.com/graphile/crystal/commit/7b2094266477eab8b94c77e3009199d3897cb097),
22
+ [`1d5d63e`](https://github.com/graphile/crystal/commit/1d5d63e376999b1b4d911e75cbff77a07d4e17b9),
23
+ [`7ca663e`](https://github.com/graphile/crystal/commit/7ca663e055a20f8d5e3f1c424896f1d120c4443a)]:
24
+ - graphile-build@5.0.0-rc.4
25
+ - graphile-config@1.0.0-rc.4
26
+ - postgraphile@5.0.0-rc.5
27
+
3
28
  ## 5.0.0-rc.3
4
29
 
5
30
  ### Patch Changes
package/dist/cli-run.js CHANGED
@@ -2,6 +2,6 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const cli_1 = require("graphile-config/cli");
5
- const cli_js_1 = require("./cli.js");
6
- (0, cli_1.runCli)(cli_js_1.options, cli_js_1.run);
5
+ const cli_ts_1 = require("./cli.js");
6
+ (0, cli_1.runCli)(cli_ts_1.options, cli_ts_1.run);
7
7
  //# sourceMappingURL=cli-run.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.options = options;
4
4
  exports.run = run;
5
- const main_js_1 = require("./main.js");
5
+ const main_ts_1 = require("./main.js");
6
6
  function options(yargs) {
7
7
  return yargs
8
8
  .positional("entityType", { type: "string" })
@@ -17,7 +17,7 @@ function options(yargs) {
17
17
  });
18
18
  }
19
19
  async function run(args) {
20
- const text = await (0, main_js_1.main)({
20
+ const text = await (0, main_ts_1.main)({
21
21
  config: args.config,
22
22
  entityType: args.entityType,
23
23
  entityIdentifier: args.entityIdentifier,
@@ -8,7 +8,7 @@ const printCmd = tslib_1.__importStar(require("./print/cli.js"));
8
8
  function options(yargs) {
9
9
  return yargs
10
10
  .command(optionsCmd.command, optionsCmd.description, optionsCmd.options, optionsCmd.run)
11
- .command("print", "Prints your resolved configuration", printCmd.options, printCmd.run)
11
+ .command(printCmd.command, printCmd.description, printCmd.options, printCmd.run)
12
12
  .demandCommand();
13
13
  }
14
14
  function run(_args) {
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/config/cli.ts"],"names":[],"mappings":";;AAKA,0BAeC;AAED,kBAGC;;AAvBD,qEAA+C;AAC/C,iEAA2C;AAE3C,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CACN,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,GAAG,CACf;SACA,OAAO,CACN,OAAO,EACP,oCAAoC,EACpC,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,GAAG,CACb;SACA,aAAa,EAAE,CAAC;AACrB,CAAC;AAED,SAAgB,GAAG,CAAC,KAAsC;IACxD,oDAAoD;IACpD,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AACzC,CAAC"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/config/cli.ts"],"names":[],"mappings":";;AAKA,0BAeC;AAED,kBAGC;;AAvBD,qEAA+C;AAC/C,iEAA2C;AAE3C,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CACN,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,GAAG,CACf;SACA,OAAO,CACN,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,WAAW,EACpB,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,GAAG,CACb;SACA,aAAa,EAAE,CAAC;AACrB,CAAC;AAED,SAAgB,GAAG,CAAC,KAAsC;IACxD,oDAAoD;IACpD,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AACzC,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.description = exports.command = void 0;
4
4
  exports.options = options;
5
5
  exports.run = run;
6
- const main_js_1 = require("./main.js");
6
+ const main_ts_1 = require("./main.js");
7
7
  exports.command = "options [scope]";
8
8
  exports.description = "Output the options your config may contain";
9
9
  function options(yargs) {
@@ -24,7 +24,7 @@ function options(yargs) {
24
24
  });
25
25
  }
26
26
  function run(args) {
27
- const text = (0, main_js_1.main)({ filename: args.config, scope: args.scope });
27
+ const text = (0, main_ts_1.main)({ filename: args.config, scope: args.scope });
28
28
  console.log(text);
29
29
  }
30
30
  //# sourceMappingURL=cli.js.map
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.main = main;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
- const typescriptVfs_js_1 = require("../../../utils/typescriptVfs.js");
6
+ const typescriptVfs_ts_1 = require("../../../utils/typescriptVfs.js");
7
7
  const FORBIDDEN = [
8
8
  // PostGraphile V4 workarounds
9
9
  "appendPlugins",
@@ -12,7 +12,7 @@ const FORBIDDEN = [
12
12
  ];
13
13
  function main(options) {
14
14
  const { filename, scope } = options;
15
- const { getCompletions, getQuickInfo } = (0, typescriptVfs_js_1.configVfs)({
15
+ const { getCompletions, getQuickInfo } = (0, typescriptVfs_ts_1.configVfs)({
16
16
  filename,
17
17
  initialCode: `const preset: GraphileConfig.Preset`,
18
18
  });
@@ -115,17 +115,17 @@ modules).\
115
115
  "pgServices",
116
116
  ].includes(key);
117
117
  if (isArray) {
118
- const info = getQuickInfo(` = [];\npreset${(0, typescriptVfs_js_1.accessKey)(key)}`);
119
- entries.push(`${chalk_1.default.cyanBright(key)}?: ${(0, typescriptVfs_js_1.prettyDisplayParts)(info?.displayParts, ":")
118
+ const info = getQuickInfo(` = [];\npreset${(0, typescriptVfs_ts_1.accessKey)(key)}`);
119
+ entries.push(`${chalk_1.default.cyanBright(key)}?: ${(0, typescriptVfs_ts_1.prettyDisplayParts)(info?.displayParts, ":")
120
120
  .replace(/\| undefined$/, "")
121
121
  .trim()}`);
122
122
  }
123
123
  else {
124
124
  const SUFFIX1 = ` = {`;
125
125
  const SUFFIX2 = `};\n`;
126
- const withProperty = ` = Object.create(null);\npreset${(0, typescriptVfs_js_1.accessKey)(key)}${SUFFIX1}${SUFFIX2}`;
126
+ const withProperty = ` = Object.create(null);\npreset${(0, typescriptVfs_ts_1.accessKey)(key)}${SUFFIX1}${SUFFIX2}`;
127
127
  const info = getQuickInfo(withProperty, SUFFIX1.length + SUFFIX2.length);
128
- entries.push(`${chalk_1.default.cyanBright(key)}?: ${(0, typescriptVfs_js_1.prettyDisplayParts)(info?.displayParts, ":")};`);
128
+ entries.push(`${chalk_1.default.cyanBright(key)}?: ${(0, typescriptVfs_ts_1.prettyDisplayParts)(info?.displayParts, ":")};`);
129
129
  const completions = getCompletions(withProperty, SUFFIX2.length);
130
130
  const relevant = completions?.entries
131
131
  .filter((e) => e.kind === "property")
@@ -134,7 +134,7 @@ modules).\
134
134
  if (!scope) {
135
135
  outLater(chalk_1.default.whiteBright.bold(`## ${chalk_1.default.cyanBright.bold(key)}`));
136
136
  outLater();
137
- outLater((0, typescriptVfs_js_1.prettyDocumentation)(info?.documentation));
137
+ outLater((0, typescriptVfs_ts_1.prettyDocumentation)(info?.documentation));
138
138
  }
139
139
  outLater();
140
140
  if (relevant) {
@@ -145,7 +145,7 @@ modules).\
145
145
  let advanced = [];
146
146
  let deprecated = [];
147
147
  for (const subkey of relevant) {
148
- const withSubpropertyAccess = withProperty + `preset${(0, typescriptVfs_js_1.accessKey)(key)}!${(0, typescriptVfs_js_1.accessKey)(subkey)}`;
148
+ const withSubpropertyAccess = withProperty + `preset${(0, typescriptVfs_ts_1.accessKey)(key)}!${(0, typescriptVfs_ts_1.accessKey)(subkey)}`;
149
149
  const info = getQuickInfo(withSubpropertyAccess);
150
150
  const tags = getTags(info);
151
151
  const advancedTag = tags.get("advanced");
@@ -178,7 +178,7 @@ modules).\
178
178
  ? deprecatedSubentries
179
179
  : isAdvanced
180
180
  ? advancedSubentries
181
- : subentries).push(`${chalk_1.default.greenBright.bold(subkey)}?: ${(0, typescriptVfs_js_1.prettyDisplayParts)(info?.displayParts, ":")
181
+ : subentries).push(`${chalk_1.default.greenBright.bold(subkey)}?: ${(0, typescriptVfs_ts_1.prettyDisplayParts)(info?.displayParts, ":")
182
182
  .replace(/\| undefined$/, "")
183
183
  .trim()};`);
184
184
  /*
@@ -206,7 +206,7 @@ modules).\
206
206
  outLaterStill(":::warning Deprecated");
207
207
  outLaterStill();
208
208
  if (deprecatedTag.text) {
209
- outLaterStill((0, typescriptVfs_js_1.prettyDisplayParts)(deprecatedTag.text));
209
+ outLaterStill((0, typescriptVfs_ts_1.prettyDisplayParts)(deprecatedTag.text));
210
210
  outLaterStill();
211
211
  }
212
212
  outLaterStill(":::");
@@ -215,7 +215,7 @@ modules).\
215
215
  if (experimentalTag) {
216
216
  outLaterStill(":::danger Experimental");
217
217
  outLaterStill();
218
- outLaterStill((0, typescriptVfs_js_1.prettyDisplayParts)(experimentalTag.text) ??
218
+ outLaterStill((0, typescriptVfs_ts_1.prettyDisplayParts)(experimentalTag.text) ??
219
219
  "This feature may change or be removed in a patch release.");
220
220
  outLaterStill();
221
221
  outLaterStill(":::");
@@ -225,22 +225,22 @@ modules).\
225
225
  outLaterStill(":::warning Advanced");
226
226
  outLaterStill();
227
227
  if (advancedTag?.text) {
228
- outLaterStill((0, typescriptVfs_js_1.prettyDisplayParts)(advancedTag.text));
228
+ outLaterStill((0, typescriptVfs_ts_1.prettyDisplayParts)(advancedTag.text));
229
229
  outLaterStill();
230
230
  }
231
231
  outLaterStill(":::");
232
232
  outLaterStill();
233
233
  }
234
- const displayParts = (0, typescriptVfs_js_1.prettyDisplayParts)(info?.displayParts, ":");
234
+ const displayParts = (0, typescriptVfs_ts_1.prettyDisplayParts)(info?.displayParts, ":");
235
235
  const hasDefaultValue = defaultValueTag?.text;
236
236
  outLaterStill(`${chalk_1.default.greenBright.bold("Type")}: \`${displayParts
237
237
  ? chalk_1.default.whiteBright(displayParts)
238
238
  : chalk_1.default.gray("unknown")}\`${hasDefaultValue ? " " : ""}`);
239
239
  if (hasDefaultValue) {
240
- outLaterStill(`${chalk_1.default.greenBright.bold("Default value")}: ${(0, typescriptVfs_js_1.prettyDisplayParts)(defaultValueTag.text)}`);
240
+ outLaterStill(`${chalk_1.default.greenBright.bold("Default value")}: ${(0, typescriptVfs_ts_1.prettyDisplayParts)(defaultValueTag.text)}`);
241
241
  }
242
242
  outLaterStill();
243
- outLaterStill((0, typescriptVfs_js_1.prettyDocumentation)(info?.documentation));
243
+ outLaterStill((0, typescriptVfs_ts_1.prettyDocumentation)(info?.documentation));
244
244
  outLaterStill();
245
245
  }
246
246
  if (subentries.length ||
@@ -1,10 +1,14 @@
1
1
  import type { ArgsFromOptions, Argv } from "graphile-config/cli";
2
+ export declare const command = "print [section]";
3
+ export declare const description = "Prints your resolved configuration";
2
4
  export declare function options(yargs: Argv): Argv<{
3
5
  config: string | undefined;
4
6
  } & {
5
7
  full: boolean | undefined;
6
8
  } & {
7
9
  "debug-order": boolean | undefined;
10
+ } & {
11
+ section: string | undefined;
8
12
  }>;
9
13
  type Opts = ArgsFromOptions<typeof options>;
10
14
  export declare function run(args: Opts): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/print/cli.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAYjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;;;GAqBlC;AAED,KAAK,IAAI,GAAG,eAAe,CAAC,OAAO,OAAO,CAAC,CAAC;AAE5C,wBAAsB,GAAG,CAAC,IAAI,EAAE,IAAI,iBAwCnC"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/print/cli.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAYjE,eAAO,MAAM,OAAO,oBAAoB,CAAC;AACzC,eAAO,MAAM,WAAW,uCAAuC,CAAC;AAEhE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;;;;;GA2BlC;AAED,KAAK,IAAI,GAAG,eAAe,CAAC,OAAO,OAAO,CAAC,CAAC;AAE5C,wBAAsB,GAAG,CAAC,IAAI,EAAE,IAAI,iBAyFnC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = exports.command = void 0;
3
4
  exports.options = options;
4
5
  exports.run = run;
5
6
  const tslib_1 = require("tslib");
@@ -8,10 +9,12 @@ const graphile_config_1 = require("graphile-config");
8
9
  const cli_1 = require("graphile-config/cli");
9
10
  const load_1 = require("graphile-config/load");
10
11
  const util_1 = require("util");
11
- const stripAnsi_js_1 = require("../../../stripAnsi.js");
12
+ const stripAnsi_ts_1 = require("../../../stripAnsi.js");
12
13
  const inspectOpts = {
13
14
  colors: true,
14
15
  };
16
+ exports.command = "print [section]";
17
+ exports.description = "Prints your resolved configuration";
15
18
  function options(yargs) {
16
19
  return yargs
17
20
  .example("$0 -C graphile.config.ts", "Print your graphile.config.ts")
@@ -32,25 +35,63 @@ function options(yargs) {
32
35
  type: "boolean",
33
36
  description: "Include details to help debug the ordering of plugins",
34
37
  normalize: true,
38
+ })
39
+ .positional("section", {
40
+ description: "Only print the given section (plugins|lib|grafserv|schema|gather|grafast|ruru|inflection|pgServices|etc)",
41
+ demandOption: false,
42
+ type: "string",
35
43
  });
36
44
  }
37
45
  async function run(args) {
46
+ const printed = [
47
+ // These are already handled in a resolved preset
48
+ "extends",
49
+ ];
50
+ const initialPrintedLength = printed.length;
38
51
  const opts = {
39
52
  ...args,
40
53
  // debug-order implies full currently
41
54
  full: args.full || args.debugOrder,
42
55
  };
56
+ const section = args.section;
43
57
  const userPreset = await (0, load_1.loadConfig)(opts.config);
44
58
  if (!userPreset) {
45
59
  console.error("Failed to load config, please check the file exists");
46
60
  process.exit(1);
47
61
  }
48
62
  const resolvedPreset = (0, graphile_config_1.resolvePreset)(userPreset);
49
- console.log(printPlugins(opts, resolvedPreset.plugins));
63
+ if (!section || section === "plugins") {
64
+ printed.push("plugins");
65
+ console.log(printPlugins(opts, resolvedPreset.plugins));
66
+ }
67
+ if (!section || section === "disablePlugins") {
68
+ printed.push("disablePlugins");
69
+ if (resolvedPreset.disablePlugins.length > 0) {
70
+ console.log();
71
+ console.log(chalk_1.default.whiteBright.bold("disablePlugins") +
72
+ `:\n- ${resolvedPreset.disablePlugins.join("\n- ")}`);
73
+ }
74
+ }
75
+ if (!section || section === "lib") {
76
+ if (!args.full) {
77
+ printed.push("lib");
78
+ if (Object.keys(resolvedPreset.lib).length > 0) {
79
+ console.log();
80
+ console.log(chalk_1.default.whiteBright.bold("lib") +
81
+ `:\n- ${Object.entries(resolvedPreset.lib)
82
+ .map(([key, value]) => `${key}: ${(typeof value === "object" && value != null) || typeof value === "function" ? `${typeof value} (${Object.keys(value).length} keys)` : value}`)
83
+ .join("\n- ")}`);
84
+ }
85
+ }
86
+ }
50
87
  for (const key of Object.keys(resolvedPreset)) {
51
- if (key === "plugins" || key === "extends" || key === "disablePlugins") {
88
+ if (printed.includes(key)) {
52
89
  continue;
53
90
  }
91
+ if (section && section !== key) {
92
+ continue;
93
+ }
94
+ printed.push(key);
54
95
  console.log();
55
96
  console.log(chalk_1.default.whiteBright.bold(key) + ":");
56
97
  const value = resolvedPreset[key];
@@ -73,6 +114,10 @@ async function run(args) {
73
114
  console.log((0, util_1.inspect)(value, inspectOpts));
74
115
  }
75
116
  }
117
+ if (printed.length === initialPrintedLength) {
118
+ console.log("Nothing printed! Try `graphile config print` without further flags");
119
+ process.exitCode = 4; //404
120
+ }
76
121
  }
77
122
  function printAPB(opts, strs, type, plugins, index) {
78
123
  if (!strs || strs.length === 0) {
@@ -131,13 +176,13 @@ ${indent}${chalk_1.default.dim(plugin.description.replace(/\n/g, `\n${indent}`))
131
176
  `;
132
177
  }
133
178
  else {
134
- const l = (0, stripAnsi_js_1.stripAnsi)(left).length;
179
+ const l = (0, stripAnsi_ts_1.stripAnsi)(left).length;
135
180
  const MAX = 50;
136
181
  const SCREEN_WIDTH = (0, cli_1.getTerminalWidth)();
137
182
  const padL = Math.max(MAX, l) - l;
138
183
  const pad = " ".repeat(Math.max(0, padL));
139
184
  return `${left}${plugin.description
140
- ? `${pad}${chalk_1.default.dim(oneLine(plugin.description, SCREEN_WIDTH - pad.length - (0, stripAnsi_js_1.stripAnsi)(left).length))}`
185
+ ? `${pad}${chalk_1.default.dim(oneLine(plugin.description, SCREEN_WIDTH - pad.length - (0, stripAnsi_ts_1.stripAnsi)(left).length))}`
141
186
  : ""}`;
142
187
  }
143
188
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/commands/config/print/cli.ts"],"names":[],"mappings":";;AAcA,0BAqBC;AAID,kBAwCC;;AA/ED,0DAA0B;AAC1B,qDAAgD;AAEhD,6CAAuD;AACvD,+CAAkD;AAElD,+BAA+B;AAE/B,wDAAkD;AAElD,MAAM,WAAW,GAAmB;IAClC,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CAAC,0BAA0B,EAAE,+BAA+B,CAAC;SACpE,MAAM,CAAC,QAAQ,EAAE;QAChB,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6BAA6B;QAC1C,SAAS,EAAE,IAAI;KAChB,CAAC;SACD,MAAM,CAAC,MAAM,EAAE;QACd,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,sCAAsC;QACnD,SAAS,EAAE,IAAI;KAChB,CAAC;SACD,MAAM,CAAC,aAAa,EAAE;QACrB,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,uDAAuD;QACpE,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;AACP,CAAC;AAIM,KAAK,UAAU,GAAG,CAAC,IAAU;IAClC,MAAM,IAAI,GAAS;QACjB,GAAG,IAAI;QACP,qCAAqC;QACrC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU;KACnC,CAAC;IACF,MAAM,UAAU,GAAG,MAAM,IAAA,iBAAU,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,CAA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,CAAC,WAAW,CAAC,CAAC;IACvC,OAAO,IAAA,cAAO,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,MAAM,EAAE,CAAC,CAAC;AACnE,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.options = options;
4
4
  exports.run = run;
5
- const main_js_1 = require("./main.js");
5
+ const main_ts_1 = require("./main.js");
6
6
  function options(yargs) {
7
7
  return yargs
8
8
  .example("$0 -C graphile.config.ts", "Read and parse graphile.config.ts, and determine the inflectors available for plugins therein")
@@ -19,7 +19,7 @@ function options(yargs) {
19
19
  });
20
20
  }
21
21
  async function run(args) {
22
- const text = await (0, main_js_1.main)({ filename: args.config, quiet: args.quiet });
22
+ const text = await (0, main_ts_1.main)({ filename: args.config, quiet: args.quiet });
23
23
  console.log(text);
24
24
  }
25
25
  //# sourceMappingURL=cli.js.map
@@ -1,4 +1,4 @@
1
- import type { ResolvedDefinition } from "../../../utils/typescriptVfs.js";
1
+ import type { ResolvedDefinition } from "../../../utils/typescriptVfs.ts";
2
2
  export declare function main(options: {
3
3
  filename?: string;
4
4
  quiet?: boolean;
@@ -9,7 +9,7 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));
9
9
  const graphile_build_1 = require("graphile-build");
10
10
  const graphile_config_1 = require("graphile-config");
11
11
  const load_1 = require("graphile-config/load");
12
- const typescriptVfs_js_1 = require("../../../utils/typescriptVfs.js");
12
+ const typescriptVfs_ts_1 = require("../../../utils/typescriptVfs.js");
13
13
  async function main(options) {
14
14
  const { filename, quiet } = options;
15
15
  // Create inflection so we can determine where the inflectors came from
@@ -17,7 +17,7 @@ async function main(options) {
17
17
  const resolvedPreset = (0, graphile_config_1.resolvePreset)(preset ?? {});
18
18
  const trace = new Map();
19
19
  const inflection = (0, graphile_build_1.buildInflection)(resolvedPreset, trace);
20
- const { getCompletions, getDefinitions, getQuickInfo } = (0, typescriptVfs_js_1.configVfs)({
20
+ const { getCompletions, getDefinitions, getQuickInfo } = (0, typescriptVfs_ts_1.configVfs)({
21
21
  filename,
22
22
  initialCode: `\
23
23
  const inflection: GraphileBuild.Inflection = null as any;
@@ -63,14 +63,14 @@ on the plugins and presets you use. You should regenerate it from time to time
63
63
  const INDENT = 2;
64
64
  async function processEntry(entry) {
65
65
  const key = entry.name;
66
- const withProperty = (0, typescriptVfs_js_1.accessKey)(key);
66
+ const withProperty = (0, typescriptVfs_ts_1.accessKey)(key);
67
67
  const info = getQuickInfo(withProperty);
68
68
  const definitions = getDefinitions(withProperty);
69
69
  //entries.push(
70
70
  // `${chalk.cyanBright(key)}${prettyQuickInfoDisplayParts(info)};`,
71
71
  //);
72
- const doc = (0, typescriptVfs_js_1.tightDocumentation)(info, 80 - INDENT - 7);
73
- entries.push(`${quiet || !doc ? "" : chalk_1.default.gray(`/** ${doc} */\n`)}${chalk_1.default.cyanBright(key)}${(0, typescriptVfs_js_1.tightDisplayParts)(info, 80 - INDENT - key.length)}`);
72
+ const doc = (0, typescriptVfs_ts_1.tightDocumentation)(info, 80 - INDENT - 7);
73
+ entries.push(`${quiet || !doc ? "" : chalk_1.default.gray(`/** ${doc} */\n`)}${chalk_1.default.cyanBright(key)}${(0, typescriptVfs_ts_1.tightDisplayParts)(info, 80 - INDENT - key.length)}`);
74
74
  const defs = await Promise.all(definitions.map(formatPathWithPackage));
75
75
  return { key, entry, info, defs };
76
76
  }
@@ -122,10 +122,10 @@ on the plugins and presets you use. You should regenerate it from time to time
122
122
  }
123
123
  }
124
124
  outLater();
125
- outLater((0, typescriptVfs_js_1.prettyDocumentation)(info?.documentation));
125
+ outLater((0, typescriptVfs_ts_1.prettyDocumentation)(info?.documentation));
126
126
  outLater();
127
127
  outLater("```ts");
128
- outLater(key + (0, typescriptVfs_js_1.prettyQuickInfoDisplayParts)(info));
128
+ outLater(key + (0, typescriptVfs_ts_1.prettyQuickInfoDisplayParts)(info));
129
129
  outLater("```");
130
130
  }
131
131
  else {
@@ -36,7 +36,7 @@ function configVfs(options) {
36
36
  const BASE_CONTENT = `\
37
37
  /// <reference types="node" />
38
38
  import "graphile-config";
39
- import {} from './${filenameInJs}';
39
+ import {} from './${filenameInJs}.js';
40
40
  type Digest<T> = { [TKey in keyof T]: T[TKey] } & {};
41
41
  ${initialCode}`;
42
42
  fsMap.set(FAKE_FILENAME, BASE_CONTENT);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile",
3
- "version": "5.0.0-rc.3",
3
+ "version": "5.0.0-rc.4",
4
4
  "description": "Swiss army knife for dealing with all things Graphile",
5
5
  "main": "dist/index.js",
6
6
  "bin": "dist/cli-run.js",
@@ -33,15 +33,15 @@
33
33
  "dependencies": {
34
34
  "@typescript/vfs": "^1.6.2",
35
35
  "chalk": "^4.1.2",
36
- "graphile-config": "^1.0.0-rc.3",
36
+ "graphile-config": "^1.0.0-rc.4",
37
37
  "source-map-js": "^1.2.1",
38
38
  "tslib": "^2.8.1",
39
39
  "typescript": "^5.9.3"
40
40
  },
41
41
  "peerDependencies": {
42
- "graphile-build": "^5.0.0-rc.3",
43
- "graphile-config": "^1.0.0-rc.3",
44
- "postgraphile": "^5.0.0-rc.4"
42
+ "graphile-build": "^5.0.0-rc.4",
43
+ "graphile-config": "^1.0.0-rc.4",
44
+ "postgraphile": "^5.0.0-rc.5"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "graphile-build": {