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