Skip to content
This repository was archived by the owner on May 17, 2025. It is now read-only.

Commit 2ee2af3

Browse files
committed
fix: deps management
- Move some stuff to peerdeps. - bring in the graphql-ws stuff instead of using it as a dep
1 parent eb19142 commit 2ee2af3

File tree

3 files changed

+117
-24
lines changed

3 files changed

+117
-24
lines changed

package-lock.json

Lines changed: 91 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,32 @@
3434
"dependencies": {
3535
"@aws/dynamodb-data-mapper": "^0.7.3",
3636
"@aws/dynamodb-data-mapper-annotations": "^0.7.3",
37-
"@aws/dynamodb-expressions": "^0.7.3",
38-
"@types/aws-lambda": "^8.10.81",
39-
"aws-sdk": "^2.963.0",
40-
"graphql": "^15.5.1",
41-
"graphql-ws": "^5.3.0"
37+
"@aws/dynamodb-expressions": "^0.7.3"
38+
},
39+
"peerDependencies": {
40+
"aws-sdk": ">= 2.844.0",
41+
"graphql": ">= 14.0.0"
4242
},
4343
"devDependencies": {
4444
"@microsoft/api-extractor": "^7.18.4",
45+
"@types/aws-lambda": "^8.10.81",
4546
"@types/chai": "^4.2.19",
4647
"@types/mocha": "^8.2.2",
4748
"@types/node": "^15.12.4",
4849
"@typescript-eslint/eslint-plugin": "^4.27.0",
4950
"@typescript-eslint/parser": "^4.27.0",
51+
"aws-sdk": ">= 2.844.0",
5052
"chai": "^4.3.4",
5153
"eslint": "^7.29.0",
54+
"graphql": ">= 14.0.0",
55+
"graphql-ws": "^5.3.0",
5256
"mocha": "^9.0.1",
5357
"rollup": "^2.56.0",
5458
"rollup-plugin-node-resolve": "^5.2.0",
59+
"semantic-release": "^17.4.4",
5560
"ts-eager": "^2.0.2",
56-
"typescript": "^4.3.5",
57-
"semantic-release": "^17.4.4"
61+
"tslib": "^2.3.0",
62+
"typescript": "^4.3.5"
5863
},
5964
"mocha": {
6065
"bail": true,

rollup.config.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,18 @@ export default {
99
{ format: 'esm', file: './dist/index-esm.mjs' },
1010
{ format: 'cjs', file: './dist/index.js' },
1111
],
12-
external: ['aws-sdk', '@aws/dynamodb-data-mapper', '@aws/dynamodb-data-mapper-annotations', '@aws/dynamodb-expressions', 'graphql', 'graphql-ws', 'graphql/execution/execute', 'tslib'],
12+
external: [
13+
// peer deps
14+
'aws-sdk',
15+
'graphql',
16+
'graphql/execution/execute',
17+
// actual deps
18+
'@aws/dynamodb-data-mapper',
19+
'@aws/dynamodb-data-mapper-annotations',
20+
'@aws/dynamodb-expressions',
21+
// dep from ts while we're using these decorator stuff, want to include it
22+
// 'tslib',
23+
// we only use a string and types from this package so lets import it
24+
// 'graphql-ws',
25+
],
1326
}

0 commit comments

Comments
 (0)