Skip to content

Commit

Permalink
chore: deps bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rosnovsky committed Sep 11, 2024
1 parent fe645ea commit abc3820
Show file tree
Hide file tree
Showing 9 changed files with 1,823 additions and 1,261 deletions.
Binary file added .DS_Store
Binary file not shown.
10 changes: 8 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import { generatePdf } from './utils/generatePdf';
import { getLogger } from './utils/logger';

const logger = getLogger("MAIN");

const INPUT_FILE_PATH = `${process.cwd()}/resume.md`;
const OUTPUT_FILE_PATH = `${process.cwd()}/output/art_rosnovsky_software_engineer.pdf`;

(async () => {
logger.info(`INPUT_FILE_PATH: ${INPUT_FILE_PATH}`);
logger.info(`OUTPUT_FILE_PATH: ${OUTPUT_FILE_PATH}`);
try {
logger.info("Generating PDF...");
await generatePdf(INPUT_FILE_PATH, OUTPUT_FILE_PATH);
} catch (error: any) {
console.error(`Error occurred: ${error.message}`);
logger.error(`Error occurred: ${error.message}`);
process.exit(1);
}
})
})()
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "resume-manager",
"version": "1.0.1",
"version": "1.0.2",
"description": "Converts Markdown resume to PDF format.",
"main": "dist/index.js",
"scripts": {
"build": "ts-node index.ts",
"build": "ts-node index.ts | pino-pretty",
"test": "NODE_ENV=\"test\" node --no-warnings --require \"ts-node/register\" --test **/**/*.test.ts"
},
"keywords": [
Expand All @@ -19,12 +19,14 @@
"dependencies": {
"markdown-pdf": "^11.0.0",
"md-to-pdf": "^5.2.4",
"typescript": "^5.2.2"
"pino": "^9.4.0",
"pino-pretty": "^11.2.2",
"typescript": "^5.6.2"
},
"devDependencies": {
"@types/markdown-pdf": "^9.0.5",
"@types/node": "latest",
"ts-node": "latest",
"@types/node": "^22.5.4",
"ts-node": "^10.9.2",
"typescript": "latest"
},
"engines": {
Expand Down
Loading

0 comments on commit abc3820

Please sign in to comment.