Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbills committed Mar 2, 2024
1 parent ed218ba commit e64b6c6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/public/litecanvas.js
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"start": "esbuild src/index.js --bundle --watch --outfile=public/app.js --servedir=public",
"build": "esbuild src/index.js --bundle --minify --outfile=public/app.js",
"prepare": "node ./script/copy-files.js && npm run build"
"postinstall": "node ./script/copy-files.js && npm run build"
},
"keywords": [
"game development"
Expand All @@ -20,8 +20,8 @@
"dependencies": {
"@codemirror/lang-javascript": "^6.2.1",
"@codemirror/theme-one-dark": "^6.1.2",
"@litecanvas/litecanvas": "^0.1.0",
"@litecanvas/plugin-asset-loader": "^0.1.0",
"@litecanvas/litecanvas": "*",
"@litecanvas/plugin-asset-loader": "*",
"codemirror": "^6.0.1",
"pako": "^2.1.0"
}
Expand Down
6 changes: 5 additions & 1 deletion public/litecanvas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion script/copy-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { copyFile, unlink, readFile, appendFile } from "node:fs/promises";
const root = process.env["PWD"];
const engineFile = root + "/public/litecanvas.js";

unlink(engineFile);
await unlink(engineFile);

await copyFile(
root + "/node_modules/@litecanvas/litecanvas/dist/dist.js",
Expand Down

0 comments on commit e64b6c6

Please sign in to comment.