Export everything and all types
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "meshcore",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"description": "MeshCore protocol support for Typescript",
|
||||
"keywords": [
|
||||
"MeshCore",
|
||||
@@ -21,9 +21,9 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
"require": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
16
src/index.ts
16
src/index.ts
@@ -1,13 +1,9 @@
|
||||
export * as types from './packet.types';
|
||||
export * from './parser';
|
||||
export * from './identity';
|
||||
export { Packet } from './packet';
|
||||
export * from './identity.types';
|
||||
export type * from './identity.types';
|
||||
|
||||
import { Packet as _Packet } from './packet';
|
||||
import { RouteType, PayloadType } from './packet.types';
|
||||
export * from './crypto';
|
||||
export type * from './crypto.types';
|
||||
|
||||
export default {
|
||||
Packet: _Packet,
|
||||
RouteType,
|
||||
PayloadType,
|
||||
};
|
||||
export * from './packet';
|
||||
export type * from './packet.types';
|
||||
|
||||
Reference in New Issue
Block a user