@powerlines/plugin-graphql 0.1.38 → 0.1.40
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-C8TdqkSk.d.cts → index-BP1IWd3_.d.cts} +188 -231
- package/dist/{index-C8TdqkSk.d.ts → index-BP1IWd3_.d.ts} +188 -231
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.ts +1 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -4,4 +4,4 @@ import {generate,loadContext,updateContextWithCliFlags}from'@graphql-codegen/cli
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
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.
|
|
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};
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-BP1IWd3_.cjs';
|
|
2
2
|
import '@graphql-codegen/cli';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -15,7 +15,6 @@ import 'semver';
|
|
|
15
15
|
import 'ts-morph';
|
|
16
16
|
import 'unplugin';
|
|
17
17
|
import '@stryke/fs/resolve';
|
|
18
|
-
import 'node:fs';
|
|
19
18
|
import '@stryke/types/tsconfig';
|
|
20
19
|
import 'typescript';
|
|
21
20
|
import '@stryke/types/array';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-BP1IWd3_.js';
|
|
2
2
|
import '@graphql-codegen/cli';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -15,7 +15,6 @@ import 'semver';
|
|
|
15
15
|
import 'ts-morph';
|
|
16
16
|
import 'unplugin';
|
|
17
17
|
import '@stryke/fs/resolve';
|
|
18
|
-
import 'node:fs';
|
|
19
18
|
import '@stryke/types/tsconfig';
|
|
20
19
|
import 'typescript';
|
|
21
20
|
import '@stryke/types/array';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-BP1IWd3_.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -15,7 +15,6 @@ import 'semver';
|
|
|
15
15
|
import 'ts-morph';
|
|
16
16
|
import 'unplugin';
|
|
17
17
|
import '@stryke/fs/resolve';
|
|
18
|
-
import 'node:fs';
|
|
19
18
|
import '@stryke/types/tsconfig';
|
|
20
19
|
import 'typescript';
|
|
21
20
|
import '@stryke/types/array';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-BP1IWd3_.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -15,7 +15,6 @@ import 'semver';
|
|
|
15
15
|
import 'ts-morph';
|
|
16
16
|
import 'unplugin';
|
|
17
17
|
import '@stryke/fs/resolve';
|
|
18
|
-
import 'node:fs';
|
|
19
18
|
import '@stryke/types/tsconfig';
|
|
20
19
|
import 'typescript';
|
|
21
20
|
import '@stryke/types/array';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-graphql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from GraphQL schemas.",
|
|
6
6
|
"repository": {
|
|
@@ -100,19 +100,19 @@
|
|
|
100
100
|
"keywords": ["graphql", "powerlines", "storm-software", "powerlines-plugin"],
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"@graphql-codegen/cli": "^6.1.0",
|
|
103
|
-
"@stryke/path": "^0.21.
|
|
104
|
-
"@stryke/type-checks": "^0.3.
|
|
105
|
-
"@stryke/types": "^0.10.
|
|
103
|
+
"@stryke/path": "^0.21.2",
|
|
104
|
+
"@stryke/type-checks": "^0.3.18",
|
|
105
|
+
"@stryke/types": "^0.10.8",
|
|
106
106
|
"defu": "^6.1.4",
|
|
107
107
|
"jiti": "^2.6.1",
|
|
108
|
-
"powerlines": "^0.
|
|
108
|
+
"powerlines": "^0.25.1"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@graphql-codegen/plugin-helpers": "^6.1.0",
|
|
112
|
-
"@powerlines/nx": "^0.10.
|
|
113
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
112
|
+
"@powerlines/nx": "^0.10.39",
|
|
113
|
+
"@powerlines/plugin-plugin": "^0.11.47",
|
|
114
114
|
"@types/node": "^24.10.1"
|
|
115
115
|
},
|
|
116
116
|
"publishConfig": { "access": "public" },
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "de1daa466d1524b287e2748490c1e56ab9002b07"
|
|
118
118
|
}
|