@gadicc/loom 2.0.2 → 2.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gadicc/loom",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Shared helpers and verification tooling for Next.js applications.",
5
5
  "homepage": "https://github.com/gadicc/loom#readme",
6
6
  "repository": {
@@ -11,7 +11,7 @@
11
11
  "url": "https://github.com/gadicc/loom/issues"
12
12
  },
13
13
  "loom": {
14
- "gitCommit": "0e99ed01ecc8350191995401701bc58a74a11d92"
14
+ "gitCommit": "231b0c2bd829b9b2436ae54a27ac4e08f338cc82"
15
15
  },
16
16
  "type": "module",
17
17
  "main": "./esm/mod.js",
@@ -9043,13 +9043,15 @@ function workflowStepRunsDbMigrate(block: string) {
9043
9043
  block,
9044
9044
  ) ||
9045
9045
  /\bdrizzle-kit\s+migrate\b/.test(block) ||
9046
- /spawnSync\(\s*["']pnpm["'][\s\S]*["']db:migrate["']/.test(block)
9046
+ /\bspawnSync\(\s*["'](?:pnpm|bun)["']\s*,\s*\[\s*(?:["']run["']\s*,\s*)?["']db:migrate["']\s*,?\s*\](?=\s*[,)])/.test(
9047
+ block,
9048
+ )
9047
9049
  );
9048
9050
  }
9049
9051
 
9050
9052
  function workflowStepUsesVercelCommand(block: string, subcommand: string) {
9051
9053
  block = block.replace(/\\\r?\n\s*/g, " ");
9052
- const launcher = String.raw`(?:vercel|deno\s+run\s+-A\s+npm:vercel(?:@[^\s]+)?|pnpm\s+(?:dlx|exec)\s+vercel(?:@[^\s]+)?|npx\s+vercel(?:@[^\s]+)?|yarn\s+(?:dlx\s+)?vercel(?:@[^\s]+)?|bunx\s+vercel(?:@[^\s]+)?)`;
9054
+ const launcher = String.raw`(?:vercel|deno\s+run\s+-A\s+npm:vercel(?:@[^\s]+)?|pnpm\s+(?:dlx|exec)\s+vercel(?:@[^\s]+)?|npx\s+vercel(?:@[^\s]+)?|yarn\s+(?:dlx\s+)?vercel(?:@[^\s]+)?|(?:bunx|bun\s+x)(?:\s+--no-install)?\s+vercel(?:@[^\s]+)?)`;
9053
9055
  const globalFlags = String.raw`(?:\s+(?:--[A-Za-z-]+(?:=(?:"[^"]+"|'[^']+'|[^\s]+)|\s+(?:"[^"]+"|'[^']+'|[^\s]+))?|-[A-Za-z](?:\s+(?:"[^"]+"|'[^']+'|[^\s]+))?))*`;
9054
9056
  return new RegExp(
9055
9057
  String.raw`\b${launcher}${globalFlags}\s+${subcommand}\b`,
@@ -9111,7 +9113,7 @@ function workflowStepPreparesVercelProject(block: string) {
9111
9113
  * `@gadicc/loom` fetched by `npx`, `pnpm dlx`, `bunx` or Deno, or by path as
9112
9114
  * `node_modules/.bin/loom`.
9113
9115
  */
9114
- const LOOM_INVOCATION = String.raw`(?:(?:pnpm\s+(?:exec|dlx)|pnpm|npm\s+exec(?:\s+--)?|npx(?:\s+(?:-y|--yes))?|yarn(?:\s+dlx)?|bun\s+run|bunx|deno\s+task|deno\s+run\s+-A)\s+)?(?:(?:\.\/)?node_modules\/\.bin\/loom|(?:npm:)?@gadicc\/loom(?:@[^\s]+)?|loom)`;
9116
+ const LOOM_INVOCATION = String.raw`(?:(?:pnpm\s+(?:exec|dlx)|pnpm|npm\s+exec(?:\s+--)?|npx(?:\s+(?:-y|--yes))?|yarn(?:\s+dlx)?|bun\s+run|(?:bunx|bun\s+x)(?:\s+--no-install)?|deno\s+task|deno\s+run\s+-A)\s+)?(?:(?:\.\/)?node_modules\/\.bin\/loom|(?:npm:)?@gadicc\/loom(?:@[^\s]+)?|loom)`;
9115
9117
 
9116
9118
  /**
9117
9119
  * Drops YAML and shell comments so a commented-out step or command is not
@@ -9345,7 +9347,7 @@ function workflowStepPromotesVercelDeploymentWithLoom(block: string) {
9345
9347
 
9346
9348
  function workflowStepUsesMaterializedVercelLink(block: string) {
9347
9349
  block = block.replace(/\\\r?\n\s*/g, " ");
9348
- const launcher = String.raw`(?:vercel|deno\s+run\s+-A\s+npm:vercel(?:@[^\s]+)?|pnpm\s+(?:dlx|exec)\s+vercel(?:@[^\s]+)?|npx\s+vercel(?:@[^\s]+)?|yarn\s+(?:dlx\s+)?vercel(?:@[^\s]+)?|bunx\s+vercel(?:@[^\s]+)?)`;
9350
+ const launcher = String.raw`(?:vercel|deno\s+run\s+-A\s+npm:vercel(?:@[^\s]+)?|pnpm\s+(?:dlx|exec)\s+vercel(?:@[^\s]+)?|npx\s+vercel(?:@[^\s]+)?|yarn\s+(?:dlx\s+)?vercel(?:@[^\s]+)?|(?:bunx|bun\s+x)(?:\s+--no-install)?\s+vercel(?:@[^\s]+)?)`;
9349
9351
  const prefix = block.match(
9350
9352
  new RegExp(String.raw`\benv\s+([^\n]*?)(?=\b${launcher}\b)`),
9351
9353
  )?.[1];