From c7b03ba31b480526919585d9a4ca001531ce02db Mon Sep 17 00:00:00 2001 From: "Lain." Date: Thu, 16 May 2024 10:57:47 +0800 Subject: [PATCH] export protobufjs --- index.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4dae0ef..ac6deb5 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,10 @@ import path from 'path' +import protobufjs from 'protobufjs' const filePath = import.meta.url.replace(/^file:(\/\/\/|\/\/)/, '') + '../' const absolutePath = path.resolve(filePath) const dirname = path.dirname(absolutePath) -export const proto = dirname + '/kritor/protos' +const proto = dirname + '/kritor/protos' + +export { protobufjs, proto } export * from './protos/compiled.js' \ No newline at end of file diff --git a/package.json b/package.json index bb0aff1..2f05a30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kritor-proto", - "version": "0.0.4", + "version": "0.0.5", "type": "module", "main": "index.js", "author": "CalmLexi",