Skip to content

Commit f565025

Browse files
committed
Remove baseUrl option from auth-provider-automerge-repo package and fix types
1 parent 1b8f4c0 commit f565025

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

packages/auth-provider-automerge-repo/src/AnonymousConnection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { type Message } from '@automerge/automerge-repo'
22
import { debug } from '@localfirst/shared'
3-
import { AbstractConnection, type StateValue } from 'AbstractConnection.js'
3+
import { AbstractConnection, type StateValue } from './AbstractConnection.js'
44
import { pack, unpack } from 'msgpackr'
5-
import { type ShareId } from 'types.js'
5+
import { type ShareId } from './types.js'
66

77
export class AnonymousConnection extends AbstractConnection {
88
readonly #log: debug.Debugger

packages/auth-provider-automerge-repo/src/AuthProvider.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import { EventEmitter } from '@herbcaudill/eventemitter42'
99
import * as Auth from '@localfirst/auth'
1010
import { hash } from '@localfirst/crypto'
1111
import { debug, memoize, pause } from '@localfirst/shared'
12-
import { type AbstractConnection } from 'AbstractConnection.js'
13-
import { AnonymousConnection } from 'AnonymousConnection.js'
14-
import { buildServerUrl } from 'buildServerUrl.js'
15-
import { getShareId } from 'getShareId.js'
12+
import { type AbstractConnection } from './AbstractConnection.js'
13+
import { AnonymousConnection } from './AnonymousConnection.js'
14+
import { buildServerUrl } from './buildServerUrl.js'
15+
import { getShareId } from './getShareId.js'
1616
import { pack, unpack } from 'msgpackr'
17-
import { isJoinMessage, type JoinMessage } from 'types.js'
17+
import { isJoinMessage, type JoinMessage } from './types.js'
1818
import { AuthenticatedNetworkAdapter as AuthNetworkAdapter } from './AuthenticatedNetworkAdapter.js'
1919
import { CompositeMap } from './CompositeMap.js'
2020
import type {

packages/auth-provider-automerge-repo/src/AuthenticatedNetworkAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NetworkAdapter, type Message } from '@automerge/automerge-repo'
2-
import { type ShareId } from 'types.js'
2+
import { type ShareId } from './types.js'
33

44
/**
55
* An AuthenticatedNetworkAdapter is a NetworkAdapter that wraps another NetworkAdapter and

packages/auth-provider-automerge-repo/src/test/AuthProvider.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { MessageChannelNetworkAdapter } from '@automerge/automerge-repo-network-
33
import { NodeFSStorageAdapter } from '@automerge/automerge-repo-storage-nodefs'
44
import * as Auth from '@localfirst/auth'
55
import { eventPromise } from '@localfirst/shared'
6-
import { getShareId } from 'getShareId.js'
7-
import { type ShareId } from 'types.js'
6+
import { getShareId } from '../getShareId.js'
7+
import { type ShareId } from '../types.js'
88
import { describe, expect, it } from 'vitest'
99
import { AuthProvider } from '../AuthProvider.js'
1010
import { authenticated, authenticatedInTime } from './helpers/authenticated.js'
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"baseUrl": "src",
54
"outDir": "dist",
6-
"rootDir": "src",
5+
"rootDir": "src"
76
},
8-
"include": [
9-
"src",
10-
"@types"
11-
]
12-
}
7+
"include": ["src", "@types"]
8+
}

0 commit comments

Comments
 (0)