Skip to content

Commit fc29247

Browse files
committed
Use moduleResolution: NodeNext
1 parent 23b4a72 commit fc29247

36 files changed

+121
-118
lines changed

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { main } from './main';
1+
import { main } from './main.js';
22

33
/**
44
* The entrypoint to this tool.

src/editor.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { when } from 'jest-when';
2-
import { determineEditor } from './editor';
3-
import * as envModule from './env';
4-
import * as miscUtils from './misc-utils';
2+
import { determineEditor } from './editor.js';
3+
import * as envModule from './env.js';
4+
import * as miscUtils from './misc-utils.js';
55

66
jest.mock('./env');
77
jest.mock('./misc-utils');

src/editor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getEnvironmentVariables } from './env';
2-
import { debug, resolveExecutable } from './misc-utils';
1+
import { getEnvironmentVariables } from './env.js';
2+
import { debug, resolveExecutable } from './misc-utils.js';
33

44
/**
55
* Information about the editor present on the user's computer.

src/env.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getEnvironmentVariables } from './env';
1+
import { getEnvironmentVariables } from './env.js';
22

33
describe('env', () => {
44
describe('getEnvironmentVariables', () => {

src/fs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path';
33
import { rimraf } from 'rimraf';
44
import { when } from 'jest-when';
55
import * as actionUtils from '@metamask/action-utils';
6-
import { withSandbox } from '../tests/helpers';
6+
import { withSandbox } from '../tests/helpers.js';
77
import {
88
readFile,
99
writeFile,
@@ -12,7 +12,7 @@ import {
1212
fileExists,
1313
ensureDirectoryPathExists,
1414
removeFile,
15-
} from './fs';
15+
} from './fs.js';
1616

1717
jest.mock('@metamask/action-utils');
1818

src/fs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
readJsonObjectFile as underlyingReadJsonObjectFile,
44
writeJsonFile as underlyingWriteJsonFile,
55
} from '@metamask/action-utils';
6-
import { wrapError, isErrorWithCode } from './misc-utils';
6+
import { wrapError, isErrorWithCode } from './misc-utils.js';
77

88
/**
99
* Represents a writeable stream, such as that represented by `process.stdout`

src/functional.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { withMonorepoProjectEnvironment } from '../tests/functional/helpers/with';
2-
import { buildChangelog } from '../tests/functional/helpers/utils';
1+
import { withMonorepoProjectEnvironment } from '../tests/functional/helpers/with.js';
2+
import { buildChangelog } from '../tests/functional/helpers/utils.js';
33

44
jest.setTimeout(10_000);
55

src/initial-parameters.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {
55
buildMockProject,
66
buildMockPackage,
77
createNoopWriteStream,
8-
} from '../tests/unit/helpers';
9-
import { determineInitialParameters } from './initial-parameters';
10-
import * as commandLineArgumentsModule from './command-line-arguments';
11-
import * as envModule from './env';
12-
import * as projectModule from './project';
8+
} from '../tests/unit/helpers.js';
9+
import { determineInitialParameters } from './initial-parameters.js';
10+
import * as commandLineArgumentsModule from './command-line-arguments.js';
11+
import * as envModule from './env.js';
12+
import * as projectModule from './project.js';
1313

1414
jest.mock('./command-line-arguments');
1515
jest.mock('./env');

src/initial-parameters.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import os from 'os';
22
import path from 'path';
3-
import { readCommandLineArguments } from './command-line-arguments';
4-
import { WriteStreamLike } from './fs';
5-
import { readProject, Project } from './project';
3+
import { readCommandLineArguments } from './command-line-arguments.js';
4+
import { WriteStreamLike } from './fs.js';
5+
import { readProject, Project } from './project.js';
66

77
/**
88
* The type of release being created as determined by the parent release.

src/main.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import fs from 'fs';
2-
import { buildMockProject } from '../tests/unit/helpers';
3-
import { main } from './main';
4-
import * as initialParametersModule from './initial-parameters';
5-
import * as monorepoWorkflowOperations from './monorepo-workflow-operations';
2+
import { buildMockProject } from '../tests/unit/helpers.js';
3+
import { main } from './main.js';
4+
import * as initialParametersModule from './initial-parameters.js';
5+
import * as monorepoWorkflowOperations from './monorepo-workflow-operations.js';
66

77
jest.mock('./initial-parameters');
88
jest.mock('./monorepo-workflow-operations');

0 commit comments

Comments
 (0)