We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea36d5e commit a7e633dCopy full SHA for a7e633d
1 file changed
src/main.js
@@ -4,8 +4,11 @@ const path = require("path");
4
const isLocal = typeof process.pkg === "undefined";
5
const basePath = isLocal ? process.cwd() : path.dirname(process.execPath);
6
const fs = require("fs");
7
-const sha1 = require("sha1");
8
-const { createCanvas, loadImage } = require("canvas");
+const sha1 = require(path.join(basePath, "/node_modules/sha1"));
+const { createCanvas, loadImage } = require(path.join(
9
+ basePath,
10
+ "/node_modules/canvas"
11
+));
12
const buildDir = path.join(basePath, "/build");
13
const layersDir = path.join(basePath, "/layers");
14
console.log(path.join(basePath, "/src/config.js"));
0 commit comments