diff --git a/demos/angular-supabase-todolist/README.md b/demos/angular-supabase-todolist/README.md index 6b32f90c..34dd08e6 100644 --- a/demos/angular-supabase-todolist/README.md +++ b/demos/angular-supabase-todolist/README.md @@ -22,7 +22,7 @@ A step-by-step guide on Supabase<>PowerSync integration is available [here](http ### Notes - The Angular development server (`pnpm serve`) doesn't support service worker applications -- For Angular, workers need to be configured when instantiating `PowerSyncDatabase`. To do this, copy the worker assets (`pnpm powersync-web copy-assets -o src/assets` - done automatically as `pre-` steps in this demo for serving and building) and ensure the worker paths are specified ([example here](./src/app/powersync.service.ts)). +- For Angular, workers need to be configured when instantiating `PowerSyncDatabase`. To do this, copy the worker assets (`pnpm powersync-web copy-assets -o src/assets` - done automatically in this demo for serving and building) and ensure the worker paths are specified ([example here](./src/app/powersync.service.ts)). ## Development Server diff --git a/demos/angular-supabase-todolist/package.json b/demos/angular-supabase-todolist/package.json index 584e6ba2..7a1e29de 100644 --- a/demos/angular-supabase-todolist/package.json +++ b/demos/angular-supabase-todolist/package.json @@ -4,11 +4,9 @@ "scripts": { "copy-assets": "pnpm powersync-web copy-assets -o src/assets", "ng": "ng", - "preserve": "pnpm copy-assets", - "serve": "ng serve", + "serve": "pnpm copy-assets && ng serve", "start": "http-server -p 8080 -c-1 dist/", - "prebuild": "pnpm copy-assets", - "build": "ng build", + "build": "pnpm copy-assets && ng build", "format": "prettier --write .", "test:build": "pnpm build", "prewatch": "pnpm copy-assets",