Skip to content

Commit f04b036

Browse files
authored
Merge pull request #228 from HashLips/dev
Fixed path error
2 parents 3212078 + c42c04e commit f04b036

File tree

13 files changed

+297
-341
lines changed

13 files changed

+297
-341
lines changed

constants/blend_mode.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"use strict";
2-
31
const MODE = {
42
sourceOver: "source-over",
53
sourceIn: "source-in",

constants/network.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"use strict";
2-
31
const NETWORK = {
42
eth: "eth",
53
sol: "sol",

index.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
"use strict";
2-
3-
const path = require("path");
4-
const isLocal = typeof process.pkg === "undefined";
5-
const basePath = isLocal ? process.cwd() : path.dirname(process.execPath);
6-
const { startCreating, buildSetup } = require(path.join(
7-
basePath,
8-
"/src/main.js"
9-
));
1+
const basePath = process.cwd();
2+
const { startCreating, buildSetup } = require(`${basePath}/src/main.js`);
103

114
(() => {
125
buildSetup();

package-lock.json

Lines changed: 99 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hashlips_art_engine",
3-
"version": "1.0.9",
3+
"version": "1.1.1",
44
"description": "HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.",
55
"main": "index.js",
66
"bin": "index.js",

src/config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
"use strict";
2-
3-
const path = require("path");
4-
const isLocal = typeof process.pkg === "undefined";
5-
const basePath = isLocal ? process.cwd() : path.dirname(process.execPath);
6-
const { MODE } = require(path.join(basePath, "constants/blend_mode.js"));
7-
const { NETWORK } = require(path.join(basePath, "constants/network.js"));
1+
const basePath = process.cwd();
2+
const { MODE } = require(`${basePath}/constants/blend_mode.js`);
3+
const { NETWORK } = require(`${basePath}/constants/network.js`);
84

95
const network = NETWORK.eth;
106

@@ -48,6 +44,7 @@ const debugLogs = false;
4844
const format = {
4945
width: 512,
5046
height: 512,
47+
smoothing: false,
5148
};
5249

5350
const gif = {

0 commit comments

Comments
 (0)