@veryfront/ext-content-mdx 0.1.1166 → 0.1.1167

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.1166",
3
+ "version": "0.1.1167",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "minimumDependencyAge": {
@@ -45,7 +45,7 @@ const extMdx = () => {
45
45
  capabilities: [],
46
46
  setup(ctx) {
47
47
  ctx.provide("ContentProcessor", impl);
48
- ctx.logger.info("[ext-content-mdx] ContentProcessor registered");
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;AA6ED;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,aAAa,CAAC,CAoMxB"}
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 command = new deno.Command(cmd, {
85
- args,
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 isWindows = isWindowsPlatform();
119
- const bunCmd = shell
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,
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.1166";
2
+ export declare const VERSION = "0.1.1167";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.1166";
4
+ export const VERSION = "0.1.1167";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryfront/ext-content-mdx",
3
- "version": "0.1.1166",
3
+ "version": "0.1.1167",
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.1166"
70
+ "veryfront": "^0.1.1167"
71
71
  },
72
72
  "type": "module",
73
73
  "types": "./esm/extensions/ext-content-mdx/src/index.d.ts",