mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-07 22:24:06 -05:00
feat(build): added turbopack in dev & fixed circular dependency (#328)
* fix(tools): fixed x tool * feat(build): added turbopack in dev & fixed circular dependency * add turbopack config * fixed failing test bc of circular import
This commit is contained in:
16
.github/CONTRIBUTING.md
vendored
16
.github/CONTRIBUTING.md
vendored
@@ -313,22 +313,20 @@ In addition, you will need to update the registries:
|
||||
```
|
||||
|
||||
4. **Register Your Block:**
|
||||
Import and add your block to the blocks registry (`/sim/blocks/index.ts`) in the appropriate index file so it appears in the workflow builder.
|
||||
Add your block to the blocks registry (`/sim/blocks/registry.ts`):
|
||||
|
||||
```typescript:/sim/blocks/index.ts
|
||||
```typescript:/sim/blocks/registry.ts
|
||||
import { PineconeBlock } from './blocks/pinecone'
|
||||
|
||||
export const blocks = [
|
||||
|
||||
// Registry of all available blocks
|
||||
export const registry: Record<string, BlockConfig> = {
|
||||
// ... existing blocks
|
||||
PineconeBlock,
|
||||
]
|
||||
|
||||
export const blocksByType: Record<string, BlockConfig> = {
|
||||
// ... existing blocks by type
|
||||
pinecone: PineconeBlock,
|
||||
}
|
||||
```
|
||||
|
||||
The block will be automatically available to the application through the registry.
|
||||
|
||||
5. **Test Your Block:**
|
||||
Ensure that the block displays correctly in the UI and that its functionality works as expected.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user