@gadicc/loom 2.0.2 → 2.0.4

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.4",
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": "bf4235f3672019feec5d0cdee0358516cdc789ed"
15
15
  },
16
16
  "type": "module",
17
17
  "main": "./esm/mod.js",
@@ -1395,6 +1395,8 @@ const ENV_LOADER_SCAN_EXTENSIONS = new Set([
1395
1395
  ]);
1396
1396
  const ENV_LOADER_SCAN_IGNORED_DIRS = new Set([
1397
1397
  ".agents",
1398
+ // Managed local package copies contain Loom implementation, never app source.
1399
+ ".loom",
1398
1400
  ".git",
1399
1401
  ".next",
1400
1402
  ".turbo",
@@ -9043,13 +9045,15 @@ function workflowStepRunsDbMigrate(block: string) {
9043
9045
  block,
9044
9046
  ) ||
9045
9047
  /\bdrizzle-kit\s+migrate\b/.test(block) ||
9046
- /spawnSync\(\s*["']pnpm["'][\s\S]*["']db:migrate["']/.test(block)
9048
+ /\bspawnSync\(\s*["'](?:pnpm|bun)["']\s*,\s*\[\s*(?:["']run["']\s*,\s*)?["']db:migrate["']\s*,?\s*\](?=\s*[,)])/.test(
9049
+ block,
9050
+ )
9047
9051
  );
9048
9052
  }
9049
9053
 
9050
9054
  function workflowStepUsesVercelCommand(block: string, subcommand: string) {
9051
9055
  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]+)?)`;
9056
+ 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
9057
  const globalFlags = String.raw`(?:\s+(?:--[A-Za-z-]+(?:=(?:"[^"]+"|'[^']+'|[^\s]+)|\s+(?:"[^"]+"|'[^']+'|[^\s]+))?|-[A-Za-z](?:\s+(?:"[^"]+"|'[^']+'|[^\s]+))?))*`;
9054
9058
  return new RegExp(
9055
9059
  String.raw`\b${launcher}${globalFlags}\s+${subcommand}\b`,
@@ -9111,7 +9115,7 @@ function workflowStepPreparesVercelProject(block: string) {
9111
9115
  * `@gadicc/loom` fetched by `npx`, `pnpm dlx`, `bunx` or Deno, or by path as
9112
9116
  * `node_modules/.bin/loom`.
9113
9117
  */
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)`;
9118
+ 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
9119
 
9116
9120
  /**
9117
9121
  * Drops YAML and shell comments so a commented-out step or command is not
@@ -9345,7 +9349,7 @@ function workflowStepPromotesVercelDeploymentWithLoom(block: string) {
9345
9349
 
9346
9350
  function workflowStepUsesMaterializedVercelLink(block: string) {
9347
9351
  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]+)?)`;
9352
+ 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
9353
  const prefix = block.match(
9350
9354
  new RegExp(String.raw`\benv\s+([^\n]*?)(?=\b${launcher}\b)`),
9351
9355
  )?.[1];