Kumi
b3b61e941d
Some checks are pending
Checks / Tests & checks (push) Waiting to run
Checks / Build all projects (push) Waiting to run
Deploy bemo / Deploy bemo to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Waiting to run
Deploy .com / Deploy dotcom to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Waiting to run
End to end tests / End to end tests (push) Waiting to run
Publish Canary Packages / Publish Canary Packages (push) Waiting to run
Publish VS Code Extension / Publish VS Code Extension (push) Waiting to run
Switched from `itty-router` to `Express.js` to enhance route handling and middleware support. Refactored the worker script to use `express` for routing and added middlewares for JSON and CORS handling. Updated development tooling to use `nodemon` for automatic restarts on file changes, improving the developer experience. Replaced `var` with `const` for better code practices and added PostgreSQL support with relevant schema.
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"name": "@tldraw/dotcom-worker",
|
|
"description": "A tiny little drawing app (merge server).",
|
|
"version": "2.0.0-alpha.11",
|
|
"private": true,
|
|
"author": {
|
|
"name": "tldraw GB Ltd.",
|
|
"email": "hello@tldraw.com"
|
|
},
|
|
"main": "./src/worker.ts",
|
|
"/* GOTCHA */": "files will include ./dist and index.d.ts by default, add any others you want to include in here",
|
|
"files": [],
|
|
"scripts": {
|
|
"dev": "nodemon --watch src --exec npx tsx ./src/worker.ts",
|
|
"test-ci": "lazy inherit",
|
|
"test": "jest",
|
|
"test-coverage": "lazy inherit",
|
|
"check-bundle-size": "tsx ../../scripts/check-worker-bundle.ts --entry src/worker.ts --size-limit-bytes 350000",
|
|
"lint": "tsx ../../scripts/lint.ts"
|
|
},
|
|
"dependencies": {
|
|
"@supabase/auth-helpers-remix": "^0.2.2",
|
|
"@supabase/supabase-js": "^2.33.2",
|
|
"@tldraw/dotcom-shared": "workspace:*",
|
|
"@tldraw/store": "workspace:*",
|
|
"@tldraw/sync-core": "workspace:*",
|
|
"@tldraw/tlschema": "workspace:*",
|
|
"@tldraw/utils": "workspace:*",
|
|
"@tldraw/validate": "workspace:*",
|
|
"@tldraw/worker-shared": "workspace:*",
|
|
"express": "^4.19.2",
|
|
"itty-router": "^4.0.13",
|
|
"nanoid": "4.0.2",
|
|
"pg": "^8.12.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20240620.0",
|
|
"esbuild": "^0.21.5",
|
|
"lazyrepo": "0.0.0-alpha.27",
|
|
"nodemon": "^3.1.4",
|
|
"typescript": "^5.3.3",
|
|
"wrangler": "3.62.0"
|
|
},
|
|
"jest": {
|
|
"preset": "config/jest/node",
|
|
"moduleNameMapper": {
|
|
"^~(.*)": "<rootDir>/src/$1"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(nanoid|escape-string-regexp)/)"
|
|
]
|
|
}
|
|
}
|