Commit 3da3d3e
committed
Add .js extensions to internal imports
Switch to `module: nodenext` / `moduleResolution: nodenext` in
tsconfig.json and add explicit `.js` extensions to all relative import
paths. This is required by Node.js ESM resolution and is also valid
for CJS, making this a non-breaking preparatory change.
Also switches test/profile scripts from ts-node to tsx, which has
better support for nodenext module resolution.1 parent 048110c commit 3da3d3e
91 files changed
Lines changed: 572 additions & 296 deletions
File tree
- scripts
- src
- codegen
- tests
- integrationFixtures
- aliasedMethod
- complexDefaultInput
- complexPlurals
- connectionExample
- customScalarSerialization
- deprecated
- derivedContextAsync
- derivedContext
- enumDefault
- enumExport
- explicitNullPassedToArgWithDefault
- functionFieldRenamed
- functionField
- getAcessor
- inputTypeOneOf
- killsParentOnExceptionOnQuery
- killsParentOnExceptionReturnsNull
- killsParentOnException
- nonNullArgWithDefault
- nonNullEnumDefault
- nonNullableListIncludesNull
- numericID
- parameterPropertyRenamed
- positionalNonNullArgWithDefault
- promiseOfPromise
- resolveTypeViaClass
- resolverErrorElidedToNull
- skipInclude
- strictSemanticNullability
- transforms
- tsPlugin
- utils
- validations
- website/plugins
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments