Skip to content

Commit

Permalink
feat(game/scripts): copyOnStart for watch script
Browse files Browse the repository at this point in the history
  • Loading branch information
itschip committed Jan 27, 2024
1 parent bdc71f4 commit f73971b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/game/scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { build } = require('esbuild');

const { copy } = require('esbuild-plugin-copy');

build({
Expand Down
1 change: 1 addition & 0 deletions apps/game/scripts/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ build({
copy({
resolveFrom: 'cwd',
verbose: true,
copyOnStart: true,
assets: {
from: ['client/cl_controls.lua'],
to: ['../../dist/game/client/cl_controls.lua'],
Expand Down

0 comments on commit f73971b

Please sign in to comment.