From 129e83a96f0d0a5e41c294d1fec15d5e5b6c33a3 Mon Sep 17 00:00:00 2001 From: Mulverine Date: Mon, 23 Oct 2023 19:47:38 -0600 Subject: [PATCH] Remove bin --- package.json | 3 --- src/index.ts | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/package.json b/package.json index e788159..b14dfab 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,6 @@ "description": "The Build component for the Sandstone CLI.", "type": "module", "exports": "./lib/index.js", - "bin": { - "sand-build": "./lib/index.js" - }, "scripts": { "test": "echo NO TESTS", "build": "tsc" diff --git a/src/index.ts b/src/index.ts index d2dc999..26d5d8e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -591,7 +591,4 @@ function logError(err?: Error, file?: string) { } } -process.on('unhandledRejection', logError) -process.on('uncaughtException', logError) - -buildProject(JSON.parse(process.env.CLI_OPTIONS as string), JSON.parse(process.env.PROJECT_FOLDERS as string)); \ No newline at end of file +buildProject(JSON.parse(process.env.CLI_OPTIONS as string), JSON.parse(process.env.PROJECT_FOLDERS as string) as ProjectFolders); \ No newline at end of file