Skip to content

Commit 34d011f

Browse files
committed
fix: added flagInput
1 parent 6dc3605 commit 34d011f

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1+
import { FlagInput } from '@contentstack/cli-utilities/node_modules/@oclif/core/lib/interfaces/parser';
12
import { Command } from "@contentstack/cli-command";
2-
import { flags as _flags } from '@contentstack/cli-utilities';
3+
import { flags } from '@contentstack/cli-utilities';
34
import { inquireAlias, inquireModule } from "../../../utils/interactive";
45
import connectStack from "../../../utils/connect-stack";
56
const regexMessages = require("../../../../messages/index.json").validateRegex;
67

78
export default class ValidateRegex extends Command {
89
static description = regexMessages.command.description;
910

10-
static flags = {
11-
help: _flags.help({ char: "h", description: regexMessages.command.help }),
12-
alias: _flags.string({
11+
static flags: FlagInput = {
12+
help: flags.help({ char: "h", description: regexMessages.command.help }),
13+
alias: flags.string({
1314
char: "a",
1415
description: regexMessages.command.alias,
1516
}),
16-
contentType: _flags.boolean({
17+
contentType: flags.boolean({
1718
char: "c",
1819
description: regexMessages.command.contentTypes,
1920
}),
20-
globalField: _flags.boolean({
21+
globalField: flags.boolean({
2122
char: "g",
2223
description: regexMessages.command.globalFields,
2324
}),
24-
filePath: _flags.string({
25+
filePath: flags.string({
2526
char: "f",
2627
description: regexMessages.command.filePath,
2728
}),

tsconfig.json

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

0 commit comments

Comments
 (0)