Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outputDirectory path is not relative to current directory when create-httpc #2

Open
miyamonz opened this issue Aug 9, 2023 · 1 comment

Comments

@miyamonz
Copy link

miyamonz commented Aug 9, 2023

I tried pnpm create httpc but there is no output file or folder.

According to this log, the outputDirectory is assumed as relative path from node_modules/create-httpc folder

pnpm

%% pnpm create httpc
.../share/pnpm/store/v3/tmp/dlx-53028    |  +33 +++
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/miyamonz/.local/share/pnpm/store/v3
  Virtual store is at:             ../../../../.local/share/pnpm/store/v3/tmp/dlx-53028/node_modules/.pnpm
.../share/pnpm/store/v3/tmp/dlx-53028    | Progress: resolved 33, reused 33, downloaded 0, added 33, done
✔ Select a template you want to start with › Server blank
✔ Specify the output directory … ./
? Output directory(/Users/miyamonz/.local/share/pnpm/store/v3/tmp/dlx-53028/node_modules/.pnpm/[email protected]/node_modules/create-httpc) not empty, all content will be deleted. Confirm? › (Y/n)

npm

%% npm init httpc
Need to install the following packages:
  [email protected]
Ok to proceed? (y)
✔ Select a template you want to start with › Kit blank
✔ Specify the output directory …
✔ Output directory(/Users/miyamonz/.npm/_npx/fab980724a10a9dd/node_modules/create-httpc) not empty, all content will be deleted. Confirm? … yes

version: 0.1.0

maybe this line is related to this issue.

cwd: path.dirname(fileURLToPath(import.meta.url)) // path local to the package

@giuseppelt
Copy link
Owner

Thanks for the report
I'm out of town. I'll back at you in a couple of days.

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

No branches or pull requests

2 participants