@trackunit/react-graphql-tools 0.0.19 → 0.0.20
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
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.20](https://github.com/Trackunit/manager/compare/react-graphql-tools/0.0.19...react-graphql-tools/0.0.20) (2023-06-22)
|
|
6
|
+
|
|
5
7
|
## [0.0.19](https://github.com/Trackunit/manager/compare/react-graphql-tools/0.0.18...react-graphql-tools/0.0.19) (2023-06-22)
|
|
6
8
|
|
|
7
9
|
## [0.0.18](https://github.com/Trackunit/manager/compare/react-graphql-tools/0.0.17...react-graphql-tools/0.0.18) (2023-06-19)
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ const child_process_1 = require("child_process");
|
|
|
12
12
|
* @param options.isVerbose if true, will log more information.
|
|
13
13
|
*/
|
|
14
14
|
const generateHooks = (options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
-
const cmd = `./node_modules/.bin/graphql-codegen --config ${options.codeGenFilePath} --require tsconfig-paths/register --debug --verbose --project ${options.tsConfigPath}`;
|
|
15
|
+
const cmd = `./node_modules/.bin/graphql-codegen --config "${options.codeGenFilePath}" --require tsconfig-paths/register --debug --verbose --project "${options.tsConfigPath}"`;
|
|
16
16
|
if (options.isVerbose) {
|
|
17
17
|
// eslint-disable-next-line no-console
|
|
18
18
|
console.log(cmd);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateHooks.js","sourceRoot":"","sources":["../../../../../../../libs/react/graphql-tools/src/executors/createHooks/generateHooks.ts"],"names":[],"mappings":";;;;AAAA,iDAAyC;AACzC;;;;;;;GAOG;AACI,MAAM,aAAa,GAAG,CAAO,OAKnC,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"generateHooks.js","sourceRoot":"","sources":["../../../../../../../libs/react/graphql-tools/src/executors/createHooks/generateHooks.ts"],"names":[],"mappings":";;;;AAAA,iDAAyC;AACzC;;;;;;;GAOG;AACI,MAAM,aAAa,GAAG,CAAO,OAKnC,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,iDACV,OAAO,CAAC,eACV,oEAAoE,OAAO,CAAC,YAAY,GAAG,CAAC;IAC5F,IAAI,OAAO,CAAC,SAAS,EAAE;QACrB,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KAClB;IACD,IAAA,wBAAQ,EAAC,GAAG,EAAE;QACZ,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;QAC/C,GAAG,EAAE,OAAO,CAAC,MAAM;KACpB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAjBW,QAAA,aAAa,iBAiBxB","sourcesContent":["import { execSync } from \"child_process\";\n/**\n * Generates React hooks from your graphql files.\n *\n * @param options.codeGenFilePath the path to the codegen file.\n * @param options.nxRoot the nx root.\n * @param options.tsConfigPath the path to the tsconfig file.\n * @param options.isVerbose if true, will log more information.\n */\nexport const generateHooks = async (options: {\n codeGenFilePath: string;\n nxRoot: string;\n isVerbose?: boolean;\n tsConfigPath: string;\n}) => {\n const cmd = `./node_modules/.bin/graphql-codegen --config \"${\n options.codeGenFilePath\n }\" --require tsconfig-paths/register --debug --verbose --project \"${options.tsConfigPath}\"`;\n if (options.isVerbose) {\n // eslint-disable-next-line no-console\n console.log(cmd);\n }\n execSync(cmd, {\n stdio: options.isVerbose ? \"inherit\" : \"ignore\",\n cwd: options.nxRoot,\n });\n};\n"]}
|