Skip to content

Commit

Permalink
build: fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Aug 25, 2020
1 parent 2418bbc commit ec7f48b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"dependencies": {
"bytes": "^3.1.0",
"debug": "^4.1.1",
"multiparty": "^4.2.1"
"multiparty": "^4.2.1",
"abort-controller": "^3.0.0",
"node-fetch": "^2.6.0"
},
"devDependencies": {
"@types/bytes": "3.1.0",
Expand All @@ -58,22 +60,20 @@
"@types/supertest": "2.0.10",
"@typescript-eslint/eslint-plugin": "3.1.0",
"@typescript-eslint/parser": "3.1.0",
"abort-controller": "3.0.0",
"aws-sdk": "2.725.0",
"dotenv": "8.2.0",
"eslint": "7.6.0",
"eslint": "7.7.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-promise": "4.2.1",
"express": "4.17.1",
"fastify": "2.15.1",
"google-auth-library": "6.0.1",
"fastify": "3.3.0",
"google-auth-library": "^6.0.0",
"husky": "4.2.5",
"jest": "26.0.1",
"lint-staged": "10.2.7",
"node-fetch": "2.6.0",
"node-mocks-http": "1.8.1",
"prettier": "2.0.5",
"prettier": "2.1.0",
"rimraf": "3.0.2",
"supertest": "4.0.2",
"ts-jest": "26.1.0",
Expand Down
8 changes: 3 additions & 5 deletions scripts/post-build.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import * as fs from 'fs';
const optionalDependencies = {
'abort-controller': '^3.0.0',
const peerDependencies = {
'aws-sdk': '^2.616.0',
'google-auth-library': '^5.9.2',
'node-fetch': '^2.6.0'
'google-auth-library': '^5.9.2'
};
try {
const rootPackage = JSON.parse(fs.readFileSync('package.json', { encoding: 'utf8' }));
Expand All @@ -19,7 +17,7 @@ try {
libPackage.typings = 'types/index.d.ts';
libPackage.main = 'index.js';
libPackage.dependencies = rootPackage.dependencies;
libPackage.optionalDependencies = optionalDependencies;
libPackage.peerDependencies = peerDependencies;
libPackage.engines = rootPackage.engines;
fs.writeFileSync(`dist/package.json`, JSON.stringify(libPackage, undefined, 2));
fs.copyFileSync('LICENSE', `dist/LICENSE`);
Expand Down

0 comments on commit ec7f48b

Please sign in to comment.