mitch_83302
08/25/2024, 9:51 PMreshma
08/26/2024, 7:26 PMmitch_83302
08/26/2024, 7:28 PMreshma
08/26/2024, 7:30 PMmitch_83302
08/26/2024, 7:30 PMmitch_83302
08/26/2024, 7:30 PMreshma
08/26/2024, 7:30 PMmitch_83302
08/26/2024, 7:33 PMrahul1
09/02/2024, 10:18 PMrahul1
09/02/2024, 10:21 PMrahul1
09/02/2024, 10:25 PMmitch_83302
09/03/2024, 2:41 AMmitch_83302
09/03/2024, 2:41 AMmitch_83302
09/03/2024, 12:50 PMrahul1
09/10/2024, 8:06 AMmedplum-demo-bots repo (https://github.com/medplum/medplum-demo-bots)
2. Replace package.json with the contents copied below (essentially the same as yours, plus vitest)
3. npm i
4. npm run build
{
"name": "medplum-initial-test",
"version": "3.2.6",
"private": true,
"type": "module",
"scripts": {
"build": "npm run clean && npm run lint && tsc",
"clean": "rimraf dist",
"lint": "eslint src/",
"prettier": "prettier --write ."
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5"
},
"eslintConfig": {
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"@medplum/eslint-config"
],
"root": true
},
"devDependencies": {
"@medplum/bot-layer": "^3.2.7",
"@medplum/cli": "^3.2.7",
"@medplum/core": "^3.2.7",
"@medplum/eslint-config": "^3.2.7",
"@medplum/fhirtypes": "^3.2.7",
"@medplum/mock": "^3.2.7",
"@playwright/test": "^1.46.1",
"@types/node": "^22.2.0",
"@types/node-fetch": "^2.6.11",
"@types/pdfmake": "^0.2.9",
"@types/ssh2-sftp-client": "^9.0.3",
"fast-glob": "3.3.2",
"form-data": "4.0.0",
"node-fetch": "2.7.0",
"pdfmake": "^0.2.9",
"rimraf": "5.0.9",
"ssh2-sftp-client": "11.0.0",
"stripe": "16.7.0",
"typescript": "5.5.4",
"vitest": "2.0.5"
},
"include": [
"src"
]
}rahul1
09/10/2024, 8:07 AMnpm i, I was able to confirm tha the pdfmake types files were installed to
node_modules/@types/pdfmake/interfaces.d.tsrahul1
09/10/2024, 8:09 AMrahul1
09/10/2024, 8:10 AMtsconfig.json file to the one in the repo I provided.
We don't require DOM in that repo, we just use esnextmitch_83302
09/10/2024, 2:23 PMmitch_83302
09/10/2024, 2:24 PMrahul1
09/10/2024, 9:05 PMrahul1
09/10/2024, 9:05 PMrahul1
09/10/2024, 9:05 PMmitch_83302
09/11/2024, 1:56 PMmitch_83302
09/11/2024, 1:58 PMmitch_83302
09/11/2024, 9:39 PMrahul1
09/11/2024, 10:30 PMdemo-bots uses esbuild.
I had modified it before running to only use tsc, to try to reproduce your envronmentrahul1
09/11/2024, 10:33 PMrahul1
09/11/2024, 10:33 PMrahul1
09/11/2024, 10:33 PMmitch_83302
09/12/2024, 1:16 PMmitch_83302
09/12/2024, 1:22 PMmitch_83302
09/12/2024, 1:24 PMrahul1
09/12/2024, 3:03 PMrahul1
09/12/2024, 3:04 PMmedplum-demo-bots is that this is pure server-side code, and the TSconfig in that repo doesn't include the DOM at allmitch_83302
09/12/2024, 3:04 PM