Skip to content

Commit d83c50b

Browse files
committed
build: use module NodeNext with ts extension
1 parent 630db8f commit d83c50b

File tree

117 files changed

+213
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+213
-213
lines changed

src/ambient-modules-declarations.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { dedent } from "ts-dedent";
22
import { ModuleKind, ModuleResolutionKind, Project, ScriptTarget } from "ts-morph";
33
import { expect, test } from "vitest";
4-
import { ambientModulesDeclarations } from "./ambient-modules-declarations";
4+
import { ambientModulesDeclarations } from "./ambient-modules-declarations.ts";
55

66
test("no ambient modules", () => {
77
const project = new Project({

src/ambient-modules-declarations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ModuleDeclaration, Node, type Project } from "ts-morph";
2-
import { isHidden } from "./is-hidden";
3-
import { sourceFilePath } from "./source-file-path";
2+
import { isHidden } from "./is-hidden.ts";
3+
import { sourceFilePath } from "./source-file-path.ts";
44

55
export type AmbientModulesDeclarationsReturn = {
66
containerName: string;

src/apparent-type.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { dedent } from "ts-dedent";
22
import { ModuleKind, ModuleResolutionKind, Project, ScriptTarget } from "ts-morph";
33
import { expect, test } from "vitest";
4-
import { apparentType } from "./apparent-type";
4+
import { apparentType } from "./apparent-type.ts";
55

66
test("apparent type", () => {
77
const project = new Project({

src/bun-package-manager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Effect } from "effect";
22
import { temporaryDirectoryTask } from "tempy";
33
import { expect, test } from "vitest";
4-
import { bunPackageManager } from "./bun-package-manager";
5-
import type { InstallPackageOptions } from "./package-manager";
4+
import { bunPackageManager } from "./bun-package-manager.ts";
5+
import type { InstallPackageOptions } from "./package-manager.ts";
66

77
const bun = bunPackageManager();
88

src/bun-package-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Effect } from "effect";
22
import { execa } from "execa";
3-
import { InstallPackageError, PackageManager } from "./package-manager";
3+
import { InstallPackageError, PackageManager } from "./package-manager.ts";
44

55
/** @internal */
66
export const bunPackageManager = (bunPath = "bun") =>

src/create-project.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from "node:fs/promises";
33
import { join } from "pathe";
44
import { temporaryDirectoryTask } from "tempy";
55
import { expect, test } from "vitest";
6-
import { createProject, type CreateProjectOptions } from "./create-project";
6+
import { createProject, type CreateProjectOptions } from "./create-project.ts";
77

88
const _createProject = (options: CreateProjectOptions) => Effect.runPromise(createProject(options));
99

src/docs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { dedent } from "ts-dedent";
22
import { ModuleKind, ModuleResolutionKind, Project, ScriptTarget } from "ts-morph";
33
import { expect, test } from "vitest";
4-
import { docs } from "./docs";
4+
import { docs } from "./docs.ts";
55

66
test("docs", () => {
77
const project = new Project({

src/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Node, SyntaxKind } from "ts-morph";
2-
import { parseDocComment } from "./parse-doc-comment";
2+
import { parseDocComment } from "./parse-doc-comment.ts";
33

44
export const docs = (node: Node): string[] => [
55
// List of unique jsdoc comments that are closest to the node.

src/export-equals-declarations.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { dedent } from "ts-dedent";
22
import { ModuleKind, ModuleResolutionKind, Project, ScriptTarget } from "ts-morph";
33
import { expect, test } from "vitest";
4-
import { exportEqualsDeclarations } from "./export-equals-declarations";
4+
import { exportEqualsDeclarations } from "./export-equals-declarations.ts";
55

66
test("shorthand ambient module", () => {
77
const project = new Project({

src/export-equals-declarations.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ModuleDeclaration, SourceFile, SyntaxKind, type ExportedDeclarations } from "ts-morph";
2-
import { isExportedDeclarations } from "./is-exported-declarations";
3-
import { isHidden } from "./is-hidden";
4-
import { isNamespace } from "./is-namespace";
5-
import { isShorthandAmbientModule } from "./is-shorthand-ambient-module";
2+
import { isExportedDeclarations } from "./is-exported-declarations.ts";
3+
import { isHidden } from "./is-hidden.ts";
4+
import { isNamespace } from "./is-namespace.ts";
5+
import { isShorthandAmbientModule } from "./is-shorthand-ambient-module.ts";
66

77
export type ExportEqualsDeclarationsReturn = {
88
containerName: string;

0 commit comments

Comments
 (0)