Skip to content

Commit

Permalink
fix: build indexer-v2-db during build:all
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoquelet committed Feb 24, 2025
1 parent fe38125 commit b10db09
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/data-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "tsc",
"build:index": "tsc",
"build:all_repo": "pnpm run build:all",
"build:all": "pnpm -w run build:indexer-prisma && pnpm -w run build:prisma-db && pnpm build",
"build:all": "pnpm -w run build:indexer-prisma && pnpm -w run build:prisma-db && pnpm -w run build:indexer-v2-db && pnpm build",
"build:prisma": "",
"start": "ts-node src/index.ts",
"start:dev": "ts-node-dev src/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions apps/data-backend/src/routes/indexer/dao.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { FastifyInstance, RouteOptions } from 'fastify';
import { HTTPStatus } from '../../utils/http';
import { db } from 'indexer-v2-db';
import { daoCreation, daoProposal } from 'indexer-v2-db/dist/schema';
import { isValidStarknetAddress } from '../../utils/starknet';
import { eq } from 'drizzle-orm';
import { db } from 'indexer-v2-db/dist';
import { daoCreation, daoProposal } from 'indexer-v2-db/dist/schema';

interface DaoParams {
dao_address: string;
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer-v2/indexers/db/dao.db.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { db } from 'indexer-v2-db';
import { daoCreation, daoProposal, daoProposalVote } from 'indexer-v2-db/schema';
import { and, eq } from 'drizzle-orm';
import { daoCreation, daoProposal, daoProposalVote } from 'indexer-v2-db/schema';

interface DaoCreationData {
number: number;
Expand Down
5 changes: 2 additions & 3 deletions packages/indexer-v2-db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"name": "indexer-v2-db",
"version": "0.0.1",
"private": true,
"main": "dist/src/index.js",
"exports": {
".": "./dist/src/index.js",
"./schema": "./dist/src/schema.js"
".": "./dist/index.js",
"./schema": "./dist/schema.js"
},
"scripts": {
"build": "tsc",
Expand Down
3 changes: 1 addition & 2 deletions packages/indexer-v2-db/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"dist"
],
"include": [
"src/**/*.ts",
"drizzle*.config.ts"
"src/**/*.ts"
]
}

0 comments on commit b10db09

Please sign in to comment.