Compare commits
No commits in common. "1fb9f525043948fe3f2397e6713b38e515417f98" and "c63075a88db791884f83daf439bc899f14b4c642" have entirely different histories.
1fb9f52504
...
c63075a88d
|
|
@ -1 +0,0 @@
|
||||||
export const BULLPEN_VERSION = "1.1.0";
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
const process = require('process');
|
const process = require('process');
|
||||||
const {BULLPEN_VERSION} = require("../config/version");
|
|
||||||
|
|
||||||
exports.info = (req, res) => {
|
exports.info = (req, res) => {
|
||||||
res.json({
|
res.json({
|
||||||
message: "Welcome to bullpen",
|
message: "Welcome to bullpen",
|
||||||
version: BULLPEN_VERSION,
|
version: process.env.npm_package_version,
|
||||||
environment: process.env.NODE_ENV,
|
environment: process.env.NODE_ENV,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "bullpen-backend",
|
"name": "bullpen-backend",
|
||||||
"version": "1.1.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bullpen-backend",
|
"name": "bullpen-backend",
|
||||||
"version": "1.1.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bcryptjs": "^3.0.2",
|
"bcryptjs": "^3.0.2",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bullpen-backend",
|
"name": "bullpen-backend",
|
||||||
"version": "1.1.0",
|
"version": "1.0.0",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "node -p \"'export const BULLPEN_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > config/version.js",
|
"prebuild": "node -p \"'export const BULLPEN_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > config/version.js",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue