Skip to content

Commit

Permalink
Merge pull request #1151 from serlo/remove-types-package
Browse files Browse the repository at this point in the history
chore: Remove `@serlo/api`
  • Loading branch information
hugotiburtino authored Dec 1, 2023
2 parents 2a34c4b + 070d4df commit fc12961
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 2,914 deletions.
8 changes: 0 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@ updates:
directory: 'packages/authorization'
schedule:
interval: 'weekly'
- package-ecosystem: 'npm'
directory: 'packages/graphql-modules'
schedule:
interval: 'weekly'
- package-ecosystem: 'npm'
directory: 'packages/server'
schedule:
interval: 'weekly'
- package-ecosystem: 'npm'
directory: 'packages/types'
schedule:
interval: 'weekly'

- package-ecosystem: 'docker'
directory: 'packages/server/docker/server'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/schema/entity/checkout-revision.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Instance } from '@serlo/api'
import gql from 'graphql-tag'
import { HttpResponse } from 'msw'

Expand All @@ -10,6 +9,7 @@ import {
} from '../../../__fixtures__'
import { getTypenameAndId, nextUuid, given, Client } from '../../__utils__'
import { encodeSubjectId } from '~/schema/subject/utils'
import { Instance } from '~/types'

const user = { ...baseUser, roles: ['de_reviewer'] }
const article = {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/schema/entity/reject-revision.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Instance } from '@serlo/api'
import gql from 'graphql-tag'
import { HttpResponse } from 'msw'

Expand All @@ -10,6 +9,7 @@ import {
} from '../../../__fixtures__'
import { given, getTypenameAndId, nextUuid, Client } from '../../__utils__'
import { encodeSubjectId } from '~/schema/subject/utils'
import { Instance } from '~/types'

const user = { ...baseUser, roles: ['de_reviewer'] }
const article = {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/schema/metadata.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Instance } from '@serlo/api'
import gql from 'graphql-tag'

import { Client, given } from '../__utils__'
import { Instance } from '~/types'

test('endpoint `publisher` returns publisher', async () => {
await new Client()
Expand Down
2 changes: 1 addition & 1 deletion __tests__/schema/page/checkout-revision.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Instance } from '@serlo/api'
import gql from 'graphql-tag'
import { HttpResponse } from 'msw'

Expand All @@ -8,6 +7,7 @@ import {
user as baseUser,
} from '../../../__fixtures__'
import { given, nextUuid, Client } from '../../__utils__'
import { Instance } from '~/types'

const user = { ...baseUser, roles: ['de_static_pages_builder'] }
const page = {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/schema/page/reject-revision.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Instance } from '@serlo/api'
import gql from 'graphql-tag'
import { HttpResponse } from 'msw'

Expand All @@ -8,6 +7,7 @@ import {
user as baseUser,
} from '../../../__fixtures__'
import { given, nextUuid, Client } from '../../__utils__'
import { Instance } from '~/types'

const user = { ...baseUser, roles: ['de_static_pages_builder'] }
const page = {
Expand Down
7 changes: 0 additions & 7 deletions packages/graphql-modules/index.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/graphql-modules/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/server/docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ COPY scripts/build.ts scripts/build.ts
COPY tsconfig.json .
COPY tsconfig.prod.json .
COPY packages/authorization/package.json packages/authorization/package.json
COPY packages/graphql-modules/package.json packages/graphql-modules/package.json
COPY packages/server/package.json packages/server/package.json
COPY packages/types/package.json packages/types/package.json
COPY package.json .
COPY lerna.json .
COPY yarn.lock .
Expand All @@ -17,8 +15,6 @@ FROM base as build_dist
RUN yarn --immutable --immutable-cache --silent
COPY packages/authorization packages/authorization
COPY packages/server packages/server
COPY packages/graphql-modules packages/graphql-modules
COPY packages/types packages/types
RUN yarn build:server

FROM base as build_node_modules
Expand Down
4 changes: 0 additions & 4 deletions packages/server/docker/swr-queue-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ COPY scripts/build.ts scripts/build.ts
COPY tsconfig.json .
COPY tsconfig.prod.json .
COPY packages/authorization/package.json packages/authorization/package.json
COPY packages/graphql-modules/package.json packages/graphql-modules/package.json
COPY packages/server/package.json packages/server/package.json
COPY packages/types/package.json packages/types/package.json
COPY package.json .
COPY lerna.json .
COPY yarn.lock .
Expand All @@ -17,8 +15,6 @@ FROM base as build_dist
RUN yarn --immutable --immutable-cache --silent
COPY packages/authorization packages/authorization
COPY packages/server packages/server
COPY packages/graphql-modules packages/graphql-modules
COPY packages/types packages/types
RUN yarn build:swr-queue-worker

FROM base as build_node_modules
Expand Down
1 change: 0 additions & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@serlo/authorization": "^0.59.1",
"@types/basic-auth": "^1.1.6",
"@types/bull-arena": "^3.0.10",
"@types/graphql-modules": "^0.59.0",
"@types/jsonwebtoken": "^9.0.5",
"@types/pg": "^8.10.9",
"@types/ramda": "^0.29.9",
Expand Down
8 changes: 8 additions & 0 deletions packages/server/src/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@
declare module '*.json' {
export const version: string
}

declare module '*.graphql' {
import { DocumentNode } from 'graphql'

const node: DocumentNode
// eslint-disable-next-line import/no-default-export
export default node
}
11 changes: 0 additions & 11 deletions packages/types/codegen.yml

This file was deleted.

23 changes: 0 additions & 23 deletions packages/types/package.json

This file was deleted.

Loading

0 comments on commit fc12961

Please sign in to comment.