Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Allow running "serveFunctions" without package.json #18

Closed
wants to merge 1 commit into from

Conversation

Benaiah
Copy link

@Benaiah Benaiah commented Mar 14, 2019

- Summary

Uses as the function "moduleDir" the first .git directory found by ascending the folder structure if "findModuleDirectory" returns false. If that still fails, uses "process.cwd()". Uses a shared memoized implementation for ascending directory finders.

This PR completes the work necessary in this repo to close #15.

- Test plan

Manually tested.

- Description for the changelog

Allow running "serveFunctions" without a package.json

Uses as the function "moduleDir" the first ".git" directory found by
ascending the folder structure if "findModuleDir" returns false. If
that still fails, uses "process.cwd()". Uses a shared memoized
implementation for ascending directory finders.
@swyxio
Copy link
Contributor

swyxio commented Apr 21, 2019

we no longer serve functions in this repo - i'm still not sure if we need the functionality in this PR (i wasnt involved in this) but suggest moving it to netlify-dev-plugin.

@swyxio swyxio closed this Apr 21, 2019
swyxio referenced this pull request in netlify/netlify-dev-plugin Apr 21, 2019
@bcomnes bcomnes deleted the allow-servefunctions-without-package-json branch April 22, 2019 22:56
@bcomnes bcomnes restored the allow-servefunctions-without-package-json branch April 22, 2019 22:56
@ehmicky ehmicky deleted the allow-servefunctions-without-package-json branch May 6, 2020 16:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serve fails if there's no package.json
2 participants