Skip to content

Commit 5d51793

Browse files
committed
chore: use named export instead of everything
1 parent d3ce645 commit 5d51793

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/libs/CoreFixService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { writeFileSync } from "node:fs";
33

44
import { FindFlows } from "./FindFlows.js";
55

6-
import * as core from "lightning-flow-scanner-core";
6+
import { scan, parse, fix as fixFlows } from "lightning-flow-scanner-core";
77

88
import type { ScanResult as FlowScanResults } from "lightning-flow-scanner-core";
99

@@ -17,7 +17,7 @@ export default class CoreFixService {
1717
public async fix(): Promise<string[]> {
1818
//find flow file(s)
1919
const flowFiles = this.findFlows();
20-
const parsedFlows = await core.parse(flowFiles);
20+
const parsedFlows = await parse(flowFiles);
2121

2222
// make on the fly rule
2323
const flatRules = this.rules
@@ -33,10 +33,10 @@ export default class CoreFixService {
3333
) as IRulesConfig;
3434

3535
// scan
36-
const scanResults: FlowScanResults[] = core.scan(parsedFlows, flatRules);
36+
const scanResults: FlowScanResults[] = scan(parsedFlows, flatRules);
3737

3838
// fix
39-
const fixFlow: FlowScanResults[] = core.fix(scanResults);
39+
const fixFlow: FlowScanResults[] = fixFlows(scanResults);
4040
fixFlow.forEach((fixedObject) => {
4141
writeFileSync(fixedObject.flow.fsPath, fixedObject.flow.toXMLString());
4242
});

0 commit comments

Comments
 (0)