@contentstack/cli-cm-export 2.0.0-beta → 2.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -65
  3. package/lib/commands/cm/stacks/export.d.ts +0 -1
  4. package/lib/commands/cm/stacks/export.js +12 -37
  5. package/lib/config/index.js +7 -0
  6. package/lib/constants/index.d.ts +57 -0
  7. package/lib/constants/index.js +59 -0
  8. package/lib/export/module-exporter.js +3 -2
  9. package/lib/export/modules/assets.js +5 -5
  10. package/lib/export/modules/base-class.d.ts +17 -0
  11. package/lib/export/modules/base-class.js +29 -1
  12. package/lib/export/modules/composable-studio.d.ts +15 -0
  13. package/lib/export/modules/composable-studio.js +87 -0
  14. package/lib/export/modules/content-types.js +6 -8
  15. package/lib/export/modules/custom-roles.js +2 -2
  16. package/lib/export/modules/entries.d.ts +1 -1
  17. package/lib/export/modules/entries.js +18 -19
  18. package/lib/export/modules/environments.js +2 -3
  19. package/lib/export/modules/extensions.js +2 -3
  20. package/lib/export/modules/global-fields.js +8 -5
  21. package/lib/export/modules/labels.js +2 -3
  22. package/lib/export/modules/locales.js +2 -3
  23. package/lib/export/modules/marketplace-apps.js +36 -25
  24. package/lib/export/modules/personalize.js +1 -2
  25. package/lib/export/modules/stack.js +29 -29
  26. package/lib/export/modules/taxonomies.d.ts +52 -8
  27. package/lib/export/modules/taxonomies.js +278 -104
  28. package/lib/export/modules/webhooks.js +2 -3
  29. package/lib/export/modules/workflows.js +3 -4
  30. package/lib/types/default-config.d.ts +6 -0
  31. package/lib/types/index.d.ts +27 -2
  32. package/lib/utils/basic-login.d.ts +1 -1
  33. package/lib/utils/basic-login.js +5 -5
  34. package/lib/utils/common-helper.d.ts +1 -1
  35. package/lib/utils/common-helper.js +4 -4
  36. package/lib/utils/export-config-handler.js +10 -13
  37. package/lib/utils/file-helper.js +1 -1
  38. package/lib/utils/logger.d.ts +1 -1
  39. package/lib/utils/logger.js +2 -2
  40. package/lib/utils/marketplace-app-helper.js +2 -4
  41. package/lib/utils/progress-strategy-registry.js +88 -82
  42. package/messages/index.json +73 -67
  43. package/oclif.manifest.json +4 -42
  44. package/package.json +18 -15
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-export",
3
3
  "description": "Contentstack CLI plugin to export content from stack",
4
- "version": "2.0.0-beta",
4
+ "version": "2.0.0-beta.10",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-command": "~1.6.1",
9
- "@contentstack/cli-variants": "~2.0.0-beta",
10
- "@oclif/core": "^4.3.3",
11
- "@contentstack/cli-utilities": "~1.14.1",
8
+ "@contentstack/cli-command": "~2.0.0-beta",
9
+ "@contentstack/cli-utilities": "~2.0.0-beta.1",
10
+ "@contentstack/cli-variants": "~2.0.0-beta.7",
11
+ "@oclif/core": "^4.8.0",
12
12
  "async": "^3.2.6",
13
13
  "big-json": "^3.2.0",
14
14
  "bluebird": "^3.7.2",
15
15
  "chalk": "^4.1.2",
16
- "lodash": "^4.17.21",
16
+ "lodash": "^4.17.23",
17
17
  "merge": "^2.1.1",
18
18
  "mkdirp": "^1.0.4",
19
19
  "progress-stream": "^2.0.0",
@@ -21,14 +21,18 @@
21
21
  "winston": "^3.17.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@contentstack/cli-auth": "~1.6.1",
25
- "@contentstack/cli-config": "~1.15.1",
24
+ "@contentstack/cli-auth": "~2.0.0-beta.6",
25
+ "@contentstack/cli-config": "~2.0.0-beta.2",
26
26
  "@contentstack/cli-dev-dependencies": "~1.3.1",
27
27
  "@oclif/plugin-help": "^6.2.28",
28
28
  "@oclif/test": "^4.1.13",
29
29
  "@types/big-json": "^3.2.5",
30
+ "@types/chai": "^4.3.11",
30
31
  "@types/mkdirp": "^1.0.2",
32
+ "@types/mocha": "^10.0.6",
31
33
  "@types/progress-stream": "^2.0.5",
34
+ "@types/sinon": "^17.0.2",
35
+ "chai": "^4.4.1",
32
36
  "dotenv": "^16.5.0",
33
37
  "dotenv-expand": "^9.0.0",
34
38
  "eslint": "^8.57.1",
@@ -36,6 +40,8 @@
36
40
  "mocha": "10.8.2",
37
41
  "nyc": "^15.1.0",
38
42
  "oclif": "^4.17.46",
43
+ "sinon": "^17.0.1",
44
+ "source-map-support": "^0.5.21",
39
45
  "ts-node": "^10.9.2",
40
46
  "typescript": "^4.9.5"
41
47
  },
@@ -54,7 +60,8 @@
54
60
  "format": "eslint src/**/*.ts --fix",
55
61
  "test:integration": "INTEGRATION_TEST=true mocha --config ./test/.mocharc.js --forbid-only \"test/run.test.js\"",
56
62
  "test:integration:report": "INTEGRATION_TEST=true nyc --extension .js mocha --forbid-only \"test/run.test.js\"",
57
- "test:unit": "mocha --forbid-only \"test/unit/*.test.ts\""
63
+ "test:unit": "mocha --forbid-only \"test/unit/**/*.test.ts\"",
64
+ "test:unit:report": "nyc --reporter=text --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
58
65
  },
59
66
  "engines": {
60
67
  "node": ">=14.0.0"
@@ -82,13 +89,9 @@
82
89
  "repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-export/<%- commandPath %>"
83
90
  },
84
91
  "csdxConfig": {
85
- "expiredCommands": {
86
- "cm:export": "csdx cm:stacks:export"
87
- },
88
92
  "shortCommandName": {
89
- "cm:stacks:export": "EXPRT",
90
- "cm:export": "O-EXPRT"
93
+ "cm:stacks:export": "EXPRT"
91
94
  }
92
95
  },
93
96
  "repository": "https://github.com/contentstack/cli"
94
- }
97
+ }