Skip to content

Commit

Permalink
Botonic cli regex bot config (#2919)
Browse files Browse the repository at this point in the history
## Description

Update regex to obtain @botonic/cli version for bot config

## Context

The old regex was looking only for versions with -alpha.X or -beta.X
  • Loading branch information
Iru89 authored Oct 4, 2024
1 parent fda6f6f commit 887a81a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions packages/botonic-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $ npm install -g @botonic/cli
$ botonic COMMAND
running command...
$ botonic (-v|--version|version)
@botonic/cli/0.30.0 darwin-arm64 node-v20.11.1
@botonic/cli/0.30.1 darwin-arm64 node-v20.11.1
$ botonic --help [COMMAND]
USAGE
$ botonic COMMAND
Expand Down Expand Up @@ -66,7 +66,7 @@ EXAMPLES
Deploying to AWS...
```

_See code: [lib/commands/deploy.js](https://github.com/hubtype/botonic/blob/v0.30.0/lib/commands/deploy.js)_
_See code: [lib/commands/deploy.js](https://github.com/hubtype/botonic/blob/v0.30.1/lib/commands/deploy.js)_

## `botonic destroy [PROVIDER]`

Expand All @@ -81,7 +81,7 @@ EXAMPLE
Destroying AWS stack...
```

_See code: [lib/commands/destroy.js](https://github.com/hubtype/botonic/blob/v0.30.0/lib/commands/destroy.js)_
_See code: [lib/commands/destroy.js](https://github.com/hubtype/botonic/blob/v0.30.1/lib/commands/destroy.js)_

## `botonic help [COMMAND]`

Expand Down Expand Up @@ -112,7 +112,7 @@ OPTIONS
-p, --path=path Path to botonic project. Defaults to current dir.
```

_See code: [lib/commands/login.js](https://github.com/hubtype/botonic/blob/v0.30.0/lib/commands/login.js)_
_See code: [lib/commands/login.js](https://github.com/hubtype/botonic/blob/v0.30.1/lib/commands/login.js)_

## `botonic logout`

Expand All @@ -126,7 +126,7 @@ OPTIONS
-p, --path=path Path to botonic project. Defaults to current dir.
```

_See code: [lib/commands/logout.js](https://github.com/hubtype/botonic/blob/v0.30.0/lib/commands/logout.js)_
_See code: [lib/commands/logout.js](https://github.com/hubtype/botonic/blob/v0.30.1/lib/commands/logout.js)_

## `botonic new NAME [PROJECTNAME]`

Expand All @@ -146,7 +146,7 @@ EXAMPLE
✨ test_bot was successfully created!
```

_See code: [lib/commands/new.js](https://github.com/hubtype/botonic/blob/v0.30.0/lib/commands/new.js)_
_See code: [lib/commands/new.js](https://github.com/hubtype/botonic/blob/v0.30.1/lib/commands/new.js)_

## `botonic serve`

Expand All @@ -164,7 +164,7 @@ EXAMPLE
> Project is running at http://localhost:8080/
```

_See code: [lib/commands/serve.js](https://github.com/hubtype/botonic/blob/v0.30.0/lib/commands/serve.js)_
_See code: [lib/commands/serve.js](https://github.com/hubtype/botonic/blob/v0.30.1/lib/commands/serve.js)_

## `botonic test`

Expand All @@ -191,5 +191,5 @@ EXAMPLE
Ran all test suites.
```

_See code: [lib/commands/test.js](https://github.com/hubtype/botonic/blob/v0.30.0/lib/commands/test.js)_
_See code: [lib/commands/test.js](https://github.com/hubtype/botonic/blob/v0.30.1/lib/commands/test.js)_
<!-- commandsstop -->
2 changes: 1 addition & 1 deletion packages/botonic-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@botonic/cli",
"description": "Build Chatbots Using React",
"version": "0.30.0",
"version": "0.30.1",
"license": "MIT",
"bin": {
"botonic": "./bin/run"
Expand Down
2 changes: 1 addition & 1 deletion packages/botonic-cli/src/util/bot-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as util from 'util'

const BOTONIC_PREFIX_PACKAGE = '@botonic'
const BOTONIC_CORE_PACKAGE = `${BOTONIC_PREFIX_PACKAGE}/core`
const botonicCliVersionRegex = /@botonic\/cli\/([\d.]+-[\w.]+)/
const botonicCliVersionRegex = /@botonic\/cli\/([^ ]+)/
const NPM_DEPTH_1 = 1
const NPM_DEPTH_0 = 0

Expand Down

0 comments on commit 887a81a

Please sign in to comment.