Files
captable/scripts/copy-pdfjs-worker.cjs
36b11e3606 feat: add basic document preview and update document schema (#120)
* feat: add react pdf

* fix: upload provider enum

* feat: add pdf viewer component

* feat: add company url

* feat: add get document procedure

* feat: add get all documents procedure

* feat: add create document procedure

* fix: schema

* feat; add all procedures

* fix: remove explicit type casting

* feat: update document schema

* feat: make uploader component more generic

* feat: use trpc and trpc types

* feat: use company id

* feat: add page layout component

* feat: add equity document upload page

* feat: add document detail page

* featL add pdf worker

* feat: rename props

* feat: add templates page

* feat : add bucket model

* feat: add relation for bucket

* feat: refactor document fields

* feat: update schema

* feat: add status for template

* feat: add bucket router

* feat: add create template procedure

* fix: relation

* feat: migration

* feat: add get template procedure

* feat: update document schema

* feat: use bucket procedure for uploader

* feat: use relavant procedures

* feat: use template for query

* feat: use data

* fix: provider enum

* feat: add order by

* feat: add new fields

* fix: eslint and build error and some minor changes

---------

Co-authored-by: Puru D <[email protected]>
2024-02-15 20:39:39 -06:00

15 lines
536 B
JavaScript

#!/usr/bin/env node
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const fs = require("fs");
const pdfjsDistPath = path.dirname(require.resolve("pdfjs-dist/package.json"));
const pdfWorkerPath = path.join(pdfjsDistPath, "build", "pdf.worker.min.js");
fs.copyFileSync(pdfWorkerPath, "./public/pdf.worker.min.js");