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

fix: withwrangler init, test for existence of package.json/ tsconfig.json / .git in the right locations #924

Merged
merged 1 commit into from
May 8, 2022

Commits on May 8, 2022

  1. fix: withwrangler init, test for existence of package.json/ `tsco…

    …nfig.json` / `.git` in the right locations
    
    When running `wrangler.init`, we look for the existence of `package.json`, / `tsconfig.json` / `.git` when deciding whether we should create them ourselves or not. Because `name` can be a relative path, we had a bug where we don't starting look from the right directory. We also had a bug where we weren't even testing for the existence of the `.git` directory correctly. This patch fixes that initial starting location, tests for `.git` as a directory, and correctly decides when to create those files.
    threepointone committed May 8, 2022
    Configuration menu
    Copy the full SHA
    29eeea1 View commit details
    Browse the repository at this point in the history