@smartive/graphql-magic 9.1.0 → 9.1.2

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,6 +1,6 @@
1
- # [9.1.0](https://github.com/smartive/graphql-magic/compare/v9.0.0...v9.1.0) (2023-09-06)
1
+ ## [9.1.2](https://github.com/smartive/graphql-magic/compare/v9.1.1...v9.1.2) (2023-09-25)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * Use graphql queries path ([#61](https://github.com/smartive/graphql-magic/issues/61)) ([8c85002](https://github.com/smartive/graphql-magic/commit/8c850028673ced969a61e25b664fac9596586388))
6
+ * Settings dir check ([#78](https://github.com/smartive/graphql-magic/issues/78)) ([af7316f](https://github.com/smartive/graphql-magic/commit/af7316fcc0ac653efc6e1208853c61191a793103))
package/dist/bin/gqm.cjs CHANGED
@@ -1355,7 +1355,7 @@ var ensureDirectoryExists = (dir) => {
1355
1355
  if ((0, import_fs.existsSync)(dir)) {
1356
1356
  return true;
1357
1357
  }
1358
- ensureDirectoryExists(dir);
1358
+ ensureDirectoryExists((0, import_path.dirname)(dir));
1359
1359
  try {
1360
1360
  console.info(`Creating directory ${dir}`);
1361
1361
  (0, import_fs.mkdirSync)(dir);
@@ -1413,7 +1413,7 @@ var generateGraphqlClientTypes = async () => {
1413
1413
  const graphqlQueriesPath = await getSetting("graphqlQueriesPath");
1414
1414
  await (0, import_cli.generate)({
1415
1415
  schema: `${generatedFolderPath}/schema.graphql`,
1416
- documents: [graphqlQueriesPath],
1416
+ documents: [graphqlQueriesPath, `${generatedFolderPath}/client/mutations.ts`],
1417
1417
  generates: {
1418
1418
  [`${generatedFolderPath}/client/index.ts`]: {
1419
1419
  plugins: ["typescript", "typescript-operations", "typescript-compatibility"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartive/graphql-magic",
3
- "version": "9.1.0",
3
+ "version": "9.1.2",
4
4
  "description": "",
5
5
  "source": "src/index.ts",
6
6
  "type": "module",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "overrides": {
37
37
  "graphql": "$graphql",
38
- "rollup": "3.28.1"
38
+ "rollup": "3.29.3"
39
39
  },
40
40
  "browserslist": "> 0.25%, not dead",
41
41
  "publishConfig": {
@@ -64,20 +64,20 @@
64
64
  "devDependencies": {
65
65
  "@smartive/eslint-config": "3.2.0",
66
66
  "@smartive/prettier-config": "3.1.2",
67
- "@types/jest": "29.5.4",
68
- "@types/lodash": "4.14.198",
67
+ "@types/jest": "29.5.5",
68
+ "@types/lodash": "4.14.199",
69
69
  "@types/luxon": "3.3.2",
70
- "@types/uuid": "9.0.3",
70
+ "@types/uuid": "9.0.4",
71
71
  "create-ts-index": "1.14.0",
72
72
  "del-cli": "5.1.0",
73
- "esbuild": "0.19.2",
74
- "eslint": "8.48.0",
73
+ "esbuild": "0.19.3",
74
+ "eslint": "8.50.0",
75
75
  "graphql-request": "6.1.0",
76
- "jest": "29.6.4",
76
+ "jest": "29.7.0",
77
77
  "mock-knex": "0.4.12",
78
78
  "pg": "8.11.3",
79
79
  "prettier": "2.8.8",
80
- "simple-git": "3.19.1",
80
+ "simple-git": "3.20.0",
81
81
  "ts-jest": "29.1.1",
82
82
  "ts-node": "10.9.1",
83
83
  "typescript": "5.2.2"
@@ -25,7 +25,7 @@ export const generateGraphqlClientTypes = async () => {
25
25
  const graphqlQueriesPath = await getSetting('graphqlQueriesPath');
26
26
  await generate({
27
27
  schema: `${generatedFolderPath}/schema.graphql`,
28
- documents: [graphqlQueriesPath],
28
+ documents: [graphqlQueriesPath, `${generatedFolderPath}/client/mutations.ts`],
29
29
  generates: {
30
30
  [`${generatedFolderPath}/client/index.ts`]: {
31
31
  plugins: ['typescript', 'typescript-operations', 'typescript-compatibility'],
@@ -76,7 +76,7 @@ const ensureDirectoryExists = (dir: string) => {
76
76
  return true;
77
77
  }
78
78
 
79
- ensureDirectoryExists(dir);
79
+ ensureDirectoryExists(dirname(dir));
80
80
 
81
81
  try {
82
82
  console.info(`Creating directory ${dir}`);