From b5b7921cb8520d5d5d0e005bf33c3001abb0ed19 Mon Sep 17 00:00:00 2001 From: Compey Date: Mon, 21 Nov 2022 14:55:34 +0530 Subject: [PATCH] feat: stable CLI release --- packages/cli/package.json | 7 +++++-- packages/cli/src/index.ts | 2 ++ packages/cli/tsconfig.json | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index de429fc..2cc0469 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,8 +1,11 @@ { "name": "create-guilded-bot", - "version": "1.0.0", + "version": "0.2.0", "description": "", - "main": "index.js", + "main": "dist/src/index.js", + "bin": { + "create-guilded-bot": "dist/src/index.js" + }, "scripts": { "build": "tsc", "dev": "ts-node-dev src/index.ts", diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 4236bc5..894e270 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import fs, { createWriteStream, mkdir, readdir, readdirSync } from "fs"; import { copySync, removeSync } from "fs-extra"; import * as inquirer from "inquirer"; diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 522df1e..4c2147a 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -1,3 +1,6 @@ { - "extends": "tsconfig/default" + "extends": "tsconfig/default", + "compilerOptions": { + "outDir": "dist" + } } \ No newline at end of file