contentful-export 8.0.4 → 8.1.0

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.
package/dist/index.js CHANGED
@@ -76,6 +76,7 @@ function runContentfulExport(params) {
76
76
  skipContentModel: options.skipContentModel,
77
77
  skipEditorInterfaces: options.skipEditorInterfaces,
78
78
  skipContent: options.skipContent,
79
+ skipAssets: options.skipAssets,
79
80
  skipWebhooks: options.skipWebhooks,
80
81
  skipRoles: options.skipRoles,
81
82
  skipTags: options.skipTags,
@@ -26,6 +26,7 @@ function parseOptions(params) {
26
26
  skipContentModel: false,
27
27
  skipEditorInterfaces: false,
28
28
  skipContent: false,
29
+ skipAssets: false,
29
30
  skipWebhooks: false,
30
31
  skipTags: false,
31
32
  stripTags: false,
@@ -23,6 +23,7 @@ function getFullSourceSpace({
23
23
  environmentId = 'master',
24
24
  skipContentModel,
25
25
  skipContent,
26
+ skipAssets,
26
27
  skipWebhooks,
27
28
  skipRoles,
28
29
  skipEditorInterfaces,
@@ -114,7 +115,7 @@ function getFullSourceSpace({
114
115
  ctx.data.assets = items;
115
116
  });
116
117
  }),
117
- skip: () => skipContent
118
+ skip: () => skipContent || skipAssets
118
119
  }, {
119
120
  title: 'Fetching locales data',
120
121
  task: (0, _contentfulBatchLibs.wrapTask)(ctx => {
@@ -41,6 +41,10 @@ var _default = exports.default = _yargs.default.version(_package.default.version
41
41
  describe: 'Skip exporting assets and entries',
42
42
  type: 'boolean',
43
43
  default: false
44
+ }).option('skip-assets', {
45
+ describe: 'Skip exporting assets',
46
+ type: 'boolean',
47
+ default: false
44
48
  }).option('skip-roles', {
45
49
  describe: 'Skip exporting roles and permissions',
46
50
  type: 'boolean',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "8.0.4",
3
+ "version": "8.1.0",
4
4
  "description": "this tool allows you to export a space to a JSON dump",
5
5
  "main": "dist/index.js",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface Options {
21
21
  queryAssets?: string[];
22
22
  rawProxy?: boolean;
23
23
  saveFile?: boolean;
24
+ skipAssets?: boolean;
24
25
  skipContent?: boolean;
25
26
  skipContentModel?: boolean;
26
27
  skipEditorInterfaces?: boolean;