diff --git a/lazy.config.ts b/lazy.config.ts index b39923632..e8670628f 100644 --- a/lazy.config.ts +++ b/lazy.config.ts @@ -32,7 +32,7 @@ const config = { }, dev: { execution: 'independent', - runsAfter: { 'refresh-assets': {} }, + runsAfter: { predev: {}, 'refresh-assets': {} }, cache: 'none', workspaceOverrides: { 'apps/vscode/*': { runsAfter: { build: { in: 'self-only' } } }, diff --git a/packages/tldraw/package.json b/packages/tldraw/package.json index 96e2a8db3..cba34125b 100644 --- a/packages/tldraw/package.json +++ b/packages/tldraw/package.json @@ -31,7 +31,8 @@ "scripts": { "test": "lazy inherit", "test-coverage": "lazy inherit", - "dev": "chokidar '../{editor/editor,tldraw/src/lib/ui}.css' -c 'node ./scripts/copy-css-files.mjs' --initial", + "predev": "node ./scripts/copy-css-files.mjs", + "dev": "chokidar '../{editor/editor,tldraw/src/lib/ui}.css' -c 'node ./scripts/copy-css-files.mjs'", "prebuild": "node ./scripts/copy-css-files.mjs", "build": "yarn run -T tsx ../../scripts/build-package.ts", "build-api": "yarn run -T tsx ../../scripts/build-api.ts",