contentful-export 7.19.129 → 7.19.131
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 +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -22,6 +22,13 @@ var _initClient = _interopRequireDefault(require("./tasks/init-client"));
|
|
22
22
|
var _parseOptions = _interopRequireDefault(require("./parseOptions"));
|
23
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
24
24
|
const accessP = _bluebird.default.promisify(_fs.access);
|
25
|
+
const tableOptions = {
|
26
|
+
// remove ANSI color codes for better CI/CD compatibility
|
27
|
+
style: {
|
28
|
+
head: [],
|
29
|
+
border: []
|
30
|
+
}
|
31
|
+
};
|
25
32
|
function createListrOptions(options) {
|
26
33
|
if (options.useVerboseRenderer) {
|
27
34
|
return {
|
@@ -117,7 +124,7 @@ function runContentfulExport(params) {
|
|
117
124
|
}).then(ctx => {
|
118
125
|
const resultTypes = Object.keys(ctx.data);
|
119
126
|
if (resultTypes.length) {
|
120
|
-
const resultTable = new _cliTable.default();
|
127
|
+
const resultTable = new _cliTable.default(tableOptions);
|
121
128
|
resultTable.push([{
|
122
129
|
colSpan: 2,
|
123
130
|
content: 'Exported entities'
|
@@ -130,7 +137,7 @@ function runContentfulExport(params) {
|
|
130
137
|
console.log('No data was exported');
|
131
138
|
}
|
132
139
|
if ('assetDownloads' in ctx) {
|
133
|
-
const downloadsTable = new _cliTable.default();
|
140
|
+
const downloadsTable = new _cliTable.default(tableOptions);
|
134
141
|
downloadsTable.push([{
|
135
142
|
colSpan: 2,
|
136
143
|
content: 'Asset file download results'
|