@powerlines/plugin-graphql 0.1.362 → 0.1.364
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/package.json +4 -4
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/_virtual/_rolldown/runtime.mjs +0 -3
- package/dist/index.cjs +0 -67
- package/dist/index.d.cts +0 -19
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -19
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -64
- package/dist/index.mjs.map +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -2
- package/dist/types/index.d.mts +0 -2
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +0 -40
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -40
- package/dist/types/plugin.d.mts.map +0 -1
- package/dist/types/plugin.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-graphql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.364",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from GraphQL schemas.",
|
|
6
6
|
"keywords": ["graphql", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
"@stryke/types": "^0.11.1",
|
|
98
98
|
"defu": "^6.1.4",
|
|
99
99
|
"jiti": "^2.6.1",
|
|
100
|
-
"powerlines": "^0.42.
|
|
100
|
+
"powerlines": "^0.42.4"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@graphql-codegen/plugin-helpers": "^6.2.0",
|
|
104
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
104
|
+
"@powerlines/plugin-plugin": "^0.12.314",
|
|
105
105
|
"@types/node": "^25.5.0"
|
|
106
106
|
},
|
|
107
107
|
"publishConfig": { "access": "public" },
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "c3243c1ec0fbacb4afd4bd3db20432f443334076"
|
|
109
109
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|
package/dist/index.cjs
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _graphql_codegen_cli = require("@graphql-codegen/cli");
|
|
4
|
-
let _storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
5
|
-
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
6
|
-
let _stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
7
|
-
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
8
|
-
let _stryke_path_replace = require("@stryke/path/replace");
|
|
9
|
-
let defu = require("defu");
|
|
10
|
-
defu = require_runtime.__toESM(defu);
|
|
11
|
-
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
12
|
-
|
|
13
|
-
//#region src/index.ts
|
|
14
|
-
/**
|
|
15
|
-
* A Powerlines plugin to integrate GraphQL for code generation.
|
|
16
|
-
*
|
|
17
|
-
* @param options - The plugin options.
|
|
18
|
-
* @returns A Powerlines plugin instance.
|
|
19
|
-
*/
|
|
20
|
-
const plugin = (options = {}) => {
|
|
21
|
-
return {
|
|
22
|
-
name: "graphql",
|
|
23
|
-
config() {
|
|
24
|
-
let configFile = options.configFile;
|
|
25
|
-
if (!configFile) {
|
|
26
|
-
configFile = (0, powerlines_plugin_utils.getConfigPath)(this, "codegen");
|
|
27
|
-
if (!configFile) {
|
|
28
|
-
configFile = (0, powerlines_plugin_utils.getConfigPath)(this, "graphql-codegen");
|
|
29
|
-
if (!configFile) throw new Error(`No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's \`configFile\` options.`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return { graphql: (0, defu.default)(options, {
|
|
33
|
-
configFile,
|
|
34
|
-
silent: this.config.logLevel === null,
|
|
35
|
-
verbose: this.config.logLevel === _storm_software_config_tools_types.LogLevelLabel.DEBUG || this.config.logLevel === _storm_software_config_tools_types.LogLevelLabel.TRACE,
|
|
36
|
-
debug: this.config.mode === "development",
|
|
37
|
-
outputPath: (0, _stryke_path_join_paths.joinPaths)("{builtinPath}", "graphql")
|
|
38
|
-
}) };
|
|
39
|
-
},
|
|
40
|
-
async configResolved() {
|
|
41
|
-
this.dependencies.graphql = "latest";
|
|
42
|
-
this.config.graphql.outputPath = (0, powerlines_plugin_utils.replacePathTokens)(this, this.config.graphql.outputPath);
|
|
43
|
-
this.graphql ??= {};
|
|
44
|
-
this.graphql.codegen = await (0, _graphql_codegen_cli.loadContext)(this.config.graphql.configFile);
|
|
45
|
-
(0, _graphql_codegen_cli.updateContextWithCliFlags)(this.graphql.codegen, {
|
|
46
|
-
require: [],
|
|
47
|
-
overwrite: true,
|
|
48
|
-
project: this.config.root,
|
|
49
|
-
...this.config.graphql,
|
|
50
|
-
config: this.config.graphql.configFile,
|
|
51
|
-
watch: false
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
async prepare() {
|
|
55
|
-
const result = await (0, _graphql_codegen_cli.generate)({
|
|
56
|
-
...this.graphql.codegen,
|
|
57
|
-
cwd: (0, _stryke_path_join_paths.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.root)
|
|
58
|
-
}, false);
|
|
59
|
-
if ((0, _stryke_path_is_parent_path.isParentPath)(this.config.graphql.outputPath, this.builtinsPath)) await Promise.all(result.map(async (output) => this.emitBuiltin(output.content, (0, _stryke_path_file_path_fns.findFileName)((0, _stryke_path_join_paths.joinPaths)((0, _stryke_path_replace.replacePath)(this.config.graphql.outputPath, this.builtinsPath), output.filename), { withExtension: false }))));
|
|
60
|
-
else await Promise.all(result.map(async (output) => this.fs.write((0, _stryke_path_join_paths.joinPaths)(this.config.graphql.outputPath, output.filename), output.content)));
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
//#endregion
|
|
66
|
-
exports.default = plugin;
|
|
67
|
-
exports.plugin = plugin;
|
package/dist/index.d.cts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
-
import { Plugin } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/index.d.ts
|
|
5
|
-
declare module "powerlines" {
|
|
6
|
-
interface Config {
|
|
7
|
-
graphql?: GraphQLPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A Powerlines plugin to integrate GraphQL for code generation.
|
|
12
|
-
*
|
|
13
|
-
* @param options - The plugin options.
|
|
14
|
-
* @returns A Powerlines plugin instance.
|
|
15
|
-
*/
|
|
16
|
-
declare const plugin: <TContext extends GraphQLPluginContext = GraphQLPluginContext>(options?: GraphQLPluginOptions) => Plugin<TContext>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig, plugin as default, plugin };
|
|
19
|
-
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAwCY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;;;;cAUD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
-
import { Plugin } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/index.d.ts
|
|
5
|
-
declare module "powerlines" {
|
|
6
|
-
interface Config {
|
|
7
|
-
graphql?: GraphQLPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A Powerlines plugin to integrate GraphQL for code generation.
|
|
12
|
-
*
|
|
13
|
-
* @param options - The plugin options.
|
|
14
|
-
* @returns A Powerlines plugin instance.
|
|
15
|
-
*/
|
|
16
|
-
declare const plugin: <TContext extends GraphQLPluginContext = GraphQLPluginContext>(options?: GraphQLPluginOptions) => Plugin<TContext>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig, plugin as default, plugin };
|
|
19
|
-
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAwCY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;;;;cAUD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { generate, loadContext, updateContextWithCliFlags } from "@graphql-codegen/cli";
|
|
2
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
3
|
-
import { findFileName } from "@stryke/path/file-path-fns";
|
|
4
|
-
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
5
|
-
import { joinPaths } from "@stryke/path/join-paths";
|
|
6
|
-
import { replacePath } from "@stryke/path/replace";
|
|
7
|
-
import defu from "defu";
|
|
8
|
-
import { getConfigPath, replacePathTokens } from "powerlines/plugin-utils";
|
|
9
|
-
|
|
10
|
-
//#region src/index.ts
|
|
11
|
-
/**
|
|
12
|
-
* A Powerlines plugin to integrate GraphQL for code generation.
|
|
13
|
-
*
|
|
14
|
-
* @param options - The plugin options.
|
|
15
|
-
* @returns A Powerlines plugin instance.
|
|
16
|
-
*/
|
|
17
|
-
const plugin = (options = {}) => {
|
|
18
|
-
return {
|
|
19
|
-
name: "graphql",
|
|
20
|
-
config() {
|
|
21
|
-
let configFile = options.configFile;
|
|
22
|
-
if (!configFile) {
|
|
23
|
-
configFile = getConfigPath(this, "codegen");
|
|
24
|
-
if (!configFile) {
|
|
25
|
-
configFile = getConfigPath(this, "graphql-codegen");
|
|
26
|
-
if (!configFile) throw new Error(`No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's \`configFile\` options.`);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return { graphql: defu(options, {
|
|
30
|
-
configFile,
|
|
31
|
-
silent: this.config.logLevel === null,
|
|
32
|
-
verbose: this.config.logLevel === LogLevelLabel.DEBUG || this.config.logLevel === LogLevelLabel.TRACE,
|
|
33
|
-
debug: this.config.mode === "development",
|
|
34
|
-
outputPath: joinPaths("{builtinPath}", "graphql")
|
|
35
|
-
}) };
|
|
36
|
-
},
|
|
37
|
-
async configResolved() {
|
|
38
|
-
this.dependencies.graphql = "latest";
|
|
39
|
-
this.config.graphql.outputPath = replacePathTokens(this, this.config.graphql.outputPath);
|
|
40
|
-
this.graphql ??= {};
|
|
41
|
-
this.graphql.codegen = await loadContext(this.config.graphql.configFile);
|
|
42
|
-
updateContextWithCliFlags(this.graphql.codegen, {
|
|
43
|
-
require: [],
|
|
44
|
-
overwrite: true,
|
|
45
|
-
project: this.config.root,
|
|
46
|
-
...this.config.graphql,
|
|
47
|
-
config: this.config.graphql.configFile,
|
|
48
|
-
watch: false
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
async prepare() {
|
|
52
|
-
const result = await generate({
|
|
53
|
-
...this.graphql.codegen,
|
|
54
|
-
cwd: joinPaths(this.workspaceConfig.workspaceRoot, this.config.root)
|
|
55
|
-
}, false);
|
|
56
|
-
if (isParentPath(this.config.graphql.outputPath, this.builtinsPath)) await Promise.all(result.map(async (output) => this.emitBuiltin(output.content, findFileName(joinPaths(replacePath(this.config.graphql.outputPath, this.builtinsPath), output.filename), { withExtension: false }))));
|
|
57
|
-
else await Promise.all(result.map(async (output) => this.fs.write(joinPaths(this.config.graphql.outputPath, output.filename), output.content)));
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
//#endregion
|
|
63
|
-
export { plugin as default, plugin };
|
|
64
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n generate,\n loadContext,\n updateContextWithCliFlags\n} from \"@graphql-codegen/cli\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { findFileName } from \"@stryke/path/file-path-fns\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { getConfigPath, replacePathTokens } from \"powerlines/plugin-utils\";\nimport {\n GraphQLPluginContext,\n GraphQLPluginOptions,\n GraphQLPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n graphql?: GraphQLPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate GraphQL for code generation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends GraphQLPluginContext = GraphQLPluginContext\n>(\n options: GraphQLPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"graphql\",\n config() {\n let configFile = options.configFile;\n if (!configFile) {\n configFile = getConfigPath(this, \"codegen\");\n if (!configFile) {\n configFile = getConfigPath(this, \"graphql-codegen\");\n if (!configFile) {\n throw new Error(\n `No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's \\`configFile\\` options.`\n );\n }\n }\n }\n\n return {\n graphql: defu(options, {\n configFile,\n silent: this.config.logLevel === null,\n verbose:\n this.config.logLevel === LogLevelLabel.DEBUG ||\n this.config.logLevel === LogLevelLabel.TRACE,\n debug: this.config.mode === \"development\",\n outputPath: joinPaths(\"{builtinPath}\", \"graphql\")\n })\n } as Partial<GraphQLPluginUserConfig>;\n },\n async configResolved() {\n this.dependencies.graphql = \"latest\";\n\n this.config.graphql.outputPath = replacePathTokens(\n this,\n this.config.graphql.outputPath\n );\n\n this.graphql ??= {} as GraphQLPluginContext[\"graphql\"];\n\n this.graphql.codegen = await loadContext(this.config.graphql.configFile);\n updateContextWithCliFlags(this.graphql.codegen, {\n require: [],\n overwrite: true,\n project: this.config.root,\n ...this.config.graphql,\n config: this.config.graphql.configFile,\n watch: false\n });\n },\n async prepare() {\n const result = await generate(\n {\n ...this.graphql.codegen,\n cwd: joinPaths(this.workspaceConfig.workspaceRoot, this.config.root)\n } as Parameters<typeof generate>[0],\n false\n );\n\n if (isParentPath(this.config.graphql.outputPath, this.builtinsPath)) {\n await Promise.all(\n result.map(async output =>\n this.emitBuiltin(\n output.content,\n findFileName(\n joinPaths(\n replacePath(\n this.config.graphql.outputPath,\n this.builtinsPath\n ),\n output.filename\n ),\n { withExtension: false }\n )\n )\n )\n );\n } else {\n await Promise.all(\n result.map(async output =>\n this.fs.write(\n joinPaths(this.config.graphql.outputPath, output.filename),\n output.content\n )\n )\n );\n }\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;AAmDA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;GACP,IAAI,aAAa,QAAQ;AACzB,OAAI,CAAC,YAAY;AACf,iBAAa,cAAc,MAAM,UAAU;AAC3C,QAAI,CAAC,YAAY;AACf,kBAAa,cAAc,MAAM,kBAAkB;AACnD,SAAI,CAAC,WACH,OAAM,IAAI,MACR,qIACD;;;AAKP,UAAO,EACL,SAAS,KAAK,SAAS;IACrB;IACA,QAAQ,KAAK,OAAO,aAAa;IACjC,SACE,KAAK,OAAO,aAAa,cAAc,SACvC,KAAK,OAAO,aAAa,cAAc;IACzC,OAAO,KAAK,OAAO,SAAS;IAC5B,YAAY,UAAU,iBAAiB,UAAU;IAClD,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,aAAa,UAAU;AAE5B,QAAK,OAAO,QAAQ,aAAa,kBAC/B,MACA,KAAK,OAAO,QAAQ,WACrB;AAED,QAAK,YAAY,EAAE;AAEnB,QAAK,QAAQ,UAAU,MAAM,YAAY,KAAK,OAAO,QAAQ,WAAW;AACxE,6BAA0B,KAAK,QAAQ,SAAS;IAC9C,SAAS,EAAE;IACX,WAAW;IACX,SAAS,KAAK,OAAO;IACrB,GAAG,KAAK,OAAO;IACf,QAAQ,KAAK,OAAO,QAAQ;IAC5B,OAAO;IACR,CAAC;;EAEJ,MAAM,UAAU;GACd,MAAM,SAAS,MAAM,SACnB;IACE,GAAG,KAAK,QAAQ;IAChB,KAAK,UAAU,KAAK,gBAAgB,eAAe,KAAK,OAAO,KAAK;IACrE,EACD,MACD;AAED,OAAI,aAAa,KAAK,OAAO,QAAQ,YAAY,KAAK,aAAa,CACjE,OAAM,QAAQ,IACZ,OAAO,IAAI,OAAM,WACf,KAAK,YACH,OAAO,SACP,aACE,UACE,YACE,KAAK,OAAO,QAAQ,YACpB,KAAK,aACN,EACD,OAAO,SACR,EACD,EAAE,eAAe,OAAO,CACzB,CACF,CACF,CACF;OAED,OAAM,QAAQ,IACZ,OAAO,IAAI,OAAM,WACf,KAAK,GAAG,MACN,UAAU,KAAK,OAAO,QAAQ,YAAY,OAAO,SAAS,EAC1D,OAAO,QACR,CACF,CACF;;EAGN"}
|
package/dist/types/index.cjs
DELETED
|
File without changes
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig } from "./plugin.cjs";
|
|
2
|
-
export { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig };
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig } from "./plugin.mjs";
|
|
2
|
-
export { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig };
|
package/dist/types/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/plugin.cjs
DELETED
|
File without changes
|
package/dist/types/plugin.d.cts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
-
import { CodegenContext, YamlCliFlags } from "@graphql-codegen/cli";
|
|
3
|
-
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
|
-
type GraphQLPluginOptions = Partial<Omit<YamlCliFlags, "config" | "watch">> & {
|
|
6
|
-
/**
|
|
7
|
-
* The path to a custom GraphQL Codegen configuration file.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* If not provided, the plugin will attempt to locate a configuration file by searching for one of the following filenames in the project root (in order): "codegen.yml", "codegen.yaml", "codegen.json", "codegen.js", "codegen.cjs".
|
|
11
|
-
*/
|
|
12
|
-
configFile?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The path to the output file generated by the plugin.
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* If using the default value, the file can be imported from "powerlines:graphql/schema-name". This field allows the use of the "\{builtinPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin.
|
|
18
|
-
*
|
|
19
|
-
* @defaultValue "\{builtinPath\}/graphql"
|
|
20
|
-
*/
|
|
21
|
-
outputPath?: string;
|
|
22
|
-
};
|
|
23
|
-
type GraphQLPluginUserConfig = UserConfig & {
|
|
24
|
-
graphql?: Omit<YamlCliFlags, "config" | "watch" | "project" | "overwrite" | "require"> & Omit<GraphQLPluginOptions, "outputPath" | "configFile"> & Required<Pick<GraphQLPluginOptions, "outputPath" | "configFile">>;
|
|
25
|
-
};
|
|
26
|
-
type GraphQLPluginResolvedConfig = ResolvedConfig & {
|
|
27
|
-
graphql: Omit<YamlCliFlags, "config" | "watch" | "project" | "overwrite" | "require"> & Omit<GraphQLPluginOptions, "outputPath" | "configFile"> & Required<Pick<GraphQLPluginOptions, "outputPath" | "configFile">>;
|
|
28
|
-
};
|
|
29
|
-
type GraphQLPluginContext<TResolvedConfig extends GraphQLPluginResolvedConfig = GraphQLPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
30
|
-
graphql: {
|
|
31
|
-
codegen: CodegenContext;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
declare type __ΩGraphQLPluginOptions = any[];
|
|
35
|
-
declare type __ΩGraphQLPluginUserConfig = any[];
|
|
36
|
-
declare type __ΩGraphQLPluginResolvedConfig = any[];
|
|
37
|
-
declare type __ΩGraphQLPluginContext = any[];
|
|
38
|
-
//#endregion
|
|
39
|
-
export { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig };
|
|
40
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CACjC,IAAA,CAAK,YAAA;;AADP;;;;;EASE,UAAA;EATwC;;;;;;;;EAmBxC,UAAA;AAAA;AAAA,KAGU,uBAAA,GAA0B,UAAA;EACpC,OAAA,GAAU,IAAA,CACR,YAAA,8DAGA,IAAA,CAAK,oBAAA,iCACL,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA;AAAA,KAGN,2BAAA,GAA8B,cAAA;EACxC,OAAA,EAAS,IAAA,CACP,YAAA,8DAGA,IAAA,CAAK,oBAAA,iCACL,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA;AAAA,KAGN,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;EAChB,OAAA;IACE,OAAA,EAAS,cAAA;EAAA;AAAA;AAAA"}
|
package/dist/types/plugin.d.mts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { CodegenContext, YamlCliFlags } from "@graphql-codegen/cli";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
|
-
type GraphQLPluginOptions = Partial<Omit<YamlCliFlags, "config" | "watch">> & {
|
|
6
|
-
/**
|
|
7
|
-
* The path to a custom GraphQL Codegen configuration file.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* If not provided, the plugin will attempt to locate a configuration file by searching for one of the following filenames in the project root (in order): "codegen.yml", "codegen.yaml", "codegen.json", "codegen.js", "codegen.cjs".
|
|
11
|
-
*/
|
|
12
|
-
configFile?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The path to the output file generated by the plugin.
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* If using the default value, the file can be imported from "powerlines:graphql/schema-name". This field allows the use of the "\{builtinPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin.
|
|
18
|
-
*
|
|
19
|
-
* @defaultValue "\{builtinPath\}/graphql"
|
|
20
|
-
*/
|
|
21
|
-
outputPath?: string;
|
|
22
|
-
};
|
|
23
|
-
type GraphQLPluginUserConfig = UserConfig & {
|
|
24
|
-
graphql?: Omit<YamlCliFlags, "config" | "watch" | "project" | "overwrite" | "require"> & Omit<GraphQLPluginOptions, "outputPath" | "configFile"> & Required<Pick<GraphQLPluginOptions, "outputPath" | "configFile">>;
|
|
25
|
-
};
|
|
26
|
-
type GraphQLPluginResolvedConfig = ResolvedConfig & {
|
|
27
|
-
graphql: Omit<YamlCliFlags, "config" | "watch" | "project" | "overwrite" | "require"> & Omit<GraphQLPluginOptions, "outputPath" | "configFile"> & Required<Pick<GraphQLPluginOptions, "outputPath" | "configFile">>;
|
|
28
|
-
};
|
|
29
|
-
type GraphQLPluginContext<TResolvedConfig extends GraphQLPluginResolvedConfig = GraphQLPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
30
|
-
graphql: {
|
|
31
|
-
codegen: CodegenContext;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
declare type __ΩGraphQLPluginOptions = any[];
|
|
35
|
-
declare type __ΩGraphQLPluginUserConfig = any[];
|
|
36
|
-
declare type __ΩGraphQLPluginResolvedConfig = any[];
|
|
37
|
-
declare type __ΩGraphQLPluginContext = any[];
|
|
38
|
-
//#endregion
|
|
39
|
-
export { GraphQLPluginContext, GraphQLPluginOptions, GraphQLPluginResolvedConfig, GraphQLPluginUserConfig, __ΩGraphQLPluginContext, __ΩGraphQLPluginOptions, __ΩGraphQLPluginResolvedConfig, __ΩGraphQLPluginUserConfig };
|
|
40
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CACjC,IAAA,CAAK,YAAA;;AADP;;;;;EASE,UAAA;EATwC;;;;;;;;EAmBxC,UAAA;AAAA;AAAA,KAGU,uBAAA,GAA0B,UAAA;EACpC,OAAA,GAAU,IAAA,CACR,YAAA,8DAGA,IAAA,CAAK,oBAAA,iCACL,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA;AAAA,KAGN,2BAAA,GAA8B,cAAA;EACxC,OAAA,EAAS,IAAA,CACP,YAAA,8DAGA,IAAA,CAAK,oBAAA,iCACL,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA;AAAA,KAGN,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;EAChB,OAAA;IACE,OAAA,EAAS,cAAA;EAAA;AAAA;AAAA"}
|
package/dist/types/plugin.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|