Skip to content

Commit a7e633d

Browse files
committed
Added local module
1 parent ea36d5e commit a7e633d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ const path = require("path");
44
const isLocal = typeof process.pkg === "undefined";
55
const basePath = isLocal ? process.cwd() : path.dirname(process.execPath);
66
const fs = require("fs");
7-
const sha1 = require("sha1");
8-
const { createCanvas, loadImage } = require("canvas");
7+
const sha1 = require(path.join(basePath, "/node_modules/sha1"));
8+
const { createCanvas, loadImage } = require(path.join(
9+
basePath,
10+
"/node_modules/canvas"
11+
));
912
const buildDir = path.join(basePath, "/build");
1013
const layersDir = path.join(basePath, "/layers");
1114
console.log(path.join(basePath, "/src/config.js"));

0 commit comments

Comments
 (0)