Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
including node-canvas v3
  • Loading branch information
k-yle committed Feb 16, 2025
1 parent b9e5b41 commit 84ce8f9
Show file tree
Hide file tree
Showing 11 changed files with 3,012 additions and 5,211 deletions.
13 changes: 0 additions & 13 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
JEST_IMAGE_SNAPSHOT_TRACK_OBSOLETE: 1

- name: 📸 Upload failed screenshot tests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshots
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
9 changes: 5 additions & 4 deletions bin/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-check
import { promises as fs } from "node:fs";
import { parseArgs } from "node:util";
import { join, basename, resolve } from "node:path";
import { basename, join, resolve } from "node:path";
import { pdf } from "../dist/index.js";

const { values, positionals } = parseArgs({
Expand All @@ -24,9 +24,10 @@ if (!inputFile) {
}

/** the name of the file, without the file extension */
const inputFileBaseName = /** @type {string} */ (
basename(inputFile)
).replace(/\.pdf$/, "");
const inputFileBaseName = /** @type {string} */ (basename(inputFile)).replace(
/\.pdf$/,
""
);

const fullInputFilePath = resolve(process.cwd(), inputFile);
const outputFolder = join(process.cwd(), values.output || "");
Expand Down
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import config from "eslint-config-kyle";

const updatedConfig = [...config, { rules: { quotes: "off" } }];

export default updatedConfig;
Loading

0 comments on commit 84ce8f9

Please sign in to comment.