Skip to content

Commit

Permalink
fix: version command
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc-cpl committed Jun 11, 2024
1 parent fbcd01c commit 51c25b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGEOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit 51c25b5

Please sign in to comment.