@tsed/apollo 7.18.3-rc.1 → 7.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import type { ApolloServerBase, Config, ApolloServerPluginLandingPageGraphQLPlaygroundOptions } from "apollo-server-core";
2
- export declare type ApolloMiddlewareOptions = Record<string, any>;
3
- export declare type ApolloServer = ApolloServerBase & {
2
+ export type ApolloMiddlewareOptions = Record<string, any>;
3
+ export type ApolloServer = ApolloServerBase & {
4
4
  getMiddleware(settings: ApolloMiddlewareOptions): any;
5
5
  };
6
- export declare type ApolloCustomServerCB = (config: ApolloConfig) => ApolloServer;
7
- export declare type ApolloConfig = Config;
6
+ export type ApolloCustomServerCB = (config: ApolloConfig) => ApolloServer;
7
+ export type ApolloConfig = Config;
8
8
  export interface ApolloSettings extends ApolloConfig {
9
9
  path: string;
10
10
  server?: ApolloCustomServerCB;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/apollo",
3
- "version": "7.18.3-rc.1",
3
+ "version": "7.18.3",
4
4
  "description": "Apollo package for Ts.ED framework",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
@@ -13,21 +13,24 @@
13
13
  "default": "./lib/esm/index.js"
14
14
  },
15
15
  "scripts": {
16
- "build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
17
- "build:cjs": "tsc --build tsconfig.compile.json",
18
- "build:esm": "tsc --build tsconfig.compile.esm.json",
16
+ "build": "yarn barrels && yarn build:ts",
19
17
  "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
20
- "test": "cross-env NODE_ENV=test jest"
18
+ "test": "cross-env NODE_ENV=test jest && jest-coverage-thresholds-bumper",
19
+ "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
20
+ "lint": "eslint '**/*.{ts,js}'",
21
+ "lint:fix": "eslint '**/*.{ts,js}' --fix"
21
22
  },
22
23
  "dependencies": {
23
- "tslib": "2.4.0"
24
+ "tslib": "2.5.0"
24
25
  },
25
26
  "private": false,
26
27
  "devDependencies": {
27
- "@tsed/common": "7.18.3-rc.1",
28
- "@tsed/core": "7.18.3-rc.1",
29
- "@tsed/di": "7.18.3-rc.1",
28
+ "@tsed/common": "7.18.3",
29
+ "@tsed/core": "7.18.3",
30
+ "@tsed/di": "7.18.3",
31
+ "@tsed/eslint": "7.18.3",
30
32
  "@tsed/logger": ">=6.2.2",
33
+ "@tsed/typescript": "7.18.3",
31
34
  "@types/graphql": "14.5.0",
32
35
  "apollo-datasource": "^3.2.0",
33
36
  "apollo-datasource-rest": "^3.3.0",
@@ -35,12 +38,13 @@
35
38
  "apollo-server-express": "^3.4.0",
36
39
  "apollo-server-koa": "^3.4.0",
37
40
  "apollo-server-testing": "^2.25.2",
41
+ "eslint": "^8.12.0",
38
42
  "graphql": "15.7.2"
39
43
  },
40
44
  "peerDependencies": {
41
- "@tsed/common": "^7.18.3-rc.1",
42
- "@tsed/core": "^7.18.3-rc.1",
43
- "@tsed/di": "^7.18.3-rc.1",
45
+ "@tsed/common": "^7.18.3",
46
+ "@tsed/core": "^7.18.3",
47
+ "@tsed/di": "^7.18.3",
44
48
  "@tsed/logger": ">=6.2.2",
45
49
  "apollo-datasource": ">=3.0.0",
46
50
  "apollo-datasource-rest": ">=3.0.0",
@@ -53,8 +57,5 @@
53
57
  },
54
58
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/graphql/apollo",
55
59
  "author": "Romain Lenzotti",
56
- "license": "MIT",
57
- "publishConfig": {
58
- "tag": "rc"
59
- }
60
+ "license": "MIT"
60
61
  }
@@ -0,0 +1,39 @@
1
+ {
2
+ "extends": "@tsed/typescript/tsconfig.node.json",
3
+ "compilerOptions": {
4
+ "baseUrl": ".",
5
+ "module": "ES2020",
6
+ "rootDir": "src",
7
+ "outDir": "./lib/esm",
8
+ "declaration": true,
9
+ "declarationDir": "./lib/types",
10
+ "composite": true,
11
+ "noEmit": false
12
+ },
13
+ "include": ["src", "src/**/*.json"],
14
+ "exclude": [
15
+ "node_modules",
16
+ "test",
17
+ "lib",
18
+ "benchmark",
19
+ "coverage",
20
+ "spec",
21
+ "**/*.benchmark.ts",
22
+ "**/*.spec.ts",
23
+ "keys",
24
+ "jest.config.js",
25
+ "**/__mock__/**",
26
+ "webpack.config.js"
27
+ ],
28
+ "references": [
29
+ {
30
+ "path": "../../platform/common"
31
+ },
32
+ {
33
+ "path": "../../core"
34
+ },
35
+ {
36
+ "path": "../../di"
37
+ }
38
+ ]
39
+ }
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "./tsconfig.compile.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "module": "ES2020",
6
- "rootDir": "src",
7
- "outDir": "./lib/esm",
8
- "declaration": true,
9
- "declarationDir": "./lib/types"
10
- },
11
- "exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
12
- }