Skip to content

Move build files to global ~/.pipedown directory#10

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/move-build-files-to-global-dir
Draft

Move build files to global ~/.pipedown directory#10
Copilot wants to merge 3 commits intomainfrom
copilot/move-build-files-to-global-dir

Conversation

Copy link
Contributor

Copilot AI commented Dec 2, 2025

Build outputs now go to ~/.pipedown/builds/{projectName}/ instead of local ./.pd/ directories.

Changes

New helpers in pdCli/helpers.ts:

  • getGlobalPipedownDir()~/.pipedown
  • getProjectName(config?) → from config.json name field or cwd basename
  • getProjectBuildDir(projectName?)~/.pipedown/builds/{projectName}

Updated modules:

  • pdBuild.ts - outputs to global build dir
  • defaultTemplateFiles.ts - generates deno.json/replEval.ts in global location
  • exportPipe.ts - dynamic config path resolution
  • All CLI commands pass project name for correct path resolution
  • mergeParentDirConfig - detects project root via deno.json or .git instead of .pd/deno.json

Project registry:

  • ~/.pipedown/projects.json tracks all registered projects with name, path, and buildDir

Structure

~/.pipedown/
├── builds/
│   └── {projectName}/
│       ├── {pipeName}/
│       │   └── index.ts, cli.ts, server.ts, ...
│       ├── deno.json
│       └── replEval.ts
└── projects.json

Legacy PD_DIR and commonArgs exports retained but marked deprecated.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.deno.land
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Move all "build" files into a globally shared directory</issue_title>
<issue_description>Plan how we can have all per project pipedown build files managed via the global $USER/.pipedown directory.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 2, 2025 13:24
Co-authored-by: aaronmyatt <11920225+aaronmyatt@users.noreply.github.com>
…ex escaping

Co-authored-by: aaronmyatt <11920225+aaronmyatt@users.noreply.github.com>
Copilot AI changed the title [WIP] Move all build files to a globally shared directory Move build files to global ~/.pipedown directory Dec 2, 2025
Copilot AI requested a review from aaronmyatt December 2, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move all "build" files into a globally shared directory

2 participants

Comments