Skip to content

Commit

Permalink
remove uneeded deps, fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Nov 3, 2023
1 parent 17e46c3 commit 7732c1d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 274 deletions.
21 changes: 6 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"version": "0.1.0",
"description": "🌸 Self-custodial decentralized deployments",
"type": "module",
"bin": {
"blumen": "./dist/cli.js"
},
"bin": { "blumen": "./dist/cli.js" },
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"repository": {
Expand All @@ -15,30 +13,25 @@
"homepage": "https://github.com/StauroXYZ/blumen",
"scripts": {
"dev": "tsx src/index.ts",
"build": "node ./build.js",
"postbuild": "chmod +x dist/cli.js && tsc --emitDeclarationOnly"
"build": "tsc",
"postbuild": "chmod +x ./dist/cli.js",
"prepublishOnly": "pnpm build"
},
"keywords": [
"ipfs",
"filecoin",
"deploy",
"cli"
"ipfs", "filecoin", "deploy", "cli"
],
"files": [
"dist"
],
"author": "v1rtl <[email protected]>",
"engines": {
"node": ">=16.8"
},
"engines": { "node": ">=16.8" },
"license": "MIT",
"dependencies": {
"@ensdomains/content-hash": "^3.0.0",
"@ipld/car": "^5.2.4",
"@ipld/dag-cbor": "^9.0.6",
"@ipld/unixfs": "^2.1.2",
"@stauro/piggybank": "^0.0.3",
"abitype": "^0.10.2",
"ascii-bar": "^1.0.3",
"cac": "^6.7.14",
"consola": "^3.2.3",
Expand All @@ -57,8 +50,6 @@
"@types/varint": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"esbuild": "^0.19.5",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
}
}
257 changes: 0 additions & 257 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/actions/ens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export const ensAction = async (
if (safeAddress) {
logger.info(`Preparing a transaction for Safe ${safeAddress}`)
const safeWalletClient = walletClient.extend(walletSafeActions(safeAddress))
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const safePublicClient = publicClient.extend(publicSafeActions(safeAddress))

const nonce = await safePublicClient.getSafeNonce()
Expand Down
Empty file modified src/cli.ts
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/providers/estuary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const uploadOnEstuary: UploadFunction = async ({
Accept: 'application/json',
Authorization: `Bearer ${token}`
},
body: cid ? JSON.stringify({ cid, name }) : car
body: cid ? JSON.stringify({ cid, name }) : car as Blob
}
)

Expand Down
2 changes: 1 addition & 1 deletion src/providers/w3s.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const uploadOnW3S: UploadFunction = async ({
Authorization: `Bearer ${token}`,
...(name ? { 'X-NAME': encodeURIComponent(name) } : {})
},
body: car
body: car as Blob
})

const json = await res.json()
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ReadableStream } from 'node:stream/web'
import { Blob } from 'node:buffer'

export interface BlobLike {
/**
Expand Down
1 change: 1 addition & 0 deletions src/utils/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { createDirectoryEncoderStream, CAREncoderStream } from '../ipfs-car/inde
import { Block } from '@ipld/unixfs'
import { writableToWeb } from '../polyfills/toWeb.js'
import { Writable } from 'node:stream'
import { Blob } from 'node:buffer'

const tmp = tmpdir()

Expand Down

0 comments on commit 7732c1d

Please sign in to comment.