fix: update shebang in Index.ts and correct paths in package.json for CLI execution

This commit is contained in:
Nawaz Dhandala
2026-02-18 15:55:03 +00:00
parent b05db3486e
commit 7bf03074b2
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env npx ts-node #!/usr/bin/env node
import { Command } from "commander"; import { Command } from "commander";
import { registerConfigCommands } from "./Commands/ConfigCommands"; import { registerConfigCommands } from "./Commands/ConfigCommands";

View File

@@ -6,9 +6,9 @@
"type": "git", "type": "git",
"url": "https://github.com/OneUptime/oneuptime" "url": "https://github.com/OneUptime/oneuptime"
}, },
"main": "Index.ts", "main": "./build/dist/Index.js",
"bin": { "bin": {
"oneuptime": "./Index.ts" "oneuptime": "./build/dist/Index.js"
}, },
"scripts": { "scripts": {
"start": "node --require ts-node/register Index.ts", "start": "node --require ts-node/register Index.ts",

View File

@@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -e
# Set the package name and version # Set the package name and version
package_version=$PACKAGE_VERSION package_version=$PACKAGE_VERSION