Skip to content

Commit 03838eb

Browse files
Merge pull request #27 from contentstack/bugfix/CS-36588-oclif
Update bin file & refactor command
2 parents 1c83e3c + ebc41b4 commit 03838eb

File tree

4 files changed

+49
-46
lines changed

4 files changed

+49
-46
lines changed

bin/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

33
(async () => {
4-
const oclif = require('@contentstack/cli-utilities/node_modules/@oclif/core')
5-
await oclif.execute({ type: 'cjs', dir: __dirname })
4+
const { execute } = require('@contentstack/cli-utilities')
5+
await execute({ type: 'cjs', dir: __dirname })
66
})()

package-lock.json

Lines changed: 43 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-regex-validate",
33
"description": "Validate Fields with Regex Property of Content Type and Global Field in a Stack",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli-cm-regex-validate/issues",
77
"devDependencies": {
@@ -62,8 +62,8 @@
6262
"version": "oclif-dev readme && git add README.md"
6363
},
6464
"dependencies": {
65-
"@contentstack/cli-command": "^1.2.0",
66-
"@contentstack/cli-utilities": "^1.2.0",
65+
"@contentstack/cli-command": "^1.2.1",
66+
"@contentstack/cli-utilities": "^1.3.0",
6767
"@contentstack/management": "^1.2.4",
6868
"cli-table3": "^0.6.0",
6969
"cli-ux": "^6.0.9",

src/commands/cm/stacks/validate-regex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const regexMessages = require("../../../../messages/index.json").validateRegex;
77
export default class ValidateRegex extends Command {
88
static description = regexMessages.command.description;
99

10-
static flags: any = {
10+
static flags = {
1111
help: flags.help({ char: "h", description: regexMessages.command.help }),
1212
alias: flags.string({
1313
char: "a",

0 commit comments

Comments
 (0)