Replies: 1 comment
-
|
A new function instead called something like optionalParallel or promptParallel could make more sense and give the user more control. export default scripts({
build: optionalParallel({
website: command({
run: "pnpm build",
cwd: "next"
}, 'Build the Website'),
app: command({
run: "pnpm build",
cwd: "expo"
}, 'Build the mobile app'),
server: command({
run: "pnpm build",
cwd: "fastify"
}, 'Build the backend server'),
}, 'Build the modules', {
prompt: 'Which modules would you like to build?',
default: ['website', 'app', 'server']
})
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With a scripts.ts like this, it would cool if it asked the user which steps to run in parallel, for example the user might only want to build the mobile app and backend as thats all they are working on.
Beta Was this translation helpful? Give feedback.
All reactions