Skip to content

Commit 1ffe637

Browse files
revert import changes
1 parent 8b848fa commit 1ffe637

3 files changed

Lines changed: 5 additions & 132 deletions

File tree

packages/contentstack-export/src/export/modules/stack.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,26 @@ export default class ExportStack extends BaseClass {
8787

8888
async exportStackSettings(): Promise<any> {
8989
log(this.exportConfig, 'Exporting stack settings', 'success');
90-
90+
9191
try {
9292
const stackData = await this.stack.settings();
9393

9494
// Export to root directory
9595
const rootStackPath = pResolve(this.exportConfig.data, this.stackConfig.dirName);
9696
await fsUtil.makeDirectory(rootStackPath);
97-
await fsUtil.writeFile(pResolve(rootStackPath, "settings.json"), stackData);
97+
await fsUtil.writeFile(pResolve(rootStackPath, 'settings.json'), stackData);
9898
log(this.exportConfig, `Exported stack settings to root directory successfully!`, 'success');
9999

100100
// Export to all branches if branches exist
101101
if (this.exportConfig.branches && this.exportConfig.branches.length > 0) {
102102
for (const branch of this.exportConfig.branches) {
103103
const branchStackPath = pResolve(this.exportConfig.data, branch.uid, this.stackConfig.dirName);
104104
await fsUtil.makeDirectory(branchStackPath);
105-
await fsUtil.writeFile(pResolve(branchStackPath, "settings.json"), stackData);
105+
await fsUtil.writeFile(pResolve(branchStackPath, 'settings.json'), stackData);
106106
log(this.exportConfig, `Exported stack settings for branch ${branch.uid} successfully!`, 'success');
107107
}
108108
}
109-
109+
110110
return stackData;
111111
} catch (error) {
112112
log(this.exportConfig, `Failed to export stack settings. ${formatError(error)}`, 'error');
@@ -116,7 +116,7 @@ export default class ExportStack extends BaseClass {
116116

117117
async exportStack(): Promise<any> {
118118
log(this.exportConfig, 'Exporting stack details', 'success');
119-
119+
120120
const stackData = await this.stack.fetch();
121121
if (!stackData) {
122122
log(this.exportConfig, 'No stack data received', 'error');

packages/contentstack-import/src/config/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const config: DefaultConfig = {
3030
types: [
3131
'locales',
3232
'environments',
33-
'stack',
3433
'assets',
3534
'taxonomies',
3635
'extensions',

packages/contentstack-import/src/import/modules/stack.ts

Lines changed: 0 additions & 126 deletions
This file was deleted.

0 commit comments

Comments
 (0)