Skip to content

Commit 9a60a4b

Browse files
Merge pull request #1871 from contentstack/development
DX | 21-04-2025 | Release (staging)
2 parents 5c7e9ae + d424d6c commit 9a60a4b

File tree

30 files changed

+13332
-24224
lines changed

30 files changed

+13332
-24224
lines changed

.github/workflows/unit-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ jobs:
1919
- name: Install dependencies for all plugins
2020
run: |
2121
npm run setup-repo-old
22-
22+
2323
- name: Run tests for Audit plugin
2424
working-directory: ./packages/contentstack-audit
2525
run: npm run test:unit
2626

27+
- name: Run tests for Contentstack Config
28+
working-directory: ./packages/contentstack-config
29+
run: npm run test
2730
# - name: Fetch latest references
2831
# run: |
2932
# git fetch --prune
@@ -41,11 +44,11 @@ jobs:
4144
# CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
4245
# echo "Changed files:"
4346
# echo "$CHANGED_FILES"
44-
47+
4548
# # Identify affected plugins
4649
# AFFECTED_PLUGINS=$(echo "$CHANGED_FILES" | grep -oP '(?<=^packages/)([^/]+)' | sort -u | tr '\n' ' ')
4750
# echo "Affected plugins: $AFFECTED_PLUGINS"
48-
51+
4952
# # Set output for the next step
5053
# echo "::set-output name=affected_plugins::$AFFECTED_PLUGINS"
5154

@@ -59,4 +62,4 @@ jobs:
5962
# else
6063
# echo "contentstack-audit has not changed. Skipping tests."
6164
# fi
62-
# done
65+
# done

package-lock.json

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

packages/contentstack-audit/README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
1919
$ csdx COMMAND
2020
running command...
2121
$ csdx (--version|-v)
22-
@contentstack/cli-audit/1.11.0 darwin-arm64 node-v22.14.0
22+
@contentstack/cli-audit/1.12.0 darwin-arm64 node-v23.6.0
2323
$ csdx --help [COMMAND]
2424
USAGE
2525
$ csdx COMMAND
@@ -52,7 +52,7 @@ Perform audits and find possible errors in the exported Contentstack data
5252

5353
```
5454
USAGE
55-
$ csdx audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
55+
$ csdx audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
5656
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--columns <value>]
5757
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
5858
@@ -63,8 +63,9 @@ FLAGS
6363
--report-path=<value> Path to store the audit reports
6464
6565
COMMON FLAGS
66-
-c, --config=<value> Path of the external config
67-
-d, --data-dir=<value> Path where the data is stored
66+
-c, --config=<value> Path of the external config
67+
-d, --data-dir=<value> Path where the data is stored
68+
--show-console-output Display the audit and audit fix result for individual modules
6869
6970
TABLE FLAGS
7071
--columns=<value> Specify columns to display, comma-separated.
@@ -101,7 +102,7 @@ Perform audits and fix possible errors in the exported Contentstack data.
101102

102103
```
103104
USAGE
104-
$ csdx audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
105+
$ csdx audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
105106
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--copy-path <value>
106107
--copy-dir] [--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns
107108
<value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
@@ -117,8 +118,9 @@ FLAGS
117118
--report-path=<value> Path to store the audit reports
118119
119120
COMMON FLAGS
120-
-c, --config=<value> Path of the external config
121-
-d, --data-dir=<value> Path where the data is stored
121+
-c, --config=<value> Path of the external config
122+
-d, --data-dir=<value> Path where the data is stored
123+
--show-console-output Display the audit and audit fix result for individual modules
122124
123125
TABLE FLAGS
124126
--columns=<value> Specify columns to display, comma-separated.
@@ -157,7 +159,7 @@ Perform audits and find possible errors in the exported Contentstack data
157159

158160
```
159161
USAGE
160-
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
162+
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
161163
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--columns <value>]
162164
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
163165
@@ -168,8 +170,9 @@ FLAGS
168170
--report-path=<value> Path to store the audit reports
169171
170172
COMMON FLAGS
171-
-c, --config=<value> Path of the external config
172-
-d, --data-dir=<value> Path where the data is stored
173+
-c, --config=<value> Path of the external config
174+
-d, --data-dir=<value> Path where the data is stored
175+
--show-console-output Display the audit and audit fix result for individual modules
173176
174177
TABLE FLAGS
175178
--columns=<value> Specify columns to display, comma-separated.
@@ -208,7 +211,7 @@ Perform audits and fix possible errors in the exported Contentstack data.
208211

209212
```
210213
USAGE
211-
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
214+
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
212215
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--copy-path <value>
213216
--copy-dir] [--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns
214217
<value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
@@ -224,8 +227,9 @@ FLAGS
224227
--report-path=<value> Path to store the audit reports
225228
226229
COMMON FLAGS
227-
-c, --config=<value> Path of the external config
228-
-d, --data-dir=<value> Path where the data is stored
230+
-c, --config=<value> Path of the external config
231+
-d, --data-dir=<value> Path where the data is stored
232+
--show-console-output Display the audit and audit fix result for individual modules
229233
230234
TABLE FLAGS
231235
--columns=<value> Specify columns to display, comma-separated.

packages/contentstack-audit/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-audit",
3-
"version": "1.11.0",
3+
"version": "1.12.0",
44
"description": "Contentstack audit plugin",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli",
@@ -19,9 +19,9 @@
1919
],
2020
"dependencies": {
2121
"@contentstack/cli-command": "~1.5.0",
22-
"@oclif/plugin-help": "^6.2.25",
22+
"@oclif/plugin-help": "^6.2.27",
2323
"@contentstack/cli-utilities": "~1.11.0",
24-
"@oclif/plugin-plugins": "^5.4.24",
24+
"@oclif/plugin-plugins": "^5.4.36",
2525
"chalk": "^4.1.2",
2626
"fast-csv": "^4.3.6",
2727
"fs-extra": "^11.3.0",
@@ -30,23 +30,23 @@
3030
"winston": "^3.17.0"
3131
},
3232
"devDependencies": {
33-
"@oclif/test": "^4.1.11",
33+
"@oclif/test": "^4.1.12",
3434
"@types/chai": "^4.3.20",
3535
"@types/fs-extra": "^11.0.4",
3636
"@types/mocha": "^10.0.10",
37-
"@types/node": "^20.17.19",
37+
"@types/node": "^20.17.30",
3838
"@types/uuid": "^9.0.8",
3939
"chai": "^4.5.0",
4040
"eslint": "^8.57.1",
41-
"eslint-config-oclif": "^6.0.15",
41+
"eslint-config-oclif": "^6.0.42",
4242
"eslint-config-oclif-typescript": "^3.1.14",
4343
"mocha": "^10.8.2",
4444
"nyc": "^15.1.0",
45-
"oclif": "^4.17.30",
46-
"shx": "^0.3.4",
45+
"oclif": "^4.17.43",
46+
"shx": "^0.4.0",
4747
"sinon": "^19.0.5",
4848
"ts-node": "^10.9.2",
49-
"typescript": "^5.7.3"
49+
"typescript": "^5.8.3"
5050
},
5151
"oclif": {
5252
"bin": "csdx",

0 commit comments

Comments
 (0)