Skip to content

Commit

Permalink
plugin-drizzle: move drizzle sink to placeholder package
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Dec 21, 2024
1 parent b1cba90 commit 242cbb4
Show file tree
Hide file tree
Showing 33 changed files with 127 additions and 1,870 deletions.
35 changes: 0 additions & 35 deletions examples/indexer/package.json

This file was deleted.

65 changes: 0 additions & 65 deletions examples/indexer/src/indexer.ts

This file was deleted.

43 changes: 0 additions & 43 deletions examples/indexer/src/instrumentation.ts

This file was deleted.

40 changes: 0 additions & 40 deletions examples/indexer/src/main.ts

This file was deleted.

6 changes: 1 addition & 5 deletions packages/cli/src/runtime/internal/app.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { createIndexer as _createIndexer } from "@apibara/indexer";
import {
type ConsolaReporter,
inMemoryPersistence,
logger,
} from "@apibara/indexer/plugins";
import { type ConsolaReporter, logger, inMemoryPersistence } from "@apibara/indexer/plugins";

import { config } from "#apibara-internal-virtual/config";
import { indexers } from "#apibara-internal-virtual/indexers";
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/types/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ConsolaReporter } from "@apibara/indexer/plugins/logger";
import type { ConsolaReporter } from "@apibara/indexer/plugins";
import type { RollupCommonJSOptions } from "@rollup/plugin-commonjs";
import type {
C12InputConfig,
Expand Down
10 changes: 0 additions & 10 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@
"@types/better-sqlite3": "^7.6.11",
"@types/node": "^20.14.0",
"@types/pg": "^8.11.10",
"better-sqlite3": "^11.5.0",
"csv-stringify": "^6.5.0",
"drizzle-orm": "^0.37.0",
"pg": "^8.13.1",
"postgres-range": "^1.1.4",
"unbuild": "^2.0.0",
"vitest": "^1.6.0"
},
Expand All @@ -73,11 +68,6 @@
"unctx": "^2.3.1"
},
"peerDependencies": {
"@electric-sql/pglite": "^0.2.14",
"better-sqlite3": "^11.5.0",
"csv-stringify": "^6.5.0",
"drizzle-orm": "^0.37.0",
"postgres-range": "^1.1.4",
"vitest": "^1.6.0"
}
}
7 changes: 1 addition & 6 deletions packages/indexer/src/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
export { defineIndexerPlugin, type IndexerPlugin } from "./config";
export {
type ConsolaInstance,
type ConsolaReporter,
logger,
useLogger,
} from "./logger";
export { type ConsolaInstance, type ConsolaReporter, logger, useLogger } from "./logger";
export { inMemoryPersistence } from "./persistence";
147 changes: 0 additions & 147 deletions packages/indexer/src/plugins/persistence.test.ts

This file was deleted.

Loading

0 comments on commit 242cbb4

Please sign in to comment.