Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
chore: update deps (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Apr 15, 2021
1 parent 929ab13 commit 5aa1202
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
22 changes: 17 additions & 5 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
'use strict'

const path = require('path')

/** @type {import('aegir').Options["build"]["config"]} */
const esbuild = {
inject: [path.join(__dirname, './scripts/node-globals.js')]
}

/** @type {import('aegir').PartialOptions} */
module.exports = {
webpack: {
node: {
// this is needed until level stops using node buffers in browser code
Buffer: true
build: {
bundlesizeMax: '65KB'
},
test: {
browser: {
config: {
buildConfig: esbuild
}
}
}
}
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@
"homepage": "https://github.com/ipfs/js-datastore-level#readme",
"dependencies": {
"datastore-core": "^3.0.0",
"interface-datastore": "^3.0.3",
"interface-datastore": "^3.0.6",
"level": "^6.0.1"
},
"devDependencies": {
"aegir": "^30.3.0",
"aegir": "^33.1.0",
"assert": "^2.0.0",
"buffer": "^6.0.3",
"chai": "^4.2.0",
"cids": "^1.1.5",
"dirty-chai": "^2.0.1",
"level-mem": "^5.0.1",
"rimraf": "^3.0.0"
"rimraf": "^3.0.0",
"util": "^0.12.3"
},
"eslintConfig": {
"extends": "ipfs"
Expand Down
2 changes: 2 additions & 0 deletions scripts/node-globals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// @ts-nocheck
export const { Buffer } = require('buffer')

0 comments on commit 5aa1202

Please sign in to comment.