Skip to content

Commit

Permalink
chore: update aegir (#62)
Browse files Browse the repository at this point in the history
Updates to the latest aegir and removes boilerplate config
  • Loading branch information
achingbrain authored Apr 7, 2022
1 parent 5a2de58 commit 8ab1097
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 16 deletions.
9 changes: 9 additions & 0 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

export default {
build: {
config: {
platform: 'node'
},
bundlesizeMax: '31KB'
}
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,12 @@
]
},
"scripts": {
"clean": "aegir clean",
"lint": "aegir lint",
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
"build": "tsc",
"dep-check": "aegir dep-check",
"build": "aegir build",
"postbuild": "cp src/resources/keys/*.key dist/src/resources/keys",
"release": "semantic-release"
"release": "aegir release"
},
"dependencies": {
"@libp2p/daemon-client": "^0.0.2",
Expand All @@ -138,9 +139,9 @@
"uint8arrays": "^3.0.0"
},
"peerDependencies": {
"aegir": "^36.0.0"
"aegir": "^37.0.4"
},
"devDependencies": {
"aegir": "^36.0.0"
"aegir": "^37.0.4"
}
}
2 changes: 1 addition & 1 deletion src/connect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import type { Daemon, NodeType, SpawnOptions, DaemonFactory, PeerIdType } from './index.js'
import { keys } from './resources/keys/index.js'

Expand Down
2 changes: 1 addition & 1 deletion src/dht/content-fetching.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
Expand Down
2 changes: 1 addition & 1 deletion src/dht/content-routing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import { CID } from 'multiformats/cid'
import all from 'it-all'
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
Expand Down
2 changes: 1 addition & 1 deletion src/dht/peer-routing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import pRetry from 'p-retry'
import type { PeerInfo } from '@libp2p/interfaces/peer-info'
Expand Down
2 changes: 1 addition & 1 deletion src/pubsub/floodsub.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import first from 'it-first'
Expand Down
2 changes: 1 addition & 1 deletion src/pubsub/gossipsub.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import first from 'it-first'
Expand Down
2 changes: 1 addition & 1 deletion src/pubsub/hybrid.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */

import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import first from 'it-first'
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"extends": "aegir/src/config/tsconfig.aegir.json",
"compilerOptions": {
"outDir": "dist",
"emitDeclarationOnly": false,
"module": "ES2020",
"lib": ["ES2021", "ES2021.Promise", "ES2021.String", "ES2020.BigInt", "DOM", "DOM.Iterable"],
"outDir": "dist"
},
"include": [
"src"
Expand Down

0 comments on commit 8ab1097

Please sign in to comment.