Skip to content

Commit

Permalink
Ensure npm start works when run after npm start:dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Nov 27, 2019
1 parent f7e91a6 commit f614944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const requiredServerVersion = packageJsonLock.dependencies['httptoolkit-server']
// This real prod server will then be used with the real prod web UI, but this local desktop app.
// Manually trigger the after-copy hook, to give us an env like the real package
async function setUpLocalEnv() {
const serverExists = await canAccess('./httptoolkit-server');
const serverExists = await canAccess('./httptoolkit-server/package.json');
const serverVersion = serverExists ? require('./httptoolkit-server/package.json').version : null;

if (serverVersion !== requiredServerVersion) {
Expand Down

0 comments on commit f614944

Please sign in to comment.