Skip to content

Commit

Permalink
removed unneccesary packages, added needed ones (#1010)
Browse files Browse the repository at this point in the history
* removed unneccesary packages, added needed ones

* removed winston-papertrail from package.json

* removed got from package.json

* added depcheck as a dev dependency

* added --ignores=depcheck to ci.yml

* no message if depcheck doesn't flag anything

---------

Co-authored-by: Gabriel Fosse <[email protected]>
  • Loading branch information
majesticio and Gabriel Fosse authored May 5, 2023
1 parent 6c09adb commit 6778a10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,17 @@ jobs:
- name: run depcheck
id: rundepcheck
run: |
DEPCHECK=$(npx depcheck --json) || true
DEPCHECK=$(npx depcheck --ignores=depcheck --json) || true
echo "DEPCHECK_RESULT=$DEPCHECK" >> $GITHUB_ENV
- name: Generate PR comment
id: generate_pr_comment
run: |
COMMENT=$(bash ./scripts/process_depcheck_output.sh "$DEPCHECK_RESULT")
echo "PR_COMMENT=$COMMENT" >> $GITHUB_ENV
- name: Comment PR
if: env.PR_COMMENT != ''
uses: thollander/actions-comment-pull-request@v2
with:
message: |
results:
${{ env.PR_COMMENT }}
16 changes: 3 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@
"dependencies": {
"@aws-sdk/client-s3": "^3.67.0",
"@aws-sdk/client-sqs": "^3.78.0",
"@babel/node": "^7.16.8",
"JSONStream": "^1.3.4",
"adm-zip": "^0.4.11",
"async": "^3.2.3",
"aws-sdk": "^2.1112.0",
"babel-register": "^6.26.0",
"bottleneck": "^2.19.5",
"byline": "^5.0.0",
"cheerio": "^1.0.0-rc.2",
"coordinate-parser": "^1.0.2",
"core-js": "^3.21.1",
"csv-parse": "^5.0.4",
"ftp": "^0.3.10",
"iconv": "^3.0.1",
"jsonschema": "^1.2.0",
"knex": "^1.0.6",
"knex-postgis": "^0.14.3",
"lodash": "^4.17.10",
"luxon": "^3.0.4",
"moment": "^2.29.2",
Expand All @@ -38,35 +37,26 @@
"node-html-parser": "^6.1.5",
"proj4": "^2.8.0",
"proj4js-defs": "0.0.1",
"querystring": "^0.2.1",
"request": "^2.88.0",
"request-promise-native": "^1.0.5",
"require-dir": "^1.0.0",
"rss-parser": "^3.12.0",
"s3-upload-stream": "^1.0.7",
"scramjet": "^4.36.6",
"ssl-root-cas": "^1.3.1",
"transliteration": "^1.6.6",
"tz-lookup": "^6.1.8",
"wellknown": "^0.5.0",
"winston": "^3.7.2",
"winston-papertrail": "^1.0.2",
"yargs": "^17.4.1"
},
"devDependencies": {
"@babel/core": "^7.17.9",
"@babel/preset-env": "^7.16.11",
"@babel/register": "^7.17.7",
"@babel/runtime": "^7.17.9",
"chai": "^4.1.2",
"eslint": "^8.13.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-standard": "^5.0.0",
"mocha": "^9.2.2",
"pg": "^8.7.3",
"shell-escape": "^0.2.0"
"mocha": "^9.2.2"
}
}

0 comments on commit 6778a10

Please sign in to comment.