Skip to content

Commit

Permalink
export protobufjs
Browse files Browse the repository at this point in the history
  • Loading branch information
shijinn520 committed May 16, 2024
1 parent cb9df16 commit c7b03ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -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'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kritor-proto",
"version": "0.0.4",
"version": "0.0.5",
"type": "module",
"main": "index.js",
"author": "CalmLexi",
Expand Down

0 comments on commit c7b03ba

Please sign in to comment.