Skip to content

Commit

Permalink
refactor, remove legacy api.ts, remove legacy index.ts content (#9018)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfirst authored Jul 11, 2024
1 parent 9f2759d commit ca3c1ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
22 changes: 0 additions & 22 deletions src/api.ts
Original file line number Diff line number Diff line change
@@ -1,22 +0,0 @@
// import { getScopeComponent } from './api/consumer/index';
import HooksManager from './hooks';
// import { registerCoreExtensions } from './extensions/bit';
// import { manifestsMap as coreExtensions } from './extensions/bit';

// export { coreExtensions };

HooksManager.init();

// export function show(scopePath: string, id: string, opts?: Record<string, any>) {
// // When using the API programmatically do not use the scope cache by default
// const loadScopeFromCache = opts && opts.loadScopeFromCache !== undefined ? !!opts.loadScopeFromCache : false;
// // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
// return getScopeComponent({ scopePath, id, allVersions: opts && opts.versions, loadScopeFromCache }).then(
// ({ component }) => {
// if (Array.isArray(component)) {
// return component.map((v) => v.toObject());
// }
// return component.toObject();
// }
// );
// }
1 change: 0 additions & 1 deletion src/index.ts

This file was deleted.

0 comments on commit ca3c1ce

Please sign in to comment.