From 33747bad5917bf70903c8a0c1d082ae09624366a Mon Sep 17 00:00:00 2001 From: ThatTonybo Date: Tue, 12 Aug 2025 00:50:51 +1000 Subject: [PATCH] Fix module building --- README.md | 10 ++++++++++ bun.lock | 2 +- package.json | 6 ++++-- tsconfig.json | 10 +++++++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d196100..9a7fcb1 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,16 @@ bun install github:pygmyapp/ipc-client - Clone this repository - Install dependencies with `bun install` +## Build + +```sh +bun run build +``` + +## Scripts + +- `bun run lint`: runs Biome's linting, applies safe fixes, suggests fixes to errors, and auto-organizes imports + ## Licence Copyright (c) 2025 Pygmy & contributors All code & assets are licensed under GNU GPL v3 unless stated otherwise. diff --git a/bun.lock b/bun.lock index 75ea9cf..db1a044 100644 --- a/bun.lock +++ b/bun.lock @@ -11,7 +11,7 @@ "@tsconfig/bun": "^1.0.8", "@types/bun": "latest", "@types/node-ipc": "^9.2.3", - "typescript": "^5", + "typescript": "^5.9.2", }, }, }, diff --git a/package.json b/package.json index 3f6bb53..cbcec34 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,12 @@ { "name": "ipc-client", "version": "0.0.1", - "module": "src/index.ts", + "module": "dist/index.js", "type": "module", + "files": ["dist/**/*"], "private": true, "scripts": { + "build": "bunx tsc", "lint": "bunx biome check --write src/" }, "devDependencies": { @@ -12,7 +14,7 @@ "@tsconfig/bun": "^1.0.8", "@types/bun": "latest", "@types/node-ipc": "^9.2.3", - "typescript": "^5" + "typescript": "^5.9.2" }, "dependencies": { "node-ipc": "npm:@achrinza/node-ipc@^10.1.11" diff --git a/tsconfig.json b/tsconfig.json index ba396eb..d1f29d2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,11 @@ { - "extends": "@tsconfig/bun/tsconfig.json" + "extends": "@tsconfig/bun/tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + "allowImportingTsExtensions": false, + "noEmit": false + }, + "include": [ + "./src/**/*.ts" + ] }