Files
openstapps/turbowatch.ts
2023-11-07 12:48:21 +01:00

16 lines
361 B
TypeScript

import {defineConfig} from 'turbowatch';
export default defineConfig({
project: __dirname,
triggers: [
{
expression: ['anyof', ['not', ['dirname', 'node_modules']]],
interruptible: true,
name: 'backend',
onChange: async ({spawn}) => {
await spawn`dotenv -c -- turbo run start --filter=backend`;
},
},
],
});