Skip to content

Commit c5b9a11

Browse files
committed
fix: cli-command & cli-utilities latest version
1 parent f8d5a0a commit c5b9a11

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
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.0.2",
4+
"version": "1.1.0",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli-cm-regex-validate/issues",
77
"devDependencies": {

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Command, flags } from "@contentstack/cli-command";
1+
import { Command } from "@contentstack/cli-command";
2+
import { flags as _flags } from '@contentstack/cli-utilities';
23
import { inquireAlias, inquireModule } from "../../../utils/interactive";
34
import connectStack from "../../../utils/connect-stack";
45
const regexMessages = require("../../../../messages/index.json").validateRegex;
@@ -7,20 +8,20 @@ export default class ValidateRegex extends Command {
78
static description = regexMessages.command.description;
89

910
static flags = {
10-
help: flags.help({ char: "h", description: regexMessages.command.help }),
11-
alias: flags.string({
11+
help: _flags.help({ char: "h", description: regexMessages.command.help }),
12+
alias: _flags.string({
1213
char: "a",
1314
description: regexMessages.command.alias,
1415
}),
15-
contentType: flags.boolean({
16+
contentType: _flags.boolean({
1617
char: "c",
1718
description: regexMessages.command.contentTypes,
1819
}),
19-
globalField: flags.boolean({
20+
globalField: _flags.boolean({
2021
char: "g",
2122
description: regexMessages.command.globalFields,
2223
}),
23-
filePath: flags.string({
24+
filePath: _flags.string({
2425
char: "f",
2526
description: regexMessages.command.filePath,
2627
}),
@@ -37,7 +38,7 @@ export default class ValidateRegex extends Command {
3738
];
3839

3940
async run() {
40-
const commandObject = this.parse(ValidateRegex);
41+
const commandObject = await this.parse(ValidateRegex);
4142

4243
await inquireAlias(commandObject.flags);
4344

src/typings/@contentstack/index.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"declaration": true,
3+
"declaration": false,
44
"importHelpers": true,
55
"module": "commonjs",
66
"outDir": "lib",
@@ -11,5 +11,8 @@
1111
},
1212
"include": [
1313
"src/**/*"
14+
],
15+
"exclude": [
16+
"src/**/*.d.ts"
1417
]
1518
}

0 commit comments

Comments
 (0)