Permit running without node_modules #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "run_without_node_modules_npx"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now svekyll-cli expects node_modules for pulling templates. This works if you have installed svekyll-cli a priori using package.json, but not when running
*npx svekyll-cli. We can probably fix this by detecting when we are running that way and augmenting the paths appropriately.Running
SVEKYLL_REPORT=1 pnpx svekyll-cli | grep pnpxresults in nothing:This is what we see with
SVEKYLL_REPORT=1 npx svekyll-cli | grep npxI was hoping we could see clearly from the environment that npx or pnpx was running the show, but it isn't that easy. We will probably need to check to see if node_modules exists, and if not, the search through the NODE_PATHs, etc.
This is what we see with
SVEKYLL_REPORT=1 npx svekyll-cli(after some filtering). So NODE_PATH includes the pnpm tmp path, and perhaps we can figure out the templates from there.changed the description
added 2 commits
21e61f30- Add npx debuggig2097a0c5- Add runtime detection runtime.jsCompare with previous version
mentioned in issue #1
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.