Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
fileignoreconfig:
- filename: pnpm-lock.yaml
checksum: 19a030bd06243389baa385fd58a90a595c9dd52590be8d15104e18443b9c4701
version: '1.0'
21 changes: 0 additions & 21 deletions packages/contentstack-audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ USAGE
* [`csdx audit:fix`](#csdx-auditfix)
* [`csdx cm:stacks:audit`](#csdx-cmstacksaudit)
* [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix)
* [`csdx help [COMMAND]`](#csdx-help-command)

## `csdx audit`

Expand Down Expand Up @@ -257,24 +256,4 @@ EXAMPLES
```

_See code: [src/commands/cm/stacks/audit/fix.ts](https://github.com/contentstack/audit/blob/main/packages/contentstack-audit/src/commands/cm/stacks/audit/fix.ts)_

## `csdx help [COMMAND]`

Display help for csdx.

```
USAGE
$ csdx help [COMMAND...] [-n]

ARGUMENTS
[COMMAND...] Command to show help for.

FLAGS
-n, --nested-commands Include all nested commands in the output.

DESCRIPTION
Display help for csdx.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.37/src/commands/help.ts)_
<!-- commandsstop -->
5 changes: 0 additions & 5 deletions packages/contentstack-audit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
"@contentstack/cli-command": "~1.8.1",
"@contentstack/cli-utilities": "~1.18.2",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.28",
"chalk": "^4.1.2",
"fast-csv": "^4.3.6",
"fs-extra": "^11.3.0",
"lodash": "^4.18.1",
"uuid": "^14.0.0",
"winston": "^3.19.0"
},
"devDependencies": {
Expand All @@ -50,9 +48,6 @@
"oclif": {
"bin": "csdx",
"commands": "./lib/commands",
"plugins": [
"@oclif/plugin-help"
],
"topicSeparator": ":",
"additionalHelpFlags": [
"-h"
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-audit/src/audit-base-command.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import chalk from 'chalk';
import * as csv from 'fast-csv';
import { copy } from 'fs-extra';
import { v4 as uuid } from 'uuid';
import isEmpty from 'lodash/isEmpty';
import { join, resolve } from 'path';
import cloneDeep from 'lodash/cloneDeep';
Expand All @@ -13,6 +12,7 @@ import {
log,
configHandler,
createLogContext,
generateUid,
} from '@contentstack/cli-utilities';
import { createWriteStream, existsSync, mkdirSync, readFileSync, writeFileSync, rmSync } from 'fs';
import config from './config';
Expand Down Expand Up @@ -437,7 +437,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
this.flags['copy-path'] ||
this.flags['data-dir'] ||
this.sharedConfig.basePath
).replace(/\/+$/, '')}_backup_${uuid()}`;
).replace(/\/+$/, '')}_backup_${generateUid()}`;

if (!existsSync(backupDirPath)) {
mkdirSync(backupDirPath, { recursive: true });
Expand Down
4 changes: 0 additions & 4 deletions packages/contentstack-bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@contentstack/cli-config": "~1.20.2",
"@contentstack/cli-utilities": "~1.18.2",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.37",
"inquirer": "8.2.7",
"mkdirp": "^2.1.6",
"tar": "^7.5.11"
Expand All @@ -34,13 +33,10 @@
"@types/tar": "^6.1.13",
"chai": "^4.5.0",
"eslint": "^9.26.0",
"eslint-config-oclif": "^6.0.62",
"eslint-config-oclif-typescript": "^3.1.14",
"mocha": "10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.17.46",
"tmp": "^0.2.5",
"ts-node": "^8.10.2",
"typescript": "^4.9.5"
},
"engines": {
Expand Down
2 changes: 0 additions & 2 deletions packages/contentstack-branches/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
"dependencies": {
"@contentstack/cli-command": "~1.8.1",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.28",
"@contentstack/cli-utilities": "~1.18.2",
"chalk": "^4.1.2",
"just-diff": "^6.0.2",
"lodash": "^4.18.1"
},
"devDependencies": {
"@contentstack/cli-dev-dependencies": "^1.3.1",
"chai": "^4.5.0",
"dotenv": "^16.5.0",
"dotenv-expand": "^9.0.0",
Expand Down
1 change: 0 additions & 1 deletion packages/contentstack-bulk-publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"@contentstack/cli-config": "~1.20.2",
"@contentstack/cli-utilities": "~1.18.2",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.44",
"chalk": "^4.1.2",
"dotenv": "^16.6.1",
"inquirer": "8.2.7",
Expand Down
1 change: 0 additions & 1 deletion packages/contentstack-clone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"@contentstack/cli-command": "~1.8.1",
"@contentstack/cli-utilities": "~1.18.2",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.28",
"chalk": "^4.1.2",
"inquirer": "8.2.7",
"lodash": "^4.18.1",
Expand Down
6 changes: 1 addition & 5 deletions packages/contentstack-export-to-csv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,21 @@
"@contentstack/cli-command": "~1.8.1",
"@contentstack/cli-utilities": "~1.18.2",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.32",
"fast-csv": "^4.3.6",
"inquirer": "8.2.7",
"inquirer-checkbox-plus-prompt": "1.4.2",
"mkdirp": "^3.0.1"
"inquirer-checkbox-plus-prompt": "1.4.2"
},
"devDependencies": {
"@oclif/test": "^4.1.18",
"@types/chai": "^4.3.20",
"@types/inquirer": "^9.0.8",
"@types/mocha": "^10.0.10",
"@types/mkdirp": "^1.0.2",
"@types/node": "^20.17.50",
"chai": "^4.5.0",
"eslint": "^9.26.0",
"eslint-config-oclif": "^6.0.62",
"eslint-config-oclif-typescript": "^3.1.14",
"mocha": "^10.8.2",
"nock": "^13.5.6",
"nyc": "^15.1.0",
"oclif": "^4.17.46",
"sinon": "^19.0.5",
Expand Down
1 change: 0 additions & 1 deletion packages/contentstack-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"dotenv": "^16.5.0",
"dotenv-expand": "^9.0.0",
"eslint": "^9.26.0",
"eslint-config-oclif": "^6.0.68",
"mocha": "10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.17.46",
Expand Down
1 change: 0 additions & 1 deletion packages/contentstack-import-setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@typescript-eslint/eslint-plugin": "^5.62.0",
"chai": "^4.5.0",
"eslint": "^9.26.0",
"eslint-config-oclif": "^6.0.62",
"mocha": "^10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.17.46",
Expand Down
2 changes: 0 additions & 2 deletions packages/contentstack-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"merge": "^2.1.1",
"mkdirp": "^1.0.4",
"promise-limit": "^2.7.0",
"uuid": "^14.0.0",
"winston": "^3.19.0"
},
"devDependencies": {
Expand All @@ -37,7 +36,6 @@
"mocha": "^10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.17.46",
"rewire": "^9.0.1",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/contentstack-import/src/import/modules/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import isEmpty from 'lodash/isEmpty';
import uniq from 'lodash/uniq';
import { existsSync } from 'node:fs';
import includes from 'lodash/includes';
import { v4 as uuid } from 'uuid';
import { resolve as pResolve, join } from 'node:path';
import { FsUtility, log, handleAndLogError } from '@contentstack/cli-utilities';
import { FsUtility, log, handleAndLogError, generateUid } from '@contentstack/cli-utilities';

import config from '../../config';
import { ModuleClassParams } from '../../types';
Expand Down Expand Up @@ -424,7 +423,7 @@ export default class ImportAssets extends BaseClass {
// 2. if there are multiple assets fetched with same query, then check the parent uid against mapper created while importing folders
// 3. Replace matched assets
this.rootFolder = {
uid: uuid(),
uid: generateUid(),
name: `Import-${formatDate()}`,
parent_uid: null,
created_at: null,
Expand Down
1 change: 0 additions & 1 deletion packages/contentstack-migration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"@contentstack/cli-command": "~1.8.1",
"@contentstack/cli-utilities": "~1.18.2",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.44",
"async": "^3.2.6",
"callsites": "^3.1.0",
"cardinal": "^2.1.1",
Expand Down
2 changes: 0 additions & 2 deletions packages/contentstack-variants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"license": "MIT",
"devDependencies": {
"@contentstack/cli-dev-dependencies": "^1.3.1",
"@oclif/plugin-help": "^6.2.28",
"@oclif/test": "^4.1.18",
"@types/node": "^20.19.39",
"mocha": "^10.8.2",
Expand All @@ -30,7 +29,6 @@
"dependencies": {
"@contentstack/cli-utilities": "~1.18.2",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.44",
"lodash": "^4.18.1",
"mkdirp": "^1.0.4",
"winston": "^3.19.0"
Expand Down
Loading
Loading