Skip to content
This repository was archived by the owner on Jun 15, 2025. It is now read-only.

Commit e919416

Browse files
committed
fix broken build scripts
1 parent f9b76e3 commit e919416

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

templates/react-ts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function main () {
3131
// The second argument to this program will be the target-OS specifc
3232
// directory for where to copy your build artifacts
3333
//
34-
const target = path.resolve(process.argv[2])
34+
const target = path.resolve(process.env.PREFIX)
3535

3636
//
3737
// If the watch command is specified, let esbuild start its server

templates/react/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function main () {
3131
// The second argument to this program will be the target-OS specifc
3232
// directory for where to copy your build artifacts
3333
//
34-
const target = path.resolve(process.argv[2])
34+
const target = path.resolve(process.env.PREFIX)
3535

3636
//
3737
// If the watch command is specified, let esbuild start its server

templates/svelte/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function main () {
1616
// The second argument to this program will be the target-OS specifc
1717
// directory for where to copy your build artifacts
1818
//
19-
const target = path.resolve(process.argv[2])
19+
const target = path.resolve(process.env.PREFIX)
2020

2121
//
2222
// If the watch command is specified, let esbuild start its server

templates/tonic/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function main () {
3131
// The second argument to this program will be the target-OS specifc
3232
// directory for where to copy your build artifacts
3333
//
34-
const target = path.resolve(process.argv[2])
34+
const target = path.resolve(process.env.PREFIX)
3535

3636
//
3737
// If the watch command is specified, let esbuild start its server

templates/vanilla/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function main () {
3131
// The second argument to this program will be the target-OS specifc
3232
// directory for where to copy your build artifacts
3333
//
34-
const target = path.resolve(process.argv[2])
34+
const target = path.resolve(process.env.PREFIX)
3535

3636
//
3737
// If the watch command is specified, let esbuild start its server

templates/vue/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function main () {
1616
// The second argument to this program will be the target-OS specifc
1717
// directory for where to copy your build artifacts
1818
//
19-
const target = path.resolve(process.argv[2])
19+
const target = path.resolve(process.env.PREFIX)
2020

2121
//
2222
// If the watch command is specified, let esbuild start its server

0 commit comments

Comments
 (0)