From c494b5fb3e036dfd24e6865b4eccad5e8d0ab119 Mon Sep 17 00:00:00 2001 From: SikongJueluo Date: Sat, 20 Dec 2025 16:28:57 +0800 Subject: [PATCH] chore(project): fully support ProbeJS v7.0 (Also ProbeJS Legacy v5.2.3) --- jsconfig.json | 2 +- src/client_scripts/ProbeDev.js | 15 +++++++++++++++ src/client_scripts/example.js | 1 - src/client_scripts/jsconfig.json | 11 +++++++++++ src/server_scripts/jsconfig.json | 10 ++++++++++ src/startup_scripts/jsconfig.json | 9 +++++++-- 6 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 src/client_scripts/ProbeDev.js delete mode 100644 src/client_scripts/example.js create mode 100644 src/client_scripts/jsconfig.json create mode 100644 src/server_scripts/jsconfig.json diff --git a/jsconfig.json b/jsconfig.json index 208b94c..b37631a 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -3,12 +3,12 @@ "compilerOptions": { "lib": ["ES5", "ES2015"], "target": "ES2015", + "module": "commonjs", "strict": true, "checkJs": true, "skipLibCheck": true, "noImplicitAny": true, "esModuleInterop": true, - "moduleResolution": "bundler", "forceConsistentCasingInFileNames": true } } diff --git a/src/client_scripts/ProbeDev.js b/src/client_scripts/ProbeDev.js new file mode 100644 index 0000000..d68be03 --- /dev/null +++ b/src/client_scripts/ProbeDev.js @@ -0,0 +1,15 @@ +/** + * WARN: Need Probejs v7.0 + * + * NOTE: This file is used for development. There is no need to load. + * Events execute when ProbeJS dumps. + * + * Author: SikongJueluo + * License: MIT + */ + +ProbeEvents.assignType((event) => {}); + +ProbeEvents.modifyClass((event) => {}); + +ProbeEvents.snippets((event) => {}); diff --git a/src/client_scripts/example.js b/src/client_scripts/example.js deleted file mode 100644 index d3f5a12..0000000 --- a/src/client_scripts/example.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/client_scripts/jsconfig.json b/src/client_scripts/jsconfig.json new file mode 100644 index 0000000..9d62c1e --- /dev/null +++ b/src/client_scripts/jsconfig.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://www.schemastore.org/jsconfig.json", + "extends": "../../jsconfig.json", + "compilerOptions": {}, + "include": [ + "./**/*", + "../../types/*.d.ts", + "../../types/probe/shared/*.d.ts", + "../../types/probe/client/**/*.d.ts" + ] +} diff --git a/src/server_scripts/jsconfig.json b/src/server_scripts/jsconfig.json new file mode 100644 index 0000000..4e6236b --- /dev/null +++ b/src/server_scripts/jsconfig.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://www.schemastore.org/jsconfig.json", + "extends": "../../jsconfig.json", + "include": [ + "./**/*", + "../../types/*.d.ts", + "../../types/probe/shared/*.d.ts", + "../../types/probe/server/**/*.d.ts" + ] +} diff --git a/src/startup_scripts/jsconfig.json b/src/startup_scripts/jsconfig.json index 46c8f1a..c3a7a10 100644 --- a/src/startup_scripts/jsconfig.json +++ b/src/startup_scripts/jsconfig.json @@ -2,7 +2,12 @@ "$schema": "https://www.schemastore.org/jsconfig.json", "extends": "../../jsconfig.json", "compilerOptions": { - "typeRoots": ["../../types/probe/startup/probe-types/"] + "typeRoots": ["../../types/probe/startup/"] }, - "include": ["./**/*", "../../types/*.d.ts"] + "include": [ + "./**/*", + "../../types/*.d.ts", + "../../types/probe/shared/*.d.ts", + "../../types/probe/startup/**/*.d.ts" + ] }