@powerlines/plugin-graphql 0.1.47 → 0.1.49

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/index.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import { G as GraphQLPluginContext, a as GraphQLPluginOptions, P as Plugin } from './index-Diu55gdf.js';
2
- export { c as GraphQLPluginResolvedConfig, b as GraphQLPluginUserConfig, f as __ΩGraphQLPluginContext, _ as __ΩGraphQLPluginOptions, e as __ΩGraphQLPluginResolvedConfig, d as __ΩGraphQLPluginUserConfig } from './index-Diu55gdf.js';
3
- import '@graphql-codegen/cli';
4
- import '@storm-software/build-tools/types';
5
- import '@storm-software/config-tools/types';
6
- import '@storm-software/config/types';
7
- import '@stryke/types/base';
8
- import '@stryke/types/configuration';
9
- import '@stryke/types/file';
10
- import 'vite';
11
- import '@stryke/env/get-env-paths';
12
- import '@stryke/types/package-json';
13
- import 'jiti';
14
- import 'magic-string';
15
- import 'semver';
16
- import 'ts-morph';
17
- import 'unplugin';
18
- import '@stryke/fs/resolve';
19
- import '@stryke/types/tsconfig';
20
- import 'typescript';
21
- import '@stryke/types/array';
22
-
23
- /**
24
- * A Powerlines plugin to integrate GraphQL for code generation.
25
- *
26
- * @param options - The plugin options.
27
- * @returns A Powerlines plugin instance.
28
- */
29
- declare const plugin: <TContext extends GraphQLPluginContext = GraphQLPluginContext>(options?: GraphQLPluginOptions) => Plugin<TContext>;
30
-
31
- export { GraphQLPluginContext, GraphQLPluginOptions, plugin as default, plugin };
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- import {generate,loadContext,updateContextWithCliFlags}from'@graphql-codegen/cli';import {LogLevelLabel}from'@storm-software/config-tools/types';import {findFileName}from'@stryke/path/file-path-fns';import {isParentPath}from'@stryke/path/is-parent-path';import {joinPaths}from'@stryke/path/join-paths';import {replacePath}from'@stryke/path/replace';import m from'defu';import {getConfigPath}from'powerlines/plugin-utils/get-config-path';import {replacePathTokens}from'powerlines/plugin-utils/paths';export*from'./types';/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- var l=Object.defineProperty;var n=(o,t)=>l(o,"name",{value:t,configurable:true});const P=n((o={})=>({name:"graphql",config(){let t=o.configFile;if(!t&&(t=getConfigPath(this,"codegen"),!t&&(t=getConfigPath(this,"graphql-codegen"),!t)))throw new Error("No GraphQL Codegen configuration file found. Please specify a valid config file path in the Biome plugin's `configFile` options.");return {graphql:m(o,{configFile:t,silent:this.config.logLevel===null,verbose:this.config.logLevel===LogLevelLabel.DEBUG||this.config.logLevel===LogLevelLabel.TRACE,debug:this.config.mode==="development",outputPath:joinPaths("{builtinPath}","graphql")})}},async configResolved(){this.dependencies.graphql="latest",this.config.graphql.outputPath=replacePathTokens(this,this.config.graphql.outputPath),this.graphql??={},this.graphql.codegen=await loadContext(this.config.graphql.configFile),updateContextWithCliFlags(this.graphql.codegen,{require:[],overwrite:true,project:this.config.projectRoot,...this.config.graphql,config:this.config.graphql.configFile,watch:false});},async prepare(){const t=await generate({...this.graphql.codegen,cwd:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot)},false);isParentPath(this.config.graphql.outputPath,this.builtinsPath)?await Promise.all(t.map(async i=>this.emitBuiltin(i.content,findFileName(joinPaths(replacePath(this.config.graphql.outputPath,this.builtinsPath),i.filename),{withExtension:false}),joinPaths(this.config.graphql.outputPath,i.filename)))):await Promise.all(t.map(async i=>this.fs.write(joinPaths(this.config.graphql.outputPath,i.filename),i.content)));}}),"plugin");var U=P;export{U as default,P as plugin};
@@ -1,20 +0,0 @@
1
- export { G as GraphQLPluginContext, a as GraphQLPluginOptions, c as GraphQLPluginResolvedConfig, b as GraphQLPluginUserConfig, f as __ΩGraphQLPluginContext, _ as __ΩGraphQLPluginOptions, e as __ΩGraphQLPluginResolvedConfig, d as __ΩGraphQLPluginUserConfig } from '../index-Diu55gdf.js';
2
- import '@graphql-codegen/cli';
3
- import '@storm-software/build-tools/types';
4
- import '@storm-software/config-tools/types';
5
- import '@storm-software/config/types';
6
- import '@stryke/types/base';
7
- import '@stryke/types/configuration';
8
- import '@stryke/types/file';
9
- import 'vite';
10
- import '@stryke/env/get-env-paths';
11
- import '@stryke/types/package-json';
12
- import 'jiti';
13
- import 'magic-string';
14
- import 'semver';
15
- import 'ts-morph';
16
- import 'unplugin';
17
- import '@stryke/fs/resolve';
18
- import '@stryke/types/tsconfig';
19
- import 'typescript';
20
- import '@stryke/types/array';
@@ -1 +0,0 @@
1
- export*from'./plugin';
@@ -1,20 +0,0 @@
1
- import '@graphql-codegen/cli';
2
- export { G as GraphQLPluginContext, a as GraphQLPluginOptions, c as GraphQLPluginResolvedConfig, b as GraphQLPluginUserConfig, f as __ΩGraphQLPluginContext, _ as __ΩGraphQLPluginOptions, e as __ΩGraphQLPluginResolvedConfig, d as __ΩGraphQLPluginUserConfig } from '../index-Diu55gdf.js';
3
- import '@storm-software/build-tools/types';
4
- import '@storm-software/config-tools/types';
5
- import '@storm-software/config/types';
6
- import '@stryke/types/base';
7
- import '@stryke/types/configuration';
8
- import '@stryke/types/file';
9
- import 'vite';
10
- import '@stryke/env/get-env-paths';
11
- import '@stryke/types/package-json';
12
- import 'jiti';
13
- import 'magic-string';
14
- import 'semver';
15
- import 'ts-morph';
16
- import 'unplugin';
17
- import '@stryke/fs/resolve';
18
- import '@stryke/types/tsconfig';
19
- import 'typescript';
20
- import '@stryke/types/array';
File without changes