b-gsdk 0.1.8 → 0.2.0

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.js CHANGED
@@ -15,7 +15,7 @@ async function main(args) {
15
15
  throw new Error("Make sure you have a b-gsdk directory in the root of your project.");
16
16
  }
17
17
  const config = (0, get_b_gsdk_config_1.getBGsdkConfig)(bgsdkDirectoryPath);
18
- const [schemaCodegen, sdkCodegen] = await (0, cli_1.generate)({
18
+ const [sdkCodegen, schemaCodegen] = await (0, cli_1.generate)({
19
19
  schema: {
20
20
  [config.endpoint]: {
21
21
  headers: config.headers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "b-gsdk",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "A GraphQL Codegen that outputs a TypeScript SDK.",
5
5
  "author": "Julian Benegas",
6
6
  "license": "MIT",
@@ -11,7 +11,8 @@
11
11
  "types": "src/index.d.ts",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "prepublish": "yarn build"
14
+ "prepublish": "yarn build",
15
+ "publish": "npm publish"
15
16
  },
16
17
  "dependencies": {
17
18
  "@graphql-codegen/cli": "^2.6.2",
package/src/index.ts CHANGED
@@ -19,7 +19,7 @@ export async function main(args: Args) {
19
19
 
20
20
  const config = getBGsdkConfig(bgsdkDirectoryPath);
21
21
 
22
- const [schemaCodegen, sdkCodegen] = await generate(
22
+ const [sdkCodegen, schemaCodegen] = await generate(
23
23
  {
24
24
  schema: {
25
25
  [config.endpoint]: {