From 37b689fb7e22887b050a6177bf05f9fc304563f9 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Sat, 9 Apr 2022 07:24:25 +0100 Subject: [PATCH] chore: update aegir (#122) Removes boilerplate config --- .aegir.js | 8 ++++++++ package.json | 26 +++++++++++++------------- test/compat/go-multicast-dns.spec.ts | 2 +- test/compat/querier.spec.ts | 2 +- test/compat/responder.spec.ts | 2 +- test/multicast-dns.spec.ts | 2 +- tsconfig.json | 4 +--- 7 files changed, 26 insertions(+), 20 deletions(-) create mode 100644 .aegir.js diff --git a/.aegir.js b/.aegir.js new file mode 100644 index 0000000..4c82ade --- /dev/null +++ b/.aegir.js @@ -0,0 +1,8 @@ +/** @type {import('aegir').PartialOptions} */ +export default { + build: { + config: { + platform: 'node' + } + } +} diff --git a/package.json b/package.json index 24b51be..eed1f1e 100644 --- a/package.json +++ b/package.json @@ -119,28 +119,28 @@ ] }, "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: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 -t node", + "test:node": "aegir test -t node --cov", + "test:electron-main": "aegir test -t electron-main", + "release": "aegir release" }, "dependencies": { - "@libp2p/logger": "^1.1.2", - "@libp2p/peer-id": "^1.1.8", + "@libp2p/logger": "^1.1.3", + "@libp2p/peer-id": "^1.1.9", "@multiformats/multiaddr": "^10.1.5", "multicast-dns": "^7.2.0", "multiformats": "^9.6.3" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^1.1.20", - "@libp2p/interfaces": "^1.3.18", - "@libp2p/peer-id-factory": "^1.0.8", + "@libp2p/interface-compliance-tests": "^1.1.21", + "@libp2p/interfaces": "^1.3.20", + "@libp2p/peer-id-factory": "^1.0.9", "@types/multicast-dns": "^7.2.1", - "aegir": "^36.1.3", + "aegir": "^37.0.8", "delay": "^5.0.0", "p-defer": "^4.0.0", "p-wait-for": "^4.1.0", diff --git a/test/compat/go-multicast-dns.spec.ts b/test/compat/go-multicast-dns.spec.ts index 696c055..a31b3b0 100644 --- a/test/compat/go-multicast-dns.spec.ts +++ b/test/compat/go-multicast-dns.spec.ts @@ -1,5 +1,5 @@ /* eslint-env mocha */ -import { expect } from 'aegir/utils/chai.js' +import { expect } from 'aegir/chai' import { Multiaddr } from '@multiformats/multiaddr' import { createEd25519PeerId } from '@libp2p/peer-id-factory' import pDefer from 'p-defer' diff --git a/test/compat/querier.spec.ts b/test/compat/querier.spec.ts index 292eadb..3869a8d 100644 --- a/test/compat/querier.spec.ts +++ b/test/compat/querier.spec.ts @@ -1,5 +1,5 @@ /* eslint-env mocha */ -import { expect } from 'aegir/utils/chai.js' +import { expect } from 'aegir/chai' import { createEd25519PeerId } from '@libp2p/peer-id-factory' import MDNS, { QueryPacket } from 'multicast-dns' import OS from 'os' diff --git a/test/compat/responder.spec.ts b/test/compat/responder.spec.ts index d0b0452..74b3330 100644 --- a/test/compat/responder.spec.ts +++ b/test/compat/responder.spec.ts @@ -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 { createEd25519PeerId } from '@libp2p/peer-id-factory' import mDNS from 'multicast-dns' diff --git a/test/multicast-dns.spec.ts b/test/multicast-dns.spec.ts index 147090a..f4d5531 100644 --- a/test/multicast-dns.spec.ts +++ b/test/multicast-dns.spec.ts @@ -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 { createEd25519PeerId } from '@libp2p/peer-id-factory' import pWaitFor from 'p-wait-for' diff --git a/tsconfig.json b/tsconfig.json index f296f99..13a3599 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,7 @@ { "extends": "aegir/src/config/tsconfig.aegir.json", "compilerOptions": { - "outDir": "dist", - "emitDeclarationOnly": false, - "module": "ES2020" + "outDir": "dist" }, "include": [ "src",