@platelet-app/graphql 1.1.1 → 1.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.
@@ -1,4 +1,4 @@
1
- import * as APITypes from "../API";
1
+ import * as APITypes from "../API.js";
2
2
  declare type GeneratedMutation<InputType, OutputType> = string & {
3
3
  __generatedMutationInput: InputType;
4
4
  __generatedMutationOutput: OutputType;
@@ -1,4 +1,4 @@
1
- import * as APITypes from "../API";
1
+ import * as APITypes from "../API.js";
2
2
  declare type GeneratedQuery<InputType, OutputType> = string & {
3
3
  __generatedQueryInput: InputType;
4
4
  __generatedQueryOutput: OutputType;
@@ -1,4 +1,4 @@
1
- import * as APITypes from "../API";
1
+ import * as APITypes from "../API.js";
2
2
  declare type GeneratedSubscription<InputType, OutputType> = string & {
3
3
  __generatedSubscriptionInput: InputType;
4
4
  __generatedSubscriptionOutput: OutputType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platelet-app/graphql",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "GraphQL operations for the platelet.app project",
5
5
  "homepage": "https://platelet.app",
6
6
  "bugs": {
@@ -16,7 +16,8 @@
16
16
  "main": "dist/graphql/index.js",
17
17
  "types": "dist/graphql/index.d.ts",
18
18
  "scripts": {
19
- "build": "cd ../.. && amplify api gql-compile && amplify codegen && cd packages/graphql && tsc --project tsconfig.json",
19
+ "sedQueries": "sed -i 's:import \\* as APITypes from \"../API\";:import \\* as APITypes from \"../API.js\";:g' ../../src/graphql/queries.ts ../../src/graphql/mutations.ts ../../src/graphql/subscriptions.ts",
20
+ "build": "cd ../.. && amplify api gql-compile && amplify codegen && npm run sedQueries --workspace @platelet-app/graphql && cd packages/graphql && tsc --project tsconfig.json",
20
21
  "prepublishOnly": "npm run build && npm version patch"
21
22
  }
22
23
  }