diff --git a/.gitignore b/.gitignore index c02a6af..bba46a8 100644 --- a/.gitignore +++ b/.gitignore @@ -174,6 +174,4 @@ dist # Finder (MacOS) folder config .DS_Store -.prettierrc - -package-lock.json \ No newline at end of file +.prettierrc \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 0cee092..595cc02 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/index.ts b/index.ts index d7bf742..e0b7e1b 100644 --- a/index.ts +++ b/index.ts @@ -1,7 +1,8 @@ import { serve } from 'bun'; import { RouterOSAPI } from 'node-routeros'; -const path = '/config/config.json'; +// const path = '/config/config.json'; +const path = './config.json'; const cfgfile = Bun.file(path); let cfg = await cfgfile.json(); console.log(cfg); diff --git a/package.json b/package.json index ff1c1fe..1fb74f7 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,17 @@ { - "name": "netgate-switch", - "module": "index.ts", - "devDependencies": { - "@types/bun": "latest" - }, - "peerDependencies": { - "typescript": "^5.0.0" - }, - "scripts": { - "dev": "bun run index.ts" - }, - "type": "module", - "dependencies": { - "netgate-switch": "file:", - "node-routeros": "^1.6.9" - } + "name": "netgate-switch", + "module": "index.ts", + "devDependencies": { + "@types/bun": "latest" + }, + "peerDependencies": { + "typescript": "^5.0.0" + }, + "scripts": { + "dev": "bun run index.ts" + }, + "type": "module", + "dependencies": { + "node-routeros": "^1.6.9" + } }