Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit f54d6b4

Browse files
authored
chore: update aegir (#177)
Updates aegir to the latest version and removes all extraneous boilerplate config
1 parent c999936 commit f54d6b4

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

.aegir.cjs renamed to .aegir.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
module.exports = {
1+
2+
export default {
23
build: {
34
config: {
45
platform: 'node'
56
},
6-
bundlesizeMax: '44KB'
7+
bundlesizeMax: '31KB'
78
}
89
}

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@
125125
]
126126
},
127127
"scripts": {
128+
"clean": "aegir clean",
128129
"lint": "aegir lint",
129-
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
130-
"build": "tsc",
131-
"pretest": "npm run build",
132-
"test": "aegir test -f ./dist/test/*.js -f ./dist/test/**/*.js",
133-
"test:node": "npm run test -- -t node --cov",
134-
"test:electron-main": "npm run test -- -t electron-main",
135-
"release": "semantic-release"
130+
"dep-check": "aegir dep-check",
131+
"build": "aegir build",
132+
"test": "aegir test -t node -t electron-main",
133+
"test:node": "aegir test -t node --cov",
134+
"test:electron-main": "aegir test -t electron-main",
135+
"release": "aegir release"
136136
},
137137
"dependencies": {
138138
"@libp2p/logger": "^1.1.2",
@@ -146,7 +146,7 @@
146146
"devDependencies": {
147147
"@libp2p/interface-compliance-tests": "^1.1.17",
148148
"@libp2p/interfaces": "^1.3.14",
149-
"aegir": "^36.1.3",
149+
"aegir": "^37.0.4",
150150
"it-all": "^1.0.6",
151151
"it-pipe": "^2.0.3",
152152
"sinon": "^13.0.1",

test/connection.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect } from 'aegir/utils/chai.js'
1+
import { expect } from 'aegir/chai'
22
import { TCP } from '../src/index.js'
33
import { Multiaddr } from '@multiformats/multiaddr'
44
import { mockUpgrader } from '@libp2p/interface-compliance-tests/mocks'

test/filter.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect } from 'aegir/utils/chai.js'
1+
import { expect } from 'aegir/chai'
22
import { TCP } from '../src/index.js'
33
import { Multiaddr } from '@multiformats/multiaddr'
44

test/listen-dial.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect } from 'aegir/utils/chai.js'
1+
import { expect } from 'aegir/chai'
22
import { TCP } from '../src/index.js'
33
import os from 'os'
44
import path from 'path'

tsconfig.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"extends": "aegir/src/config/tsconfig.aegir.json",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"emitDeclarationOnly": false,
6-
"module": "ES2020"
4+
"outDir": "dist"
75
},
86
"include": [
97
"src",

0 commit comments

Comments
 (0)