Răsfoiți Sursa

create deon

warrior 9 ore în urmă
părinte
comite
f73cff7724

+ 29 - 0
deno.jsonc

@@ -0,0 +1,29 @@
+{
+  // 与 gongzuo-server 保持一致的关键映射与兼容设置
+  "compilerOptions": {
+    "allowJs": true,
+    "lib": ["deno.window"],
+    "strict": false
+  },
+  "nodeCompat": {
+    "enable": true,    // 启用 Node 兼容模式
+    "require": true,   // 允许 require(部分模块可能用到)
+    "globals": true    // 注入 __dirname 等
+  },
+  "imports": {
+    // 统一 Express 版本,确保主应用与子路由使用同一实例
+    "express": "npm:express@4.21.2",
+    // Parse 相关引用保持一致
+    "parse": "npm:parse@5.3.0",
+    "parse/node": "npm:parse@5.3.0/node",
+    "parse/lib/node/Parse.js": "npm:parse@5.3.0/lib/node/Parse.js",
+    // 常用 Node/三方依赖映射
+    "ali-oss": "npm:ali-oss@6.23.0",
+    "parse-server": "npm:parse-server@7.5.4",
+    "crypto": "node:crypto",
+    "path": "node:path",
+    "events": "node:events",
+    "util": "node:util",
+    "uuid": "npm:uuid"
+  }
+}

+ 29 - 0
modules/fmode-brightdata-server/deno.json

@@ -0,0 +1,29 @@
+{
+  "compilerOptions": {
+    "allowJs": true,
+    "lib": ["deno.window"],
+    "strict": true
+  },
+  "imports": {
+    "express": "npm:express@^4.18.2",
+    "axios": "npm:axios@^1.6.0"
+  },
+  "tasks": {
+    "dev": "deno run --allow-net --allow-read --allow-env src/mod.ts",
+    "build": "deno task build:npm",
+    "build:npm": "deno run -A npm:typescript/tsc"
+  },
+  "fmt": {
+    "useTabs": false,
+    "lineWidth": 100,
+    "indentWidth": 2,
+    "semiColons": true,
+    "singleQuote": true
+  },
+  "lint": {
+    "rules": {
+      "tags": ["recommended"]
+    }
+  },
+  "nodeModulesDir": true
+}

+ 29 - 0
modules/fmode-tikhub-server/deno.json

@@ -0,0 +1,29 @@
+{
+  "compilerOptions": {
+    "allowJs": true,
+    "lib": ["deno.window"],
+    "strict": true
+  },
+  "imports": {
+    "express": "npm:express@^4.18.2",
+    "axios": "npm:axios@^1.6.0"
+  },
+  "tasks": {
+    "dev": "deno run --allow-net --allow-read --allow-env src/mod.ts",
+    "build": "deno task build:npm",
+    "build:npm": "deno run -A npm:typescript/tsc"
+  },
+  "fmt": {
+    "useTabs": false,
+    "lineWidth": 100,
+    "indentWidth": 2,
+    "semiColons": true,
+    "singleQuote": true
+  },
+  "lint": {
+    "rules": {
+      "tags": ["recommended"]
+    }
+  },
+  "nodeModulesDir": true
+}