@veryfront/ext-content-mdx 0.1.1166 → 0.1.1168
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/esm/deno.js +1 -1
- package/esm/extensions/ext-content-mdx/src/index.js +1 -1
- package/esm/src/platform/compat/process/command.d.ts.map +1 -1
- package/esm/src/platform/compat/process/command.js +14 -10
- package/esm/src/utils/bundle-manifest.js +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +2 -2
package/esm/deno.js
CHANGED
|
@@ -45,7 +45,7 @@ const extMdx = () => {
|
|
|
45
45
|
capabilities: [],
|
|
46
46
|
setup(ctx) {
|
|
47
47
|
ctx.provide("ContentProcessor", impl);
|
|
48
|
-
ctx.logger.
|
|
48
|
+
ctx.logger.debug("[ext-content-mdx] ContentProcessor registered");
|
|
49
49
|
},
|
|
50
50
|
teardown() {
|
|
51
51
|
// No resources to release.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/compat/process/command.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/compat/process/command.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAyFD;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,aAAa,CAAC,CA+LxB"}
|
|
@@ -4,6 +4,15 @@ import { getDenoRuntime, isBun as IS_BUN, isDeno as IS_DENO } from "../runtime.j
|
|
|
4
4
|
import { isWindowsPlatform, runtimeProcess } from "./runtime-process.js";
|
|
5
5
|
const COMMAND_TIMEOUT_EXIT_CODE = 124;
|
|
6
6
|
const FORCE_KILL_GRACE_MS = 250;
|
|
7
|
+
function createShellCommand(cmd, args) {
|
|
8
|
+
if (isWindowsPlatform()) {
|
|
9
|
+
return { cmd: "cmd.exe", args: ["/d", "/s", "/c", cmd, ...args] };
|
|
10
|
+
}
|
|
11
|
+
if (args.length === 0) {
|
|
12
|
+
return { cmd: "sh", args: ["-c", cmd] };
|
|
13
|
+
}
|
|
14
|
+
return { cmd: "sh", args: ["-c", 'exec "$@"', "sh", cmd, ...args] };
|
|
15
|
+
}
|
|
7
16
|
function createTimeoutResult(timeoutMs, stdout, stderr) {
|
|
8
17
|
return {
|
|
9
18
|
success: false,
|
|
@@ -81,8 +90,9 @@ export async function runCommand(cmd, options = {}) {
|
|
|
81
90
|
const stdioMode = inherit ? "inherit" : capture ? "piped" : "null";
|
|
82
91
|
const deno = IS_DENO ? getDenoRuntime() : undefined;
|
|
83
92
|
if (deno) {
|
|
84
|
-
const
|
|
85
|
-
|
|
93
|
+
const denoCommand = shell ? createShellCommand(cmd, args) : { cmd, args };
|
|
94
|
+
const command = new deno.Command(denoCommand.cmd, {
|
|
95
|
+
args: denoCommand.args,
|
|
86
96
|
cwd: cmdCwd,
|
|
87
97
|
env: cmdEnv,
|
|
88
98
|
clearEnv,
|
|
@@ -115,14 +125,8 @@ export async function runCommand(cmd, options = {}) {
|
|
|
115
125
|
if (IS_BUN) {
|
|
116
126
|
const bunGlobal = dntShim.dntGlobalThis;
|
|
117
127
|
const bunStdio = inherit ? "inherit" : capture ? "pipe" : "ignore";
|
|
118
|
-
const
|
|
119
|
-
const bunCmd =
|
|
120
|
-
? args.length === 0
|
|
121
|
-
? isWindows ? ["cmd", "/c", cmd] : ["sh", "-c", cmd]
|
|
122
|
-
: isWindows
|
|
123
|
-
? ["cmd", "/c", cmd, ...args]
|
|
124
|
-
: ["sh", "-c", 'exec "$@"', "sh", cmd, ...args]
|
|
125
|
-
: [cmd, ...args];
|
|
128
|
+
const shellCommand = shell ? createShellCommand(cmd, args) : undefined;
|
|
129
|
+
const bunCmd = shellCommand ? [shellCommand.cmd, ...shellCommand.args] : [cmd, ...args];
|
|
126
130
|
const proc = bunGlobal.Bun.spawn({
|
|
127
131
|
cmd: bunCmd,
|
|
128
132
|
cwd: cmdCwd,
|
|
@@ -85,7 +85,7 @@ export class InMemoryBundleManifestStore {
|
|
|
85
85
|
let manifestStore = new InMemoryBundleManifestStore();
|
|
86
86
|
export function setBundleManifestStore(store) {
|
|
87
87
|
manifestStore = store;
|
|
88
|
-
logger.
|
|
88
|
+
logger.debug("Bundle manifest store configured", {
|
|
89
89
|
type: store.constructor.name,
|
|
90
90
|
});
|
|
91
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veryfront/ext-content-mdx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1168",
|
|
4
4
|
"description": "Veryfront first-party extension package for ext-content-mdx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veryfront",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"vfile": "6.0.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"veryfront": "^0.1.
|
|
70
|
+
"veryfront": "^0.1.1168"
|
|
71
71
|
},
|
|
72
72
|
"type": "module",
|
|
73
73
|
"types": "./esm/extensions/ext-content-mdx/src/index.d.ts",
|