b-gsdk 0.0.3 → 0.0.4

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.
@@ -7,7 +7,7 @@ exports.getBGsdkDirectoryPath = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
9
  // taken from prisma https://github.com/prisma/prisma/blob/8f6b7c7c99c1c720cf5bfed5d563423e71c1b84f/packages/sdk/src/cli/getSchema.ts#L46-L49
10
- const getBGsdkDirectoryPath = async (cwd) => {
10
+ const getBGsdkDirectoryPath = (cwd) => {
11
11
  const schemaPath = path_1.default.join(cwd, "b-gsdk");
12
12
  if (fs_1.default.existsSync(schemaPath)) {
13
13
  return schemaPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "b-gsdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A GraphQL Codegen that outputs a TypeScript SDK.",
5
5
  "author": "Julian Benegas",
6
6
  "license": "MIT",
@@ -2,7 +2,7 @@ import fs from "fs";
2
2
  import path from "path";
3
3
 
4
4
  // taken from prisma https://github.com/prisma/prisma/blob/8f6b7c7c99c1c720cf5bfed5d563423e71c1b84f/packages/sdk/src/cli/getSchema.ts#L46-L49
5
- export const getBGsdkDirectoryPath = async (cwd: string) => {
5
+ export const getBGsdkDirectoryPath = (cwd: string) => {
6
6
  const schemaPath = path.join(cwd, "b-gsdk");
7
7
  if (fs.existsSync(schemaPath)) {
8
8
  return schemaPath;