lint & format
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user