Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePlenkov committed Nov 11, 2024
1 parent bc509c1 commit b36eeb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions packages/cds2abap/src/lib/cds2abap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as cds from '@sap/cds';
import { Component } from '@abapify/components'
import { Component } from '@abapify/components';
import { AbapAnnotation } from './annotations';
import { dset } from 'dset';
import { DdicFactory } from './factory';
Expand All @@ -21,13 +21,12 @@ export async function cds2abap(input: Cds2AbapInput) {
const filename = `${component.id}.${component.type}.xml`;
const xml = component.toAbapgitXML();

console.log('✅', filename)
await writeFile(path.join(input.output, filename), xml)
console.log('✅', filename);
await writeFile(path.join(input.output, filename), xml);
}
}

export function csn2abap(model: cds.csn.CSN): Map<string, Component<unknown>> {

const generator = anotationGenerator(model);

const abapComponents = new Map<string, Component<unknown>>();
Expand Down
3 changes: 1 addition & 2 deletions samples/cds/src/build.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'node:test';
import * as cds from "@sap/cds"
import * as cds from '@sap/cds';
import { csn2abap } from '@abapify/cds2abap';

test('generate abapgit project from CDS model', async () => {
Expand All @@ -9,4 +9,3 @@ test('generate abapgit project from CDS model', async () => {
console.log('\n', component.type, component.id, component.toAbapgitXML());
}
});

0 comments on commit b36eeb1

Please sign in to comment.