Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: convert to TypeScript and update Kubo #221

Merged
merged 9 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 4 additions & 7 deletions .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@ import EchoServer from 'aegir/echo-server'
/** @type {import('aegir').PartialOptions} */
export default {
build: {
bundlesizeMax: '66KB'
bundlesizeMax: '42KB'
},
test: {
bail: false,
/**
*
* @param {Parameters<import('aegir').Options['test']['before']>[0]} options
* @returns {Promise<BeforeType>}
*/
async before (options) {
const { PinningService } = await import('./test/utils/mock-pinning-service.js')
const { PinningService } = await import('./dist/test/utils/mock-pinning-service.js')
const pinningService = await PinningService.start()
const server = createServer({
port: 0
}, {
type: 'go',
kuboRpcModule: await import('./src/index.js'),
ipfsBin: (await import('go-ipfs')).default.path()
kuboRpcModule: await import('./dist/src/index.js'),
ipfsBin: (await import('kubo')).default.path()
})

const echoServer = new EchoServer()
Expand All @@ -43,7 +41,6 @@ export default {
echoServer,
pinningService,
env: {
NODE_OPTIONS: '--no-experimental-fetch',
IPFSD_SERVER: `http://${server.host}:${server.server.info.port}`,
PINNING_SERVICE_ENDPOINT: pinningService.endpoint,
PINNING_SERVICE_KEY: 'secret',
Expand Down
Loading
Loading