@smoothbricks/nx-plugin 0.6.0 → 0.6.2

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.
Files changed (68) hide show
  1. package/README.md +68 -56
  2. package/dist/.build-inputs.json +16 -13
  3. package/dist/cargo-retention-hook.d.ts +8 -1
  4. package/dist/cargo-retention-hook.d.ts.map +1 -1
  5. package/dist/cargo-retention-hook.js +12 -1
  6. package/dist/ensure-built-receipt.d.ts +9 -0
  7. package/dist/ensure-built-receipt.d.ts.map +1 -1
  8. package/dist/ensure-built-receipt.js +42 -1
  9. package/dist/executors/bounded-exec/cpu-pool-thread.d.ts +28 -0
  10. package/dist/executors/bounded-exec/cpu-pool-thread.d.ts.map +1 -0
  11. package/dist/executors/bounded-exec/cpu-pool-thread.js +20 -0
  12. package/dist/executors/bounded-exec/cpu-pool.d.ts +4 -4
  13. package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -1
  14. package/dist/executors/bounded-exec/cpu-pool.js +7 -6
  15. package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
  16. package/dist/executors/bounded-exec/executor.js +20 -2
  17. package/dist/executors/bounded-exec/gateway-lease.d.ts +3 -2
  18. package/dist/executors/bounded-exec/gateway-lease.d.ts.map +1 -1
  19. package/dist/executors/bounded-exec/gateway-lease.js +23 -3
  20. package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -1
  21. package/dist/executors/bounded-exec/hang-diagnostics.js +25 -1
  22. package/dist/executors/bounded-exec/lease-wait.d.ts +23 -2
  23. package/dist/executors/bounded-exec/lease-wait.d.ts.map +1 -1
  24. package/dist/executors/bounded-exec/lease-wait.js +15 -11
  25. package/dist/executors/bounded-exec/mbx-pool.d.ts +31 -0
  26. package/dist/executors/bounded-exec/mbx-pool.d.ts.map +1 -0
  27. package/dist/executors/bounded-exec/mbx-pool.js +24 -0
  28. package/dist/executors/bounded-exec/run-cpu-pool.d.ts +9 -3
  29. package/dist/executors/bounded-exec/run-cpu-pool.d.ts.map +1 -1
  30. package/dist/executors/bounded-exec/run-cpu-pool.js +109 -12
  31. package/dist/executors/bounded-exec/verdict.d.ts +8 -0
  32. package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
  33. package/dist/executors/bounded-exec/verdict.js +1 -1
  34. package/dist/executors/typescript-emit/emit-overrides.d.ts +14 -0
  35. package/dist/executors/typescript-emit/emit-overrides.d.ts.map +1 -0
  36. package/dist/executors/typescript-emit/emit-overrides.js +24 -0
  37. package/dist/executors/typescript-emit/executor.d.ts.map +1 -1
  38. package/dist/executors/typescript-emit/executor.js +1 -19
  39. package/dist/managed-files/files.d.ts.map +1 -1
  40. package/dist/managed-files/files.js +6 -0
  41. package/dist/managed-files/publish-workflow.js +14 -11
  42. package/dist/producer-receipts.d.ts.map +1 -1
  43. package/dist/producer-receipts.js +441 -1
  44. package/managed/raw/envrc +15 -0
  45. package/managed/raw/tooling/direnv/developer-links.ts +12 -1
  46. package/managed/raw/tooling/direnv/devenv.smoo.nix +21 -8
  47. package/managed/raw/tooling/direnv/linked-snapshots.ts +50 -13
  48. package/managed/raw/tooling/direnv/setup-environment.ts +23 -11
  49. package/managed/raw/tooling/git-hooks/pre-push.sh +4 -1
  50. package/managed/raw/tooling/git-reword-commit +151 -0
  51. package/package.json +22 -5
  52. package/src/cargo-retention-hook.ts +12 -1
  53. package/src/ensure-built-receipt.ts +41 -0
  54. package/src/executors/bounded-exec/cpu-pool-thread.ts +43 -0
  55. package/src/executors/bounded-exec/cpu-pool.ts +7 -6
  56. package/src/executors/bounded-exec/executor.ts +20 -2
  57. package/src/executors/bounded-exec/gateway-lease.ts +17 -7
  58. package/src/executors/bounded-exec/hang-diagnostics.ts +28 -1
  59. package/src/executors/bounded-exec/lease-wait.ts +39 -12
  60. package/src/executors/bounded-exec/mbx-pool.ts +48 -0
  61. package/src/executors/bounded-exec/run-cpu-pool.ts +117 -15
  62. package/src/executors/bounded-exec/verdict.ts +8 -1
  63. package/src/executors/typescript-emit/emit-overrides.ts +24 -0
  64. package/src/executors/typescript-emit/executor.ts +1 -20
  65. package/src/managed-files/files.ts +6 -0
  66. package/src/managed-files/publish-workflow.ts +20 -15
  67. package/src/producer-receipts.ts +28 -0
  68. package/test-timings.json +120 -118
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emit-overrides.d.ts","sourceRoot":"","sources":["../../../src/executors/typescript-emit/emit-overrides.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAW3C,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * What the emit changes about the project's own options: JavaScript and declarations from one non-incremental program.
3
+ * They ride the command line onto the project's tsconfig. A synthesized config would have to sit beside that tsconfig,
4
+ * because `${configDir}` and `paths` anchor to the directory of the config that consumes them, and a transient file there
5
+ * changes the directory listing a concurrent ttsc transform of another project proves while it compiles; that
6
+ * transform then refuses with `graph/accessible-entries-changed`.
7
+ *
8
+ * The one definition of how a package's TypeScript dist is emitted: the typescript-emit executor passes these, and so
9
+ * does every bootstrap that emits a dist before Nx can run (tooling/ttsc-emit.ts, the shell entry). A bootstrap that
10
+ * emitted incrementally wrote the tsconfig's tsBuildInfoFile into dist, a file no Nx output produces, and a release
11
+ * refused the verified dist at its merge boundary for it.
12
+ */
13
+ export const EMIT_OVERRIDES = [
14
+ '--composite',
15
+ 'false',
16
+ '--declaration',
17
+ 'true',
18
+ '--declarationMap',
19
+ 'true',
20
+ '--emitDeclarationOnly',
21
+ 'false',
22
+ '--incremental',
23
+ 'false',
24
+ ];
@@ -1 +1 @@
1
- {"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/typescript-emit/executor.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,kBAAkB,EASxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,UAAU,qBAAqB;IAC7B,IAAI,EAAE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EAAE,qBAAqB,GAC7B,OAAO,CAAC,oBAAoB,CAAC,CAG/B;AAED,kGAAkG;AAClG,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,qBAAqB,EAC9B,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,cAAc,EACtB,QAAQ,CAAC,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAwB/B"}
@@ -5,25 +5,7 @@ import { chmod, lstat, readdir, rm, rmdir, stat } from 'node:fs/promises';
5
5
  import { basename, dirname, isAbsolute, join, relative, resolve, sep } from 'node:path';
6
6
  import { buildInputProducer, buildInputRecord, gitWorkspaceRoot, globPathspec, pathspecFiles, workspacePath, writeBuildInputs, } from '@smoothbricks/build-inputs';
7
7
  import { readJsonFile } from 'nx/src/devkit-exports.js';
8
- /**
9
- * What the emit changes about the project's own options: JavaScript and declarations from one non-incremental program.
10
- * They ride the command line onto the project's tsconfig. A synthesized config would have to sit beside that tsconfig,
11
- * because `${configDir}` and `paths` anchor to the directory of the config that consumes them, and a transient file there
12
- * changes the directory listing a concurrent ttsc transform of another project proves while it compiles; that
13
- * transform then refuses with `graph/accessible-entries-changed`.
14
- */
15
- const EMIT_OVERRIDES = [
16
- '--composite',
17
- 'false',
18
- '--declaration',
19
- 'true',
20
- '--declarationMap',
21
- 'true',
22
- '--emitDeclarationOnly',
23
- 'false',
24
- '--incremental',
25
- 'false',
26
- ];
8
+ import { EMIT_OVERRIDES } from './emit-overrides.js';
27
9
  export default function typescriptEmitExecutor(options, context) {
28
10
  const producer = buildInputProducer(process.env);
29
11
  return runTypeScriptEmit(options, context, runCompiler, producer);
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/managed-files/files.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,6BAA6B,EAC7B,2BAA2B,EAC5B,MAAM,0BAA0B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c;aACzB,OAAO,EAAE,QAAQ;aACjB,GAAG,EAAE,WAAW;aAChB,IAAI,EAAE,yBAAyB;CACvB,CAAC;AA+OX,eAAO,MAAM,yBAAyB;;;GAAyE,CAAC;AAchH,qFAAqF;AACrF,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,EAAE,CAElF;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,EAAE,CAM7E;AAED,+GAA+G;AAC/G,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,aAAa,GAAG,kBAAkB,GAAG,6BAA6B,GAAG,yBAAyB,EACtG,OAAO,EAAE,kBAAkB,GAC1B,MAAM,CAMR"}
@@ -147,6 +147,12 @@ const managedFiles = [
147
147
  target: 'tooling/git-hooks/pre-push.sh',
148
148
  executable: true,
149
149
  },
150
+ {
151
+ kind: 'raw',
152
+ source: 'tooling/git-reword-commit',
153
+ target: 'tooling/git-reword-commit',
154
+ executable: true,
155
+ },
150
156
  {
151
157
  kind: 'raw',
152
158
  source: 'git-format-staged.yml',
@@ -432,10 +432,11 @@ function yamlLinesForStep(step, options) {
432
432
  ' #',
433
433
  ' # `nx` cannot do it: the project graph loads this very plugin, so',
434
434
  ' # `nx build nx-plugin` deadlocks on the executor it is building.',
435
- ' # ttsc needs only the package tsconfig -- same bootstrap the devenv',
436
- ' # shell runs (tooling/direnv/enter-shell.ts).',
435
+ ' # ttsc needs only the package tsconfig -- the bootstrap the shell entry',
436
+ ' # runs (tooling/direnv/enter-shell.ts) -- and emits as the typescript-emit',
437
+ ' # executor does (EMIT_OVERRIDES), so dist holds no build info.',
437
438
  ' working-directory: packages/nx-plugin',
438
- ' run: ttsc -p tsconfig.lib.json --emit',
439
+ ' run: bun ../../tooling/ttsc-emit.ts',
439
440
  ];
440
441
  case PublishWorkflowStepKind.RepairPendingReleases:
441
442
  return [
@@ -487,8 +488,10 @@ function yamlLinesForStep(step, options) {
487
488
  // Scoped to the release's candidates: the build phase and the packed-package
488
489
  // checks cover what ships. Unscoped, validate compiled every project - on a
489
490
  // release touching no Rust that was 3m30 of the cowshed CLI on the critical
490
- // path, for a binary the release did not contain.
491
- return conditionalRunStep(step, `smoo monorepo validate --projects "${githubExpression('steps.version.outputs.projects')}"`);
491
+ // path, for a binary the release did not contain. The publish job repairs
492
+ // pending releases before it publishes, so a pin at a tagged version the
493
+ // registry still lacks is published by then (--repairs-pending).
494
+ return conditionalRunStep(step, `smoo monorepo validate --projects "${githubExpression('steps.version.outputs.projects')}" --repairs-pending`);
492
495
  case PublishWorkflowStepKind.TagRelease:
493
496
  return tagReleaseStepLines(step.name);
494
497
  case PublishWorkflowStepKind.PublishRelease:
@@ -614,18 +617,18 @@ function renderSingleJobPublishWorkflowSteps(steps, options) {
614
617
  lines.push('');
615
618
  if (producer && step.kind === PublishWorkflowStepKind.Checkout) {
616
619
  // A declared producer always runs, even when the graph selects no platform family.
617
- lines.push(' # Step ' + stepNumber++, ...platformProducerPreflightStepLines(producer), '');
620
+ lines.push(` # Step ${stepNumber++}`, ...platformProducerPreflightStepLines(producer), '');
618
621
  }
619
622
  if (step.kind === PublishWorkflowStepKind.Build &&
620
623
  (hasMacosPlatformTargets(options) || hasLinuxPlatformTargets(options))) {
621
- lines.push(' # Step ' + stepNumber++, ' - name: 🐧 Build supplemental Linux targets', " if: steps.version.outputs.mode != 'none'", ' run:', ' smoo github-ci nx-run-many --targets "' +
624
+ lines.push(` # Step ${stepNumber++}`, ' - name: 🐧 Build supplemental Linux targets', " if: steps.version.outputs.mode != 'none'", ' run:', ' smoo github-ci nx-run-many --targets "' +
622
625
  LINUX_PLATFORM_TARGET_GLOBS.join(',') +
623
626
  '" --projects "' +
624
627
  githubExpression('steps.version.outputs.projects') +
625
628
  '" ' +
626
629
  RELEASE_BUILD_ARGUMENT, '');
627
630
  if (crossOnThisRunner) {
628
- lines.push(' # Step ' + stepNumber++, ' - name: 🍎 Build selected macOS and iOS release outputs', " if: steps.version.outputs.mode != 'none'", ' run:', ' smoo github-ci nx-run-many --targets "' +
631
+ lines.push(` # Step ${stepNumber++}`, ' - name: 🍎 Build selected macOS and iOS release outputs', " if: steps.version.outputs.mode != 'none'", ' run:', ' smoo github-ci nx-run-many --targets "' +
629
632
  macosPlatformFamilies(options).join(',') +
630
633
  '" --projects "' +
631
634
  githubExpression('steps.version.outputs.projects') +
@@ -634,7 +637,7 @@ function renderSingleJobPublishWorkflowSteps(steps, options) {
634
637
  }
635
638
  }
636
639
  }
637
- return mergeProducerStepEnvironment(lines, producer).join('\n').trimEnd() + '\n';
640
+ return `${mergeProducerStepEnvironment(lines, producer).join('\n').trimEnd()}\n`;
638
641
  }
639
642
  function renderPlatformPublishWorkflowYaml(options) {
640
643
  const deployInput = options.deploy === true
@@ -818,7 +821,7 @@ function renderMacosPlatformSteps(options) {
818
821
  }
819
822
  lines.push('', ` # Step ${stepNumber++}. Composite action internals do not affect top-level job step`, ' # anchors; update these comments if top-level steps move.', ' - name: 🧱 Setup Nix/devenv', ' id: setup', ' uses: ./.github/actions/setup-devenv');
820
823
  if (isSmoothBricksCodebasePackageName(options.repoName)) {
821
- lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and versioning runs before the', ' # build phase, so the hook must exist in dist first. Downstream', ' # consumers install the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig -- same bootstrap the devenv', ' # shell runs (tooling/direnv/enter-shell.ts).', ' working-directory: packages/nx-plugin', ' run: ttsc -p tsconfig.lib.json --emit');
824
+ lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and versioning runs before the', ' # build phase, so the hook must exist in dist first. Downstream', ' # consumers install the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig -- the bootstrap the shell entry', ' # runs (tooling/direnv/enter-shell.ts) -- and emits as the typescript-emit', ' # executor does (EMIT_OVERRIDES), so dist holds no build info.', ' working-directory: packages/nx-plugin', ' run: bun ../../tooling/ttsc-emit.ts');
822
825
  }
823
826
  lines.push('', ` # Step ${stepNumber++}`, ' - name: 🤖 Configure release author', ' run:', ' git config user.name "github-actions[bot]" && git config user.email', ' "41898282+github-actions[bot]@users.noreply.github.com"', '', ` # Step ${stepNumber++}`, ' - name: 🔢 Version release', ' id: version', ' env:', ` SMOO_RELEASE_PROJECTS: ${githubExpression('inputs.projects')}`, ' run:', ` smoo release version --bump "${githubExpression('inputs.bump')}" --projects "$SMOO_RELEASE_PROJECTS" --dry-run "${githubExpression('inputs.dry_run')}" --github-output`, ' "$GITHUB_OUTPUT"');
824
827
  const architectures = macosPlatformArchitectures(options);
@@ -877,7 +880,7 @@ function renderFinalLinuxPublishSteps(options) {
877
880
  'merge-multiple: false',
878
881
  ]), '', ` # Step ${stepNumber++}`, ' - name: 🤖 Configure release author', ' run:', ' git config user.name "github-actions[bot]" && git config user.email', ' "41898282+github-actions[bot]@users.noreply.github.com"');
879
882
  if (isSmoothBricksCodebasePackageName(options.repoName)) {
880
- lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and that export has no source', ' # condition, so the next-prerelease bump inside smoo release publish', ' # needs dist/version-actions.cjs on disk. Downstream consumers install', ' # the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig -- same bootstrap the devenv', ' # shell runs (tooling/direnv/enter-shell.ts).', ' working-directory: packages/nx-plugin', ' run: ttsc -p tsconfig.lib.json --emit');
883
+ lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and that export has no source', ' # condition, so the next-prerelease bump inside smoo release publish', ' # needs dist/version-actions.cjs on disk. Downstream consumers install', ' # the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig -- the bootstrap the shell entry', ' # runs (tooling/direnv/enter-shell.ts) -- and emits as the typescript-emit', ' # executor does (EMIT_OVERRIDES), so dist holds no build info.', ' working-directory: packages/nx-plugin', ' run: bun ../../tooling/ttsc-emit.ts');
881
884
  }
882
885
  lines.push('', ' # --- Repair -------------------------------------------------------------', '', ` # Step ${stepNumber++}`, ' - name: 🧯 Repair pending releases', ' run:', ` smoo release repair-pending --ref "${githubExpression('github.sha')}" --platform-outputs`, ` "${macosPlatformArtifactNames(options)
883
886
  .map((name) => `${githubExpression('runner.temp')}/publish-artifacts/${name}/repairs`)
@@ -1 +1 @@
1
- {"version":3,"file":"producer-receipts.d.ts","sourceRoot":"","sources":["../src/producer-receipts.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnH,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,2BAA2B,CAAC;AAEvF,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EAIxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAML,KAAK,eAAe,EA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