snapshot of https://github.com/tldraw/tldraw.git (main, 2026-09-23; blobs > 131072B omitted)
Some checks failed
Deploy analytics worker / Deploy analytics worker to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
i18n upload strings / Upload latest strings (push) Failing after 1s
Deploy bemo / Deploy bemo to ${{ (github.ref == 'refs/heads/bemo-production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
Deploy grafana resources / ${{ github.event_name == 'push' && 'Deploy grafana resources' || 'Validate grafana resources (dry run)' }} (push) Failing after 0s
End to end tests (dotcom) / Check for relevant changes (push) Failing after 0s
End to end tests (examples) / Check for relevant changes (push) Failing after 0s
End to end tests (mermaid readability) / Check for relevant changes (push) Failing after 1s
End to end tests (perf) / Check for relevant changes (push) Failing after 0s
Publish editor extensions / Publish editor extensions (push) Failing after 1s
Publish SDK packages / Remove the publish-packages label (push) Has been skipped
Checks / Tests & checks (push) Has been cancelled
Checks / Build all projects (push) Has been cancelled
Deploy templates / Deploy templates (push) Has been cancelled
End to end tests (dotcom) / End to end tests (dotcom) (push) Has been cancelled
End to end tests (mermaid readability) / End to end tests (mermaid readability) (push) Has been cancelled
End to end tests (perf) / End to end tests (perf) (push) Has been cancelled
Deploy .com / Deploy dotcom to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Has been cancelled
End to end tests (examples) / End to end tests (examples) (push) Has been cancelled
Publish SDK packages / Publish SDK packages (push) Has been cancelled
Publish SDK packages / Tell user released version (push) Has been cancelled
Publish SDK packages / Publishes code templates to separate repositories (push) Has been cancelled
Publish SDK packages / Deploys the template demos with the new SDK version (push) Has been cancelled
Some checks failed
Deploy analytics worker / Deploy analytics worker to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
i18n upload strings / Upload latest strings (push) Failing after 1s
Deploy bemo / Deploy bemo to ${{ (github.ref == 'refs/heads/bemo-production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
Deploy grafana resources / ${{ github.event_name == 'push' && 'Deploy grafana resources' || 'Validate grafana resources (dry run)' }} (push) Failing after 0s
End to end tests (dotcom) / Check for relevant changes (push) Failing after 0s
End to end tests (examples) / Check for relevant changes (push) Failing after 0s
End to end tests (mermaid readability) / Check for relevant changes (push) Failing after 1s
End to end tests (perf) / Check for relevant changes (push) Failing after 0s
Publish editor extensions / Publish editor extensions (push) Failing after 1s
Publish SDK packages / Remove the publish-packages label (push) Has been skipped
Checks / Tests & checks (push) Has been cancelled
Checks / Build all projects (push) Has been cancelled
Deploy templates / Deploy templates (push) Has been cancelled
End to end tests (dotcom) / End to end tests (dotcom) (push) Has been cancelled
End to end tests (mermaid readability) / End to end tests (mermaid readability) (push) Has been cancelled
End to end tests (perf) / End to end tests (perf) (push) Has been cancelled
Deploy .com / Deploy dotcom to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Has been cancelled
End to end tests (examples) / End to end tests (examples) (push) Has been cancelled
Publish SDK packages / Publish SDK packages (push) Has been cancelled
Publish SDK packages / Tell user released version (push) Has been cancelled
Publish SDK packages / Publishes code templates to separate repositories (push) Has been cancelled
Publish SDK packages / Deploys the template demos with the new SDK version (push) Has been cancelled
This commit is contained in:
147
lazy.config.ts
Normal file
147
lazy.config.ts
Normal file
@@ -0,0 +1,147 @@
|
||||
import { LazyConfig } from 'lazyrepo'
|
||||
|
||||
const config = {
|
||||
baseCacheConfig: {
|
||||
include: [
|
||||
'<rootDir>/package.json',
|
||||
'<rootDir>/yarn.lock',
|
||||
'<rootDir>/lazy.config.ts',
|
||||
'<rootDir>/internal/config/**/*',
|
||||
'<rootDir>/internal/scripts/**/*',
|
||||
'package.json',
|
||||
],
|
||||
exclude: [
|
||||
'<allWorkspaceDirs>/coverage/**/*',
|
||||
'<allWorkspaceDirs>/dist*/**/*',
|
||||
'<allWorkspaceDirs>/.next*/**/*',
|
||||
'**/*.tsbuildinfo',
|
||||
'<rootDir>/docs/gen/**/*',
|
||||
],
|
||||
},
|
||||
scripts: {
|
||||
build: {
|
||||
baseCommand: 'exit 0',
|
||||
runsAfter: {
|
||||
prebuild: {},
|
||||
'refresh-assets': {},
|
||||
'build-i18n': {},
|
||||
},
|
||||
workspaceOverrides: {
|
||||
'apps/vscode/*': { runsAfter: { 'refresh-assets': {} } },
|
||||
'packages/*': {
|
||||
runsAfter: { 'build-api': { in: 'self-only' }, prebuild: { in: 'self-only' } },
|
||||
cache: {
|
||||
inputs: ['api/**/*', 'src/**/*'],
|
||||
},
|
||||
},
|
||||
'apps/docs': {
|
||||
runsAfter: { 'build-api': { in: 'all-packages' } },
|
||||
cache: {
|
||||
inputs: [
|
||||
'app/**/*',
|
||||
'api/**/*',
|
||||
'components/**/*',
|
||||
'public/**/*',
|
||||
'scripts/**/*',
|
||||
'styles/**/*',
|
||||
'types/**/*',
|
||||
'utils/**/*',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
dev: {
|
||||
execution: 'independent',
|
||||
runsAfter: { predev: {}, 'refresh-assets': {}, 'build-i18n': {} },
|
||||
cache: 'none',
|
||||
workspaceOverrides: {
|
||||
'apps/vscode/*': { runsAfter: { build: { in: 'self-only' } } },
|
||||
},
|
||||
},
|
||||
// predev/prebuild are the css-copy scripts. They write generated, gitignored files
|
||||
// (tldraw.css, commenting.css, ...) that lazy doesn't track as outputs, so a cache hit
|
||||
// would skip regenerating a file that's missing on disk and vite would fail to resolve it.
|
||||
// They're a few file copies, so just always run them.
|
||||
predev: {
|
||||
cache: 'none',
|
||||
},
|
||||
prebuild: {
|
||||
cache: 'none',
|
||||
},
|
||||
e2e: {
|
||||
cache: 'none',
|
||||
},
|
||||
'e2e-x10': {
|
||||
cache: 'none',
|
||||
},
|
||||
context: {
|
||||
execution: 'independent',
|
||||
cache: 'none',
|
||||
},
|
||||
'pack-tarball': {
|
||||
parallel: false,
|
||||
},
|
||||
'refresh-assets': {
|
||||
execution: 'top-level',
|
||||
baseCommand: `tsx <rootDir>/internal/scripts/refresh-assets.ts`,
|
||||
cache: {
|
||||
inputs: [
|
||||
'package.json',
|
||||
`<rootDir>/internal/scripts/refresh-assets.ts`,
|
||||
`<rootDir>/assets/**/*`,
|
||||
`<rootDir>/apps/dotcom/client/assets/**/*`,
|
||||
`<rootDir>/packages/*/package.json`,
|
||||
],
|
||||
},
|
||||
},
|
||||
'build-types': {
|
||||
execution: 'top-level',
|
||||
baseCommand: `tsx <rootDir>/internal/scripts/typecheck.ts`,
|
||||
cache: {
|
||||
inputs: {
|
||||
include: ['<allWorkspaceDirs>/**/*.{ts,tsx}', '<allWorkspaceDirs>/tsconfig.json'],
|
||||
exclude: ['<allWorkspaceDirs>/dist*/**/*', '<allWorkspaceDirs>/api/**/*'],
|
||||
},
|
||||
outputs: ['<allWorkspaceDirs>/*.tsbuildinfo', '<allWorkspaceDirs>/.tsbuild/**/*'],
|
||||
},
|
||||
runsAfter: {
|
||||
'refresh-assets': {},
|
||||
'maybe-clean-tsbuildinfo': {},
|
||||
},
|
||||
},
|
||||
'build-api': {
|
||||
execution: 'independent',
|
||||
cache: {
|
||||
inputs: ['.tsbuild/**/*.d.ts', 'tsconfig.json'],
|
||||
outputs: ['api/**/*'],
|
||||
},
|
||||
runsAfter: {
|
||||
'build-types': {
|
||||
// Because build-types is top level, if usesOutput were set to true every
|
||||
// build-api task would depend on all the .tsbuild files in the whole
|
||||
// repo. So we set this to false and configure it to use only the
|
||||
// local .tsbuild files
|
||||
usesOutput: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
'build-i18n': {
|
||||
execution: 'independent',
|
||||
cache: {
|
||||
inputs: ['<rootDir>/apps/dotcom/client/public/tla/locales/*.json'],
|
||||
outputs: ['<rootDir>/apps/dotcom/client/public/tla/locales-compiled/*.json'],
|
||||
},
|
||||
},
|
||||
'api-check': {
|
||||
execution: 'top-level',
|
||||
baseCommand: `tsx <rootDir>/internal/scripts/api-check.ts`,
|
||||
runsAfter: { 'build-api': {} },
|
||||
cache: {
|
||||
inputs: [`<rootDir>/packages/*/api/public.d.ts`],
|
||||
},
|
||||
},
|
||||
},
|
||||
} satisfies LazyConfig
|
||||
|
||||
export default config
|
||||
Reference in New Issue
Block a user