Skip to content

Commit d99164e

Browse files
committed
build: use rollup-plugin-dts and use barrel files to export types
WE2-1179 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
1 parent c58a198 commit d99164e

File tree

8 files changed

+117
-25
lines changed

8 files changed

+117
-25
lines changed

package-lock.json

Lines changed: 79 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222

2323
export default Object.freeze({
24-
VERSION: "2.1.0-beta.1",
24+
VERSION: "3.0.0-beta.0",
2525
EXTENSION_HANDSHAKE_TIMEOUT: 1000, // 1 second
2626
NATIVE_APP_HANDSHAKE_TIMEOUT: 5 * 1000, // 5 seconds
2727
DEFAULT_USER_INTERACTION_TIMEOUT: 2 * 60 * 1000, // 2 minutes

src/errors/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export * from "./ActionPendingError";
2+
export * from "./ActionTimeoutError";
3+
export * from "./ContextInsecureError";
4+
export * from "./ErrorCode";
5+
export * from "./ExtensionUnavailableError";
6+
export * from "./KnownErrorConstructors";
7+
export * from "./MissingParameterError";
8+
export * from "./NativeFatalError";
9+
export * from "./NativeInvalidArgumentError";
10+
export * from "./NativeUnavailableError";
11+
export * from "./SerializedError";
12+
export * from "./UnknownError";
13+
export * from "./UserCancelledError";
14+
export * from "./UserTimeoutError";
15+
export * from "./VersionInvalidError";
16+
export * from "./VersionMismatchError";

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export * from "./errors";
2+
export * from "./models";
3+
export * from "./services";
4+
export * from "./utils";
5+
export * from "./web-eid";

src/models/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export * from "./Action";
2+
export * from "./ActionOptions";
3+
export * from "./PendingMessage";
4+
export * from "./RequiresUpdate";
5+
export * from "./SignatureAlgorithm";
6+
export * from "./Versions";
7+
8+
export * from "./message";

src/models/message/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export * from "./NativeRequest";
2+
export * from "./NativeResponse";
3+
export * from "./LibraryResponse";
4+
export * from "./ExtensionRequest";
5+
export * from "./ExtensionResponse";

src/services/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as WebExtensionService } from "./WebExtensionService";

src/utils/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./errorSerializer";
2+
export * from "./sleep";

0 commit comments

Comments
 (0)