Skip to content

Commit cda4e01

Browse files
authored
Add .js file extension to all in-project imports (#10994)
* add `.js` file extension to all in-project imports * bundler adjustments * remove postprocessing step * fixup, script to detect build differences * more fixes * changeset * adjust jest file resolution * fix up wrong import in `batchHttpLink` * add AreTheTypesWrong check * minor action changes * fixup * use ascii format for attw * update AreTheTypesWrong, use new `--pack` option * add build comparison action * omit minified comparison output * trigger ci * eslint configuration changes, temp custom eslint version * trigger ci * give workflows distincive names? * revert to latest working CI build * revert changes to workflows * clean up newly merged imports * fix command name * adjust fetch-depth * use runner temp dir * dir tweaks * temp file dir? * fir argument * logging * more detail logging * fix binary logic * remove a bunch of logging again * disable `set` * partially reintroduce * now, to find that last command... * this seems like a good compromise * bump the TS eslint parser to deal with TS 5.1 * apply feedback from review
1 parent fb19046 commit cda4e01

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/testing/matchers/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type {
22
ApolloClient,
33
DocumentNode,
44
OperationVariables,
5-
} from '../../core';
5+
} from '../../core/index.js';
66

77
interface ApolloCustomMatchers<R = void> {
88
/**

src/testing/matchers/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from '@jest/globals';
2-
import { toMatchDocument } from './toMatchDocument';
3-
import { toHaveSuspenseCacheEntryUsing } from './toHaveSuspenseCacheEntryUsing';
2+
import { toMatchDocument } from './toMatchDocument.js';
3+
import { toHaveSuspenseCacheEntryUsing } from './toHaveSuspenseCacheEntryUsing.js';
44

55
expect.extend({
66
toHaveSuspenseCacheEntryUsing,

src/testing/matchers/toHaveSuspenseCacheEntryUsing.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { MatcherFunction } from 'expect';
22
import type { DocumentNode } from 'graphql';
3-
import type { ApolloClient, OperationVariables } from '../../core';
4-
import { SuspenseCache } from '../../react';
5-
import { canonicalStringify } from '../../cache';
3+
import type { ApolloClient, OperationVariables } from '../../core/index.js';
4+
import { SuspenseCache } from '../../react/index.js';
5+
import { canonicalStringify } from '../../cache/index.js';
66

77
export const toHaveSuspenseCacheEntryUsing: MatcherFunction<
88
[

src/testing/matchers/toMatchDocument.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { checkDocument, print } from '../../utilities';
2-
import type { DocumentNode } from '../../core';
1+
import { checkDocument, print } from '../../utilities/index.js';
2+
import type { DocumentNode } from '../../core/index.js';
33
import type { MatcherFunction } from 'expect';
44

55
export const toMatchDocument: MatcherFunction<[document: DocumentNode]> =

0 commit comments

Comments
 (0)