Skip to content

Commit 119c73c

Browse files
committed
fix build process
1 parent 20d0f64 commit 119c73c

File tree

6 files changed

+24
-19
lines changed

6 files changed

+24
-19
lines changed

packages/graphql-authentication-prisma/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
],
1414
"license": "ISC",
1515
"private": false,
16-
"main": "dist/src/index.js",
17-
"typings": "dist/src/index.d.ts",
16+
"main": "dist/index.js",
17+
"typings": "dist/index.d.ts",
1818
"engines": {
1919
"node": ">=8.0"
2020
},

packages/graphql-authentication-prisma/tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"extends": "./tsconfig",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4+
"rootDir": "src",
45
"outDir": "dist"
56
},
67
"include": ["src/index.ts"]

packages/graphql-authentication/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
],
1313
"license": "ISC",
1414
"private": false,
15-
"main": "dist/src/index.js",
16-
"typings": "dist/src/index.d.ts",
15+
"main": "dist/index.js",
16+
"typings": "dist/index.d.ts",
1717
"engines": {
1818
"node": ">=8.0"
1919
},

packages/graphql-authentication/tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"extends": "./tsconfig",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4+
"rootDir": "src",
45
"outDir": "dist"
56
},
67
"include": ["src/index.ts"]

tsconfig.base.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2017",
4+
"module": "commonjs",
5+
"declaration": true,
6+
"lib": ["esnext"],
7+
"strict": true,
8+
// Disabled because this doesn't work correctly with "declaration": true
9+
"noUnusedLocals": false,
10+
"noImplicitAny": false,
11+
"forceConsistentCasingInFileNames": true,
12+
"allowSyntheticDefaultImports": true
13+
}
14+
}

tsconfig.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
{
2+
"extends": "./tsconfig.base.json",
23
"compilerOptions": {
34
"baseUrl": "./packages",
45
"paths": {
56
"graphql-authentication": ["./graphql-authentication/src"]
6-
},
7-
"target": "ES2017",
8-
"module": "commonjs",
9-
"declaration": true,
10-
"lib": ["esnext"],
11-
"strict": true,
12-
// Disabled because Prisma generated TypeScript code which is not compatible with this flag
13-
"strictFunctionTypes": false,
14-
// Disabled because this doesn't work correctly with "declaration": true
15-
"noUnusedLocals": false,
16-
"noImplicitAny": false,
17-
"forceConsistentCasingInFileNames": true,
18-
"allowSyntheticDefaultImports": true
7+
}
198
}
209
}

0 commit comments

Comments
 (0)