Skip to content

Commit ca3c1ce

Browse files
authored
refactor, remove legacy api.ts, remove legacy index.ts content (#9018)
1 parent 9f2759d commit ca3c1ce

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

src/api.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +0,0 @@
1-
// import { getScopeComponent } from './api/consumer/index';
2-
import HooksManager from './hooks';
3-
// import { registerCoreExtensions } from './extensions/bit';
4-
// import { manifestsMap as coreExtensions } from './extensions/bit';
5-
6-
// export { coreExtensions };
7-
8-
HooksManager.init();
9-
10-
// export function show(scopePath: string, id: string, opts?: Record<string, any>) {
11-
// // When using the API programmatically do not use the scope cache by default
12-
// const loadScopeFromCache = opts && opts.loadScopeFromCache !== undefined ? !!opts.loadScopeFromCache : false;
13-
// // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
14-
// return getScopeComponent({ scopePath, id, allVersions: opts && opts.versions, loadScopeFromCache }).then(
15-
// ({ component }) => {
16-
// if (Array.isArray(component)) {
17-
// return component.map((v) => v.toObject());
18-
// }
19-
// return component.toObject();
20-
// }
21-
// );
22-
// }

src/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)