social bookmarking for atproto

[spindle/backend] Fix module import error in commit.ts

hexmani.ac d97c6e2a d64f95eb

verified
+7 -8
+3 -4
.tangled/workflows/build_backend.yaml
··· 16 16 NODE_ENV: "development" 17 17 CI: true 18 18 19 + - name: "Run linter" 20 + command: "pnpm run --dir ./backend/ lint" 21 + 19 22 - name: "Build application" 20 23 command: "pnpm run --dir ./backend/ build" 21 24 environment: 22 25 NODE_ENV: "production" 23 - 24 - - name: "Run linter" 25 - command: "pnpm run --dir ./backend/ lint" 26 - 27 26 28 27 clone: 29 28 skip: false
+1 -1
backend/package.json
··· 5 5 "license": "AGPL-3.0-only", 6 6 "scripts": { 7 7 "dev": "tsx watch src/main.ts", 8 - "build": "rm -r dist/; tsc", 8 + "build": "tsc", 9 9 "start": "node dist/src/main.js", 10 10 "lint": "npx eslint .", 11 11 "lint-write": "npx eslint . --fix",
+1 -2
backend/src/network/commit.ts
··· 13 13 SocialClipprFeedClip, 14 14 SocialClipprFeedTag, 15 15 } from "@clipprjs/lexicons"; 16 - import type { At } from "@atcute/client/lexicons"; 17 16 import Logger from "../logger.js"; 18 17 import { isBlob } from "@atcute/lexicons/interfaces"; 19 18 import { validateClip, validateProfile, validateTag } from "./validator.js"; ··· 22 21 const db = Database.getInstance().getDb(); 23 22 24 23 /// Converts an ``At.DID`` type to a proper string, for type reasons. 25 - function convertDidToString(did: At.DID): string { 24 + function convertDidToString(did: `did:${string}`): string { 26 25 return did.toString(); 27 26 } 28 27
+2 -1
backend/tsconfig.json
··· 26 26 ] 27 27 }, 28 28 "exclude": [ 29 - "node_modules" 29 + "node_modules", 30 + "dist/" 30 31 ] 31 32 }