Updates package.json and launch script to use ts-node

This commit is contained in:
Heinous Tugboat 2022-09-30 20:12:58 -04:00
parent 778b8d492a
commit 999780a612
3 changed files with 7 additions and 7 deletions

View file

@ -1,4 +0,0 @@
#!/usr/bin/env node
import {start} from "../src/index.js"
await start();

4
npx/bitburner-filesync.ts Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env ts-node
import { start } from "../src/index"
await start();

View file

@ -3,11 +3,11 @@
"version": "1.1.5", "version": "1.1.5",
"description": "Official implementation of the Bitburner Filesync server", "description": "Official implementation of the Bitburner Filesync server",
"type": "module", "type": "module",
"bin": "./npx/bitburner-filesync.js", "bin": "./npx/bitburner-filesync.ts",
"main": "./npx/bitburner-filesync.js", "main": "./npx/bitburner-filesync.ts",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "node src/index.js" "start": "npx/bitburner-filesync.ts"
}, },
"repository": { "repository": {
"type": "git", "type": "git",