Export everything and all types

This commit is contained in:
2026-03-10 18:04:56 +01:00
parent 218042f552
commit 7eca26a2b2
2 changed files with 9 additions and 13 deletions

View File

@@ -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": {

View File

@@ -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,
};