- Convert all require()/module.exports to import/export across 260+ files - Add "type": "module" to package.json to enable ESM by default - Add migrations/package.json with "type": "commonjs" to keep db-migrate compatible - Convert eslint.config.js to ESM with sourceType: "module" - Replace __dirname/__filename with import.meta.dirname/import.meta.filename - Replace require.main === module with process.argv[1] === import.meta.filename - Remove 'use strict' directives (implicit in ESM) - Convert dynamic require() in switch statements to static import lookup maps (dns.js, domains.js, backupformats.js, backupsites.js, network.js) - Extract self-referencing exports.CONSTANT patterns into standalone const declarations (apps.js, services.js, locks.js, users.js, mail.js, etc.) - Lazify SERVICES object in services.js to avoid circular dependency TDZ issues - Add clearMailQueue() to mailer.js for ESM-safe queue clearing in tests - Add _setMockApp() to ldapserver.js for ESM-safe test mocking - Add _setMockResolve() wrapper to dig.js for ESM-safe DNS mocking in tests - Convert backupupload.js to use dynamic imports so --check exits before loading the module graph (which requires BOX_ENV) - Update check-install to use ESM import for infra_version.js - Convert scripts/ (hotfix, release, remote_hotfix.js, find-unused-translations) - All 1315 tests passing Migration stats (AI-assisted using Cursor with Claude): - Wall clock time: ~3-4 hours - Assistant completions: ~80-100 - Estimated token usage: ~1-2M tokens Co-authored-by: Cursor <cursoragent@cursor.com>
79 lines
2.0 KiB
JSON
79 lines
2.0 KiB
JSON
{
|
|
"name": "cloudron-platform",
|
|
"description": "Cloudron Platform (Box)",
|
|
"version": "9.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"contributors": [
|
|
"Girish",
|
|
"Johannes"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.cloudron.io/platform/box.git"
|
|
},
|
|
"dependencies": {
|
|
"@simplewebauthn/server": "^13.1.1",
|
|
"@aws-sdk/client-route-53": "^3.984.0",
|
|
"@aws-sdk/client-s3": "^3.984.0",
|
|
"@aws-sdk/lib-storage": "^3.984.0",
|
|
"@cloudron/connect-lastmile": "^2.3.0",
|
|
"@cloudron/manifest-format": "^5.35.0",
|
|
"@cloudron/pipework": "^1.2.0",
|
|
"@cloudron/superagent": "^1.0.1",
|
|
"@google-cloud/dns": "^5.3.1",
|
|
"@google-cloud/storage": "^7.19.0",
|
|
"@smithy/node-http-handler": "^4.4.9",
|
|
"@smithy/util-retry": "^4.2.8",
|
|
"@types/node": "^25.2.1",
|
|
"async": "^3.2.6",
|
|
"connect": "^3.7.0",
|
|
"connect-timeout": "^1.9.1",
|
|
"cookie-parser": "^1.4.7",
|
|
"cookie-session": "^2.1.1",
|
|
"cron": "^4.4.0",
|
|
"db-migrate": "^0.11.14",
|
|
"db-migrate-mysql": "^3.0.0",
|
|
"debug": "^4.4.3",
|
|
"dockerode": "^4.0.9",
|
|
"domrobot-client": "^3.3.0",
|
|
"ejs": "^4.0.1",
|
|
"express": "^5.2.1",
|
|
"jose": "^6.1.3",
|
|
"jsdom": "^27.4.0",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"ldapjs": "^2.3.3",
|
|
"marked": "^17.0.1",
|
|
"moment": "^2.30.1",
|
|
"moment-timezone": "^0.6.0",
|
|
"multiparty": "^4.2.3",
|
|
"mysql2": "^3.16.3",
|
|
"nodemailer": "^7.0.13",
|
|
"oidc-provider": "^9.6.0",
|
|
"ovh": "^2.0.3",
|
|
"qrcode": "^1.5.4",
|
|
"safetydance": "^2.5.1",
|
|
"semver": "^7.7.4",
|
|
"speakeasy": "^2.0.0",
|
|
"tar-stream": "^3.1.7",
|
|
"tldjs": "^2.3.2",
|
|
"ua-parser-js": "^2.0.9",
|
|
"ws": "^8.19.0",
|
|
"xml2js": "^0.6.2"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.2",
|
|
"commander": "^14.0.3",
|
|
"easy-table": "^1.2.0",
|
|
"eslint": "^9.39.2",
|
|
"eventsource": "^4.1.0",
|
|
"expect.js": "*",
|
|
"mocha": "^11.7.5",
|
|
"nock": "^14.0.10",
|
|
"ssh2": "^1.17.0"
|
|
},
|
|
"scripts": {
|
|
"test": "./run-tests"
|
|
}
|
|
}
|