diff --git a/package.json b/package.json index 9f87bc6..21198e3 100644 --- a/package.json +++ b/package.json @@ -15,15 +15,16 @@ "email": "hello@robrecht.me", "url": "https://robrecht.me" }, + "main": "./dist/cli.js", "bin": { - "loco": "./build/cli.js" + "loco-cli": "./dist/cli.js" }, "engines": { "node": ">=16" }, "scripts": { "build": "tsc", - "dev": "tsc && node ./build/cli.js", + "dev": "tsc && node ./dist/cli.js", "semantic-release": "semantic-release" }, "files": [ @@ -41,6 +42,7 @@ "commander": "8.3.0", "enquirer": "2.3.6", "loco-api-js": "1.3.2", + "loco-cli": "1.0.0", "unzipper": "0.10.11" }, "devDependencies": { diff --git a/tsconfig.json b/tsconfig.json index 3e21b79..edaaf2a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "module": "commonjs", - "outDir": "./build", + "outDir": "./dist", "importHelpers": false, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, diff --git a/yarn.lock b/yarn.lock index 2db7e6b..97052e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2051,6 +2051,18 @@ loco-api-js@1.3.2: form-data "^4.0.0" isomorphic-unfetch "^3.0.0" +loco-cli@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/loco-cli/-/loco-cli-1.0.0.tgz#fa87bfc9a8e976e73dee97297ba33b913316ab21" + integrity sha512-s7abeh3W4ex7fLzKaDwhT0/i8FZ6pXmZWSQUH1QkuTmqOl7kEiVtQDAo/OWIwwhuAHkBcvl+GV1nvW3WoD/+DQ== + dependencies: + chalk "4" + cli-progress "3.9.1" + commander "8.3.0" + enquirer "2.3.6" + loco-api-js "1.3.2" + unzipper "0.10.11" + lodash.capitalize@^4.2.1: version "4.2.1" resolved "https://registry.yarnpkg.com/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz#f826c9b4e2a8511d84e3aca29db05e1a4f3b72a9"