Skip to content

Commit

Permalink
chore: update root level run scripts, display version
Browse files Browse the repository at this point in the history
  • Loading branch information
samjcombs committed Nov 22, 2024
1 parent 9f3f29b commit 28608d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 1 addition & 3 deletions backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ import proposalsRoutes from './routes/proposals';
import seedGroupsRoutes from './routes/seedGroups';
import seedsRoutes from './routes/seeds';
import {logger} from './utilities/logger';

const packageJson = require('../../package.json');
const APP_VERSION = packageJson.version;
import {version as APP_VERSION} from '../package.json';

const isTypescript = __filename.endsWith('.ts');
const ProxyAgent = Undici.ProxyAgent;
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
"main": "index.js",
"module": "true",
"scripts": {
"start": "docker compose up",
"start:build": "docker compose up --build",
"start": "concurrently \"npm --prefix frontend start\" \"npm --prefix backend run dev\"",
"install:all": "npm install && npm --prefix frontend install && npm --prefix backend install",
"start:auth": "docker compose up",
"start:auth:build": "docker compose up --build",
"cypress:basic": "concurrently -k -s first \"NODE_ENV=development PORT=3032 npm --prefix backend start\" \"wait-on http://localhost:3032 && CYPRESS_BASE_URL=http://localhost:3032 cypress run --spec 'cypress/e2e/basic-functionality.cy.ts'\"",
"cypress:open": "concurrently --kill-others --success first --color always \"FORCE_COLOR=1 npm start\" \"wait-on http://localhost:3032 && FORCE_COLOR=1 CYPRESS_BASE_URL=http://localhost:3032 cypress open\"",
"cypress:open": "concurrently --kill-others --success first --color always \"FORCE_COLOR=1 npm run start:auth\" \"wait-on http://localhost:3032 && FORCE_COLOR=1 CYPRESS_BASE_URL=http://localhost:3032 cypress open\"",
"db:auth": "docker exec -it supertokens_db psql -U supertokens_user -d supertokens",
"e2e:record": "ts-node scripts/run-e2e-tests.ts record",
"e2e:test": "ts-node scripts/run-e2e-tests.ts test"
Expand All @@ -32,4 +34,4 @@
"node": "20",
"npm": "10"
}
}
}

0 comments on commit 28608d6

Please sign in to comment.