Skip to content

Commit

Permalink
Cleanup dependencies (bluesky-social#410)
Browse files Browse the repository at this point in the history
* cleaning up & deleting unused deps

* oops we were using npm-run-all
  • Loading branch information
dholms authored Dec 14, 2022
1 parent a09483d commit 9598a22
Show file tree
Hide file tree
Showing 12 changed files with 115 additions and 360 deletions.
2 changes: 1 addition & 1 deletion jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// For each one, add them to this list, add them to
// "workspaces.nohoist" in the root package.json, and
// make sure that a babel.config.js is in the package root
const esModules = ['ipld-hashmap', 'get-port', 'node-fetch'].join('|')
const esModules = ['get-port', 'node-fetch'].join('|')

// jestconfig.base.js
module.exports = {
Expand Down
10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,17 @@
"eslint-config-prettier": "^8.5.0",
"jest": "^28.1.2",
"lerna": "^4.0.0",
"nodemon": "^2.0.19",
"npm-run-all": "^4.1.5",
"pino-pretty": "^9.1.0",
"prettier": "^2.7.1",
"prettier-config-standard": "^5.0.0",
"serve-handler": "^6.1.3",
"ts-jest": "^28.0.5",
"ts-node": "^10.8.2",
"tsconfig-paths-jest": "^0.0.1",
"typescript": "^4.8.4",
"wait-on": "^5.3.0"
"typescript": "^4.8.4"
},
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**/ipld-hashmap",
"**/ipld-hashmap/**"
]
}
}
1 change: 0 additions & 1 deletion packages/aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"main": "src/index.ts",
"license": "MIT",
"scripts": {
"start": "ts-node src/run.ts",
"prettier": "prettier --check src/",
"prettier:fix": "prettier --write src/",
"lint": "eslint . --ext .ts,.tsx",
Expand Down
1 change: 0 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
},
"dependencies": {
"@ipld/dag-cbor": "^7.0.3",
"axios": "^0.24.0",
"multiformats": "^9.6.4",
"pino": "^8.6.1",
"zod": "^3.14.2"
Expand Down
4 changes: 1 addition & 3 deletions packages/common/src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { sha256 as blockHasher } from 'multiformats/hashes/sha2'
import * as mf from 'multiformats'
import * as blockCodec from '@ipld/dag-cbor'

export const valueToIpldBlock = async (
data: unknown,
): Promise<Block.Block<unknown>> => {
export const valueToIpldBlock = async (data: unknown) => {
return Block.encode({
value: data,
codec: blockCodec,
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@noble/secp256k1": "^1.7.0",
"@ucans/core": "0.11.0",
"big-integer": "^1.6.51",
"multiformats": "^9.6.4",
"multiformats": "^9.6.4",
"one-webcrypto": "^1.0.3",
"uint8arrays": "3.0.0"
}
Expand Down
3 changes: 0 additions & 3 deletions packages/lex-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@
"dependencies": {
"@atproto/lexicon": "*",
"@atproto/nsid": "*",
"ajv": "^8.11.0",
"ajv-formats": "^2.1.1",
"chalk": "^5.1.1",
"commander": "^9.4.0",
"json-pointer": "^0.6.2",
"ts-morph": "^16.0.0",
"yesno": "^0.4.0"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/pds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@atproto/auth": "*",
"@atproto/common": "*",
"@atproto/crypto": "*",
"@atproto/did-resolver": "*",
"@atproto/handle": "*",
"@atproto/lexicon": "*",
"@atproto/plc": "*",
Expand All @@ -41,13 +42,14 @@
"http-errors": "^2.0.0",
"jsonwebtoken": "^8.5.1",
"kysely": "^0.22.0",
"multiformats": "^9.6.4",
"nodemailer": "^6.8.0",
"nodemailer-html-to-text": "^3.2.0",
"pg": "^8.8.0",
"pino": "^8.6.1",
"pino-http": "^8.2.1",
"sharp": "^0.31.2",
"uint8arrays": "3.0.0",
"zod": "^3.14.2"
"uint8arrays": "3.0.0"
},
"devDependencies": {
"@atproto/api": "*",
Expand All @@ -58,8 +60,6 @@
"@types/nodemailer": "^6.4.6",
"@types/pg": "^8.6.5",
"@types/sharp": "^0.31.0",
"axios": "^0.27.2",
"nodemon": "^2.0.15",
"rimraf": "^3.0.2"
"axios": "^0.27.2"
}
}
1 change: 1 addition & 0 deletions packages/pds/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{ "path": "../auth/tsconfig.build.json" },
{ "path": "../common/tsconfig.build.json" },
{ "path": "../crypto/tsconfig.build.json" },
{ "path": "../did-resolver/tsconfig.build.json" },
{ "path": "../handle/tsconfig.build.json" },
{ "path": "../lexicon/tsconfig.build.json" },
{ "path": "../lex-cli/tsconfig.build.json" },
Expand Down
1 change: 0 additions & 1 deletion packages/repo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@atproto/nsid": "*",
"@ipld/car": "^3.2.3",
"@ipld/dag-cbor": "^7.0.0",
"ipld-hashmap": "^2.1.10",
"multiformats": "^9.6.4",
"uint8arrays": "3.0.0",
"zod": "^3.14.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/repo/src/repo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CID } from 'multiformats/cid'
import { CarWriter } from '@ipld/car'
import { BlockWriter } from '@ipld/car/lib/writer-browser'
import { BlockWriter } from '@ipld/car/writer'
import {
RepoRoot,
Commit,
Expand Down
Loading

0 comments on commit 9598a22

Please sign in to comment.