mihailik commited on
Commit
1a7c519
·
1 Parent(s): e8f8165

Better handling of build.

Browse files
Files changed (2) hide show
  1. .github/workflows/build.yml +1 -1
  2. package.json +1 -1
.github/workflows/build.yml CHANGED
@@ -31,7 +31,7 @@ jobs:
31
  run: npm install # Installs your project's npm dependencies.
32
 
33
  - name: Build project
34
- run: npm run build && cp ./index*.* ./dist/ # Runs your project's build script (e.g., Vite, esbuild)
35
 
36
  - name: Upload artifact for GitHub Pages
37
  uses: actions/upload-pages-artifact@v3
 
31
  run: npm install # Installs your project's npm dependencies.
32
 
33
  - name: Build project
34
+ run: npm run build -- --outfile=./dist/index.js && cp index.html ./dist/index.html # Runs your project's build script (e.g., Vite, esbuild)
35
 
36
  - name: Upload artifact for GitHub Pages
37
  uses: actions/upload-pages-artifact@v3
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "localm",
3
- "version": "1.2.8",
4
  "description": "Chat application",
5
  "scripts": {
6
  "build": "esbuild src/index.js --target=es6 --bundle --sourcemap --outfile=./index.js --format=iife --external:fs --external:path --external:child_process --external:ws --external:katex/dist/katex.min.css",
 
1
  {
2
  "name": "localm",
3
+ "version": "1.2.9",
4
  "description": "Chat application",
5
  "scripts": {
6
  "build": "esbuild src/index.js --target=es6 --bundle --sourcemap --outfile=./index.js --format=iife --external:fs --external:path --external:child_process --external:ws --external:katex/dist/katex.min.css",