|
@@ -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"
|
|
|
|
|
+ }
|
|
|
|
|
+}
|