@code-inspector/core 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.iife.js +1 -1
- package/dist/client.umd.js +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +62290 -62335
- package/package.json +2 -2
- package/types/shared/type.d.ts +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-inspector/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@vue/compiler-dom": "^3.5.13",
|
|
42
42
|
"chalk": "^4.1.1",
|
|
43
43
|
"dotenv": "^16.1.4",
|
|
44
|
-
"launch-ide": "1.
|
|
44
|
+
"launch-ide": "1.4.0",
|
|
45
45
|
"portfinder": "^1.0.28"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
package/types/shared/type.d.ts
CHANGED
|
@@ -181,5 +181,19 @@ export type CodeOptions = {
|
|
|
181
181
|
* @en Whether to enable the server function. The default value is `open`, which means enabling the server function. The server function must be enabled when using the code location function, and it can be closed when building online only to view the dom path.
|
|
182
182
|
*/
|
|
183
183
|
server?: 'open' | 'close';
|
|
184
|
+
/**
|
|
185
|
+
* @zh 启动 IDE 的方式。默认为 `exec`
|
|
186
|
+
* - exec: 使用可执行路径打开 editor
|
|
187
|
+
* - open: 使用 `open "{editor}://file/xxx/main.jsx:10:20"` 方式来打开。速度快且体验非常丝滑
|
|
188
|
+
*
|
|
189
|
+
* 仅支持 MacOS,如果 editor 在支持列表内,强烈建议设置 `launchType: 'open'`。editor 支持列表请参考:[which editor supports to be launched by open](https://github.com/zh-lx/launch-ide?tab=readme-ov-file#which-editor-supports-to-be-launched-by-open)。
|
|
190
|
+
*
|
|
191
|
+
* @en The method for launching the IDE. Default value is `exec`
|
|
192
|
+
* - exec: Use the executable path to open the editor
|
|
193
|
+
* - open: Use `open "{editor}://file/xxx/main.jsx:10:20"` to open. It is fast and provides a very smooth experience
|
|
194
|
+
*
|
|
195
|
+
* Only supports MacOS. If the editor is in the support list, it is strongly recommended to set `launchType: 'open'`. The support list can be found at: [which editor supports to be launched by open](https://github.com/zh-lx/launch-ide?tab=readme-ov-file#which-editor-supports-to-be-launched-by-open).
|
|
196
|
+
*/
|
|
197
|
+
launchType?: 'exec' | 'open';
|
|
184
198
|
};
|
|
185
199
|
export {};
|