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

Commit

Permalink
chore: update aegir (#39)
Browse files Browse the repository at this point in the history
Updates to the latest aegir, removes boilerplate config that's now been pushed into aegir.
  • Loading branch information
achingbrain authored Apr 7, 2022
1 parent 3ec5ad1 commit 34f1fde
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pids

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
.nyc_output

# Coverage directory used by tools like istanbul
coverage
Expand Down
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,18 @@
]
},
"scripts": {
"clean": "aegir clean",
"lint": "aegir lint",
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
"build": "tsc",
"pretest": "npm run build",
"test": "aegir test -f ./dist/test/*.js -f ./dist/test/**/*.js",
"test:chrome": "npm run test -- -t browser --cov",
"test:chrome-webworker": "npm run test -- -t webworker",
"test:firefox": "npm run test -- -t browser -- --browser firefox",
"test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox",
"test:node": "npm run test -- -t node --cov",
"test:electron-main": "npm run test -- -t electron-main",
"release": "semantic-release"
"dep-check": "aegir dep-check",
"build": "aegir build",
"test": "aegir test",
"test:chrome": "aegir test -t browser --cov",
"test:chrome-webworker": "aegir test -t webworker",
"test:firefox": "aegir test -t browser -- --browser firefox",
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
"test:node": "aegir test -t node --cov",
"test:electron-main": "aegir test -t electron-main",
"release": "aegir release"
},
"dependencies": {
"@achingbrain/ip-address": "^8.1.0",
Expand All @@ -177,13 +177,16 @@
"err-code": "^3.0.1",
"is-loopback-addr": "^2.0.1",
"it-stream-types": "^1.0.4",
"private-ip": "^2.1.1"
"private-ip": "^2.1.1",
"ts-mocha": "^9.0.2",
"ts-node": "^10.7.0"
},
"devDependencies": {
"@libp2p/interfaces": "^1.0.3",
"aegir": "^36.1.2",
"aegir": "^37.0.4",
"it-all": "^1.0.6",
"it-pair": "^2.0.2",
"it-pipe": "^2.0.2"
"it-pipe": "^2.0.2",
"uint8arrays": "^3.0.0"
}
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {}
2 changes: 1 addition & 1 deletion test/address-sort.spec.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 { Multiaddr } from '@multiformats/multiaddr'
import { publicAddressesFirst } from '../src/address-sort.js'

Expand Down
2 changes: 1 addition & 1 deletion test/array-equals.spec.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 { Multiaddr } from '@multiformats/multiaddr'
import { arrayEquals } from '../src/array-equals.js'

Expand Down
2 changes: 1 addition & 1 deletion test/ip-port-to-multiaddr.spec.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 { ipPortToMultiaddr, Errors } from '../src/ip-port-to-multiaddr.js'

describe('IP and port to Multiaddr', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/multiaddr/is-loopback.spec.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 { Multiaddr } from '@multiformats/multiaddr'
import { isLoopback } from '../../src/multiaddr/is-loopback.js'

Expand Down
2 changes: 1 addition & 1 deletion test/multiaddr/is-private.spec.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 { Multiaddr } from '@multiformats/multiaddr'
import { isPrivate } from '../../src/multiaddr/is-private.js'

Expand Down
2 changes: 1 addition & 1 deletion test/stream-to-ma-conn.spec.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 { pair } from 'it-pair'
import { pipe } from 'it-pipe'
import { Multiaddr } from '@multiformats/multiaddr'
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"extends": "aegir/src/config/tsconfig.aegir.json",
"compilerOptions": {
"outDir": "dist",
"emitDeclarationOnly": false,
"module": "ES2020"
"outDir": "dist"
},
"include": [
"src",
Expand Down

0 comments on commit 34f1fde

Please sign in to comment.