Skip to content

Commit ccf7237

Browse files
author
Vikram Kalta
committed
fix: resolved conflicts
2 parents 137e94d + 1c83e3c commit ccf7237

File tree

7 files changed

+11985
-9453
lines changed

7 files changed

+11985
-9453
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @contentstack/security-admin @contentstack/cli-admin
1+
* @contentstack/security-admin

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Contentstack
3+
Copyright (c) 2023 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

bin/run

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

3-
require('@oclif/command').run()
4-
.catch(require('@oclif/errors/handle'))
3+
(async () => {
4+
const oclif = require('@contentstack/cli-utilities/node_modules/@oclif/core')
5+
await oclif.execute({ type: 'cjs', dir: __dirname })
6+
})()

package-lock.json

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

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
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.1",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli-cm-regex-validate/issues",
77
"devDependencies": {
8-
"@oclif/dev-cli": "^1.26.0",
98
"@oclif/plugin-help": "^3.2.3",
109
"@oclif/test": "^1.2.8",
1110
"@types/chai": "^4.2.21",
@@ -23,6 +22,7 @@
2322
"globby": "^10.0.2",
2423
"mocha": "^10.0.0",
2524
"nyc": "^15.1.0",
25+
"oclif": "^3.7.0",
2626
"ts-jest": "^29.0.3",
2727
"ts-node": "^10.9.1",
2828
"typescript": "^4.8.4"
@@ -57,16 +57,14 @@
5757
"mocha": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
5858
"postpack": "rm -f oclif.manifest.json",
5959
"posttest": "eslint . --ext .ts --config .eslintrc",
60-
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
60+
"prepack": "rm -rf lib && tsc -b && oclif manifest && oclif readme",
6161
"test": "jest --detectOpenHandles --silent",
6262
"version": "oclif-dev readme && git add README.md"
6363
},
6464
"dependencies": {
65-
"@contentstack/cli-command": "^1.0.0",
66-
"@contentstack/cli-utilities": "^1.0.0",
65+
"@contentstack/cli-command": "^1.2.0",
66+
"@contentstack/cli-utilities": "^1.2.0",
6767
"@contentstack/management": "^1.2.4",
68-
"@oclif/command": "^1.8.16",
69-
"@oclif/config": "^1.17.0",
7068
"cli-table3": "^0.6.0",
7169
"cli-ux": "^6.0.9",
7270
"inquirer": "^8.2.4",
@@ -76,4 +74,4 @@
7674
"tslib": "^1.14.1",
7775
"uuid": "^8.3.2"
7876
}
79-
}
77+
}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { Command, flags } from "@contentstack/cli-command";
1+
import { Command } from "@contentstack/cli-command";
2+
import { 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;
56

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

9-
static flags = {
10+
static flags: any = {
1011
help: flags.help({ char: "h", description: regexMessages.command.help }),
1112
alias: flags.string({
1213
char: "a",
@@ -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.

0 commit comments

Comments
 (0)