From 51c25b5addccc1798ff184718c976c091583992f Mon Sep 17 00:00:00 2001 From: Luc-cpl Date: Mon, 10 Jun 2024 22:29:50 -0300 Subject: [PATCH] fix: version command --- CHANGEOG.md | 6 ++++++ package.json | 2 +- src/index.ts | 3 +-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGEOG.md b/CHANGEOG.md index 116e4c6..1afe309 100644 --- a/CHANGEOG.md +++ b/CHANGEOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.2.1] - 2024-06-10 + +### Fixed + +- Fix version command + ## [1.2.0] - 2024-06-10 ### Added diff --git a/package.json b/package.json index 36382cb..c45e4a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wp-setup", - "version": "1.2.0", + "version": "1.2.1", "description": "Easily create replicable local WordPress environments with Docker", "type": "module", "repository": { diff --git a/src/index.ts b/src/index.ts index 35354ea..78c95e2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,12 +10,11 @@ import DockerCommands from '@/commands/dockerCommands'; import MakerCommands from '@/commands/makerCommands'; const setupFile = getJsonFile(`${process.cwd()}/wp-setup.json`) ?? {} as ConfigInterface; -const packageJson = getJsonFile(`${process.cwd()}/package.json`) as { version: string }|null; const docker = new DockerCommands(setupFile); const maker = new MakerCommands(setupFile); -program.version(packageJson?.version ?? '0.0.1'); +program.version('1.2.1'); program.command('init') .description('Create the setup files for the environment.')