lint & format

This commit is contained in:
dwelle
2026-01-24 22:27:43 +01:00
parent be9981bda5
commit 29ba7fe96d
181 changed files with 3968 additions and 2654 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ config.entry = "../packages/excalidraw/index-node";
// to just a string with the path of the canvas.node file. We need to tell
// webpack to avoid rewriting that dependency.
config.externals = (context, request, callback) => {
if (/\.node$/.test(request)) {
if (request.endsWith(".node")) {
return callback(
null,
"commonjs ../../../node_modules/canvas/build/Release/canvas.node",
+3 -8
View File
@@ -23,14 +23,9 @@ for (const { pkg, src, dest } of wasmModules) {
const sourcePath = path.resolve(__dirname, src);
const destPath = path.resolve(__dirname, dest);
const {
name,
version,
author,
license,
authors,
licenses,
} = require(packagePath);
const { name, version, author, license, authors, licenses } = require(
packagePath,
);
const licenseContent = fs.readFileSync(licensePath, "utf-8") || "";
const base64 = fs.readFileSync(sourcePath, "base64");
+3 -3
View File
@@ -69,9 +69,9 @@ const getArguments = () => {
if (!version) {
// set the next version based on the excalidraw package version + commit hash
const excalidrawPackageVersion = require(getPackageJsonPath(
"excalidraw",
)).version;
const excalidrawPackageVersion = require(
getPackageJsonPath("excalidraw"),
).version;
const hash = getShortCommitHash();