Skip to content

Commit 38da237

Browse files
committed
Prepend ./ to TS relative paths to make them valid, fix #543
1 parent 457225b commit 38da237

2 files changed

Lines changed: 204 additions & 202 deletions

File tree

packages/apollo-codegen-typescript/src/__tests__/__snapshots__/codeGeneration.ts.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ Array [
635635
"fileContents": "/* tslint:disable */
636636
// This file was automatically generated and should not be edited.
637637
638-
import { EnumCommentTestCase, Duplicate } from \\"../../__generated__/globalTypes\\";
638+
import { EnumCommentTestCase, Duplicate } from \\"./../../__generated__/globalTypes\\";
639639
640640
// ====================================================
641641
// GraphQL mutation operation: duplicates
@@ -697,7 +697,7 @@ Array [
697697
"fileContents": "/* tslint:disable */
698698
// This file was automatically generated and should not be edited.
699699
700-
import { Episode } from \\"../../__generated__/globalTypes\\";
700+
import { Episode } from \\"./../../__generated__/globalTypes\\";
701701
702702
// ====================================================
703703
// GraphQL query operation: HeroName
@@ -819,7 +819,7 @@ export interface humanFragment {
819819
"fileContents": "/* tslint:disable */
820820
// This file was automatically generated and should not be edited.
821821
822-
import { Episode } from \\"../../__generated__/globalTypes\\";
822+
import { Episode } from \\"./../../__generated__/globalTypes\\";
823823
824824
// ====================================================
825825
// GraphQL fragment: droidFragment
@@ -960,7 +960,7 @@ export interface simpleFragment {
960960
"fileContents": "/* tslint:disable */
961961
// This file was automatically generated and should not be edited.
962962
963-
import { Episode } from \\"../../__generated__/globalTypes\\";
963+
import { Episode } from \\"./../../__generated__/globalTypes\\";
964964
965965
// ====================================================
966966
// GraphQL fragment: anotherFragment
@@ -1083,7 +1083,7 @@ Array [
10831083
"fileContents": "/* tslint:disable */
10841084
// This file was automatically generated and should not be edited.
10851085
1086-
import { Episode } from \\"../../__generated__/globalTypes\\";
1086+
import { Episode } from \\"./../../__generated__/globalTypes\\";
10871087
10881088
// ====================================================
10891089
// GraphQL query operation: HeroInlineFragment
@@ -1148,7 +1148,7 @@ Array [
11481148
"fileContents": "/* tslint:disable */
11491149
// This file was automatically generated and should not be edited.
11501150
1151-
import { Episode } from \\"../../__generated__/globalTypes\\";
1151+
import { Episode } from \\"./../../__generated__/globalTypes\\";
11521152
11531153
// ====================================================
11541154
// GraphQL query operation: HeroName
@@ -1247,7 +1247,7 @@ Array [
12471247
"fileContents": "/* tslint:disable */
12481248
// This file was automatically generated and should not be edited.
12491249
1250-
import { Episode } from \\"../../__generated__/globalTypes\\";
1250+
import { Episode } from \\"./../../__generated__/globalTypes\\";
12511251
12521252
// ====================================================
12531253
// GraphQL query operation: HeroName
@@ -1358,7 +1358,7 @@ Array [
13581358
"fileContents": "/* tslint:disable */
13591359
// This file was automatically generated and should not be edited.
13601360
1361-
import { EnumCommentTestCase } from \\"../../__generated__/globalTypes\\";
1361+
import { EnumCommentTestCase } from \\"./../../__generated__/globalTypes\\";
13621362
13631363
// ====================================================
13641364
// GraphQL query operation: nesting
@@ -1408,7 +1408,7 @@ Array [
14081408
"fileContents": "/* tslint:disable */
14091409
// This file was automatically generated and should not be edited.
14101410
1411-
import { EnumCommentTestCase } from \\"../../__generated__/globalTypes\\";
1411+
import { EnumCommentTestCase } from \\"./../../__generated__/globalTypes\\";
14121412
14131413
// ====================================================
14141414
// GraphQL query operation: nesting
@@ -1458,7 +1458,7 @@ Array [
14581458
"fileContents": "/* tslint:disable */
14591459
// This file was automatically generated and should not be edited.
14601460
1461-
import { Episode } from \\"../../__generated__/globalTypes\\";
1461+
import { Episode } from \\"./../../__generated__/globalTypes\\";
14621462
14631463
// ====================================================
14641464
// GraphQL query operation: HeroFragment
@@ -1586,7 +1586,7 @@ Array [
15861586
"fileContents": "/* tslint:disable */
15871587
// This file was automatically generated and should not be edited.
15881588
1589-
import { Episode } from \\"../../__generated__/globalTypes\\";
1589+
import { Episode } from \\"./../../__generated__/globalTypes\\";
15901590
15911591
// ====================================================
15921592
// GraphQL query operation: HeroName
@@ -1651,7 +1651,7 @@ Array [
16511651
"fileContents": "/* tslint:disable */
16521652
// This file was automatically generated and should not be edited.
16531653
1654-
import { Episode, ReviewInput } from \\"../../__generated__/globalTypes\\";
1654+
import { Episode, ReviewInput } from \\"./../../__generated__/globalTypes\\";
16551655
16561656
// ====================================================
16571657
// GraphQL mutation operation: ReviewMovie

0 commit comments

Comments
 (0)