diff options
Diffstat (limited to 'packages/server')
-rw-r--r-- | packages/server/package.json | 2 | ||||
-rw-r--r-- | packages/server/src/routes/api/v1/index.ts | 2 | ||||
-rw-r--r-- | packages/server/src/routes/api/v1/repo/branches.ts | 2 | ||||
-rw-r--r-- | packages/server/src/routes/api/v1/repo/index.ts | 2 | ||||
-rw-r--r-- | packages/server/src/routes/api/v1/repo/log.ts | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/packages/server/package.json b/packages/server/package.json index 9026cf4..a29aecc 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -33,7 +33,7 @@ "eslint-plugin-promise": "^5.1.0", "eslint-plugin-tsdoc": "^0.2.14", "nodemon": "^2.0.12", - "shared_types": "^1.0.0", + "api": "^1.0.0", "ts-node": "^10.1.0", "typescript": "^4.3.2" } diff --git a/packages/server/src/routes/api/v1/index.ts b/packages/server/src/routes/api/v1/index.ts index 62ae5d7..9cc20c2 100644 --- a/packages/server/src/routes/api/v1/index.ts +++ b/packages/server/src/routes/api/v1/index.ts @@ -3,7 +3,7 @@ import { Repository } from "../../../git/repository"; import { Route } from "../../../types/fastify"; import repo from "./repo"; import { verifyRepoName } from "../util"; -import { Info as APIInfo, RepositorySummary as APIRepositorySummary, Repository as APIRepository } from "shared_types"; +import { Info as APIInfo, RepositorySummary as APIRepositorySummary, Repository as APIRepository } from "api"; import { BaseError } from "../../../git/error"; function setHandlers(fastify: FastifyInstance): void { diff --git a/packages/server/src/routes/api/v1/repo/branches.ts b/packages/server/src/routes/api/v1/repo/branches.ts index 10ac736..c36463d 100644 --- a/packages/server/src/routes/api/v1/repo/branches.ts +++ b/packages/server/src/routes/api/v1/repo/branches.ts @@ -1,7 +1,7 @@ import { FastifyInstance, FastifyPluginOptions } from "fastify"; import { Branch } from "../../../../git/branch"; import { Route } from "../../../../types/fastify"; -import { BranchSummary as APIBranchSummary, Branch as APIBranch } from "shared_types"; +import { BranchSummary as APIBranchSummary, Branch as APIBranch } from "api"; export default function(fastify: FastifyInstance, opts: FastifyPluginOptions, done: (err?: Error) => void): void { fastify.route<Route>({ diff --git a/packages/server/src/routes/api/v1/repo/index.ts b/packages/server/src/routes/api/v1/repo/index.ts index 395c108..1759a29 100644 --- a/packages/server/src/routes/api/v1/repo/index.ts +++ b/packages/server/src/routes/api/v1/repo/index.ts @@ -8,7 +8,7 @@ import { basename } from "path"; import branches from "./branches"; import log from "./log"; import { verifyRepoName } from "../../util"; -import { Tree as APITree, Tag as APITag, TreeEntry as APITreeEntry } from "shared_types"; +import { Tree as APITree, Tag as APITag, TreeEntry as APITreeEntry } from "api"; import { BaseError } from "../../../../git/error"; import { Tree } from "../../../../git/tree"; diff --git a/packages/server/src/routes/api/v1/repo/log.ts b/packages/server/src/routes/api/v1/repo/log.ts index b05487b..76706b3 100644 --- a/packages/server/src/routes/api/v1/repo/log.ts +++ b/packages/server/src/routes/api/v1/repo/log.ts @@ -3,7 +3,7 @@ import { Commit } from "../../../../git/commit"; import { Patch } from "../../../../git/patch"; import { Route } from "../../../../types/fastify"; import { verifySHA } from "../../util"; -import { LogCommit as APILogCommit, Patch as APIPatch, Commit as APICommit } from "shared_types"; +import { LogCommit as APILogCommit, Patch as APIPatch, Commit as APICommit } from "api"; async function commitMap(commit: Commit) { const stats = await commit.stats(); |