Skip to content

Commit 10cd9ed

Browse files
Moved types-only files to the "types" directory
1 parent de7f2be commit 10cd9ed

11 files changed

Lines changed: 14 additions & 14 deletions

src/cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// tslint:disable: no-console
22
import { success } from "log-symbols";
33
import { manifest } from "../manifest";
4+
import { ProgressEvent, VersionBumpProgress } from "../types/version-bump-progress";
45
import { versionBump } from "../version-bump";
5-
import { ProgressEvent, VersionBumpProgress } from "../version-bump-progress";
66
import { ExitCode } from "./exit-code";
77
import { helpText } from "./help";
88
import { parseArgs } from "./parse-args";

src/cli/parse-args.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as commandLineArgs from "command-line-args";
33
import * as semver from "semver";
44
import { isReleaseType } from "../release-type";
5-
import { VersionBumpOptions } from "../version-bump-options";
5+
import { VersionBumpOptions } from "../types/version-bump-options";
66
import { ExitCode } from "./exit-code";
77
import { helpText } from "./help";
88

src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as ezSpawn from "ez-spawn";
22
import { Operation } from "./operation";
3-
import { ProgressEvent } from "./version-bump-progress";
3+
import { ProgressEvent } from "./types/version-bump-progress";
44

55
/**
66
* Commits the modififed files to Git, if the `commit` option is enabled.

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { versionBump } from "./version-bump";
33

44
// Exprot the external type definitions as named exports
55
export { ReleaseType } from "./release-type";
6-
export * from "./version-bump-options";
7-
export * from "./version-bump-results";
8-
export * from "./version-bump-progress";
6+
export * from "./types/version-bump-options";
7+
export * from "./types/version-bump-results";
8+
export * from "./types/version-bump-progress";
99

1010
// Export `versionBump` as a named export and the default export
1111
export { versionBump };

src/normalize-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as globby from "globby";
22
import { isReleaseType, ReleaseType } from "./release-type";
3-
import { VersionBumpOptions } from "./version-bump-options";
3+
import { VersionBumpOptions } from "./types/version-bump-options";
44

55
interface Interface {
66
input?: NodeJS.ReadableStream | NodeJS.ReadStream | false;

src/operation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { NormalizedOptions, normalizeOptions } from "./normalize-options";
22
import { ReleaseType } from "./release-type";
3-
import { VersionBumpOptions } from "./version-bump-options";
4-
import { ProgressEvent, VersionBumpProgress } from "./version-bump-progress";
5-
import { VersionBumpResults } from "./version-bump-results";
3+
import { VersionBumpOptions } from "./types/version-bump-options";
4+
import { ProgressEvent, VersionBumpProgress } from "./types/version-bump-progress";
5+
import { VersionBumpResults } from "./types/version-bump-results";
66

77
type ProgressCallback = (progress: VersionBumpProgress) => void;
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReleaseType } from "./release-type";
1+
import { ReleaseType } from "../release-type";
22

33
/**
44
* Information about the work that was performed by the `versionBump()` function.

src/update-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as path from "path";
22
import { readJsonFile, readTextFile, writeJsonFile, writeTextFile } from "./fs";
33
import { isManifest } from "./manifest";
44
import { Operation } from "./operation";
5-
import { ProgressEvent } from "./version-bump-progress";
5+
import { ProgressEvent } from "./types/version-bump-progress";
66

77
/**
88
* Updates the version number in the specified files.

0 commit comments

Comments
 (0)