Fix module building

This commit is contained in:
ThatTonybo
2025-08-12 00:50:51 +10:00
parent 32a49839a6
commit 33747bad59
4 changed files with 24 additions and 4 deletions

View File

@@ -17,6 +17,16 @@ bun install github:pygmyapp/ipc-client
- Clone this repository - Clone this repository
- Install dependencies with `bun install` - 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 ## Licence
Copyright (c) 2025 Pygmy & contributors Copyright (c) 2025 Pygmy & contributors
All code & assets are licensed under GNU GPL v3 unless stated otherwise. All code & assets are licensed under GNU GPL v3 unless stated otherwise.

View File

@@ -11,7 +11,7 @@
"@tsconfig/bun": "^1.0.8", "@tsconfig/bun": "^1.0.8",
"@types/bun": "latest", "@types/bun": "latest",
"@types/node-ipc": "^9.2.3", "@types/node-ipc": "^9.2.3",
"typescript": "^5", "typescript": "^5.9.2",
}, },
}, },
}, },

View File

@@ -1,10 +1,12 @@
{ {
"name": "ipc-client", "name": "ipc-client",
"version": "0.0.1", "version": "0.0.1",
"module": "src/index.ts", "module": "dist/index.js",
"type": "module", "type": "module",
"files": ["dist/**/*"],
"private": true, "private": true,
"scripts": { "scripts": {
"build": "bunx tsc",
"lint": "bunx biome check --write src/" "lint": "bunx biome check --write src/"
}, },
"devDependencies": { "devDependencies": {
@@ -12,7 +14,7 @@
"@tsconfig/bun": "^1.0.8", "@tsconfig/bun": "^1.0.8",
"@types/bun": "latest", "@types/bun": "latest",
"@types/node-ipc": "^9.2.3", "@types/node-ipc": "^9.2.3",
"typescript": "^5" "typescript": "^5.9.2"
}, },
"dependencies": { "dependencies": {
"node-ipc": "npm:@achrinza/node-ipc@^10.1.11" "node-ipc": "npm:@achrinza/node-ipc@^10.1.11"

View File

@@ -1,3 +1,11 @@
{ {
"extends": "@tsconfig/bun/tsconfig.json" "extends": "@tsconfig/bun/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"allowImportingTsExtensions": false,
"noEmit": false
},
"include": [
"./src/**/*.ts"
]
} }