Skip to content

Commit

Permalink
test(build-tools): strip .js from imports
Browse files Browse the repository at this point in the history
per [ts-node issue783](TypeStrong/ts-node#783)
  • Loading branch information
jason-ha committed May 12, 2024
1 parent eb97db0 commit 4a34749
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import { Flags } from "@oclif/core";
import type { ExportSpecifierStructure, Node } from "ts-morph";
import { ModuleKind, Project, ScriptKind } from "ts-morph";

import type { CommandLogger } from "../../logging.js";
import { BaseCommand } from "./base.js";
import type { CommandLogger } from "../../logging";
import { BaseCommand } from "./base";

import { ApiLevel } from "../apiLevel.js";
import { ApiTag } from "../apiTag.js";
import type { ExportData, Node10CompatExportData } from "../packageExports.js";
import { queryResolutionPathsFromPackageExports } from "../packageExports.js";
import { getApiExports } from "../typescriptApi.js";
import { ApiLevel } from "../apiLevel";
import { ApiTag } from "../apiTag";
import type { ExportData, Node10CompatExportData } from "../packageExports";
import { queryResolutionPathsFromPackageExports } from "../packageExports";
import { getApiExports } from "../typescriptApi";

import { unscopedPackageNameString } from "./constants.js";
import { unscopedPackageNameString } from "./constants";

const optionDefaults = {
mainEntrypoint: "./src/index.ts",
Expand Down
6 changes: 3 additions & 3 deletions build-tools/packages/build-cli/src/library/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT License.
*/

export { BaseCommand } from "./base.js";
export { unscopedPackageNameString } from "./constants.js";
export { BaseCommand } from "./base";
export { unscopedPackageNameString } from "./constants";
export {
GenerateEntrypointsCommand,
getGenerateEntrypointsOutput,
} from "./generateEntrypoints.js";
} from "./generateEntrypoints";
8 changes: 2 additions & 6 deletions build-tools/packages/build-cli/src/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
* Licensed under the MIT License.
*/

export {
ApiLevel,
knownApiLevels,
isKnownApiLevel,
} from "./apiLevel";
export { ApiLevel, knownApiLevels, isKnownApiLevel } from "./apiLevel";
export { ApiTag } from "./apiTag";
export {
generateBumpVersionBranchName,
Expand All @@ -26,7 +22,7 @@ export {
unscopedPackageNameString,
BaseCommand,
GenerateEntrypointsCommand,
} from "./commands/index.js";
} from "./commands";
export { Context, VersionDetails, isMonoRepoKind, MonoRepoKind } from "./context";
export { Repository } from "./git";
export {
Expand Down

0 comments on commit 4a34749

Please sign in to comment.