Commits

William Welling authored d59e8becc31
specify NODE_ENV for production scripts
No tags

package.json

Modified
3 3 "version": "0.0.0",
4 4 "scripts": {
5 5 "ng": "ng",
6 6 "config:watch": "nodemon",
7 7 "test:rest": "ts-node --project ./tsconfig.ts-node.json scripts/test-rest.ts",
8 8 "start": "yarn run start:prod",
9 9 "start:dev": "nodemon --exec \"yarn run serve\"",
10 10 "start:prod": "yarn run build:prod && yarn run serve:ssr",
11 11 "start:mirador:prod": "yarn run build:mirador && yarn run start:prod",
12 12 "serve": "ts-node --project ./tsconfig.ts-node.json scripts/serve.ts",
13 - "serve:ssr": "node dist/server/main",
13 + "serve:ssr": "cross-env NODE_ENV=production node dist/server/main",
14 14 "analyze": "webpack-bundle-analyzer dist/browser/stats.json",
15 15 "build": "ng build",
16 16 "build:stats": "ng build --stats-json",
17 17 "build:prod": "yarn run build:ssr",
18 18 "build:ssr": "ng build --configuration production && ng run dspace-angular:server:production",
19 19 "test": "ng test --sourceMap=true --watch=false --configuration test",
20 20 "test:watch": "nodemon --exec \"ng test --sourceMap=true --watch=true --configuration test\"",
21 21 "test:headless": "ng test --sourceMap=true --watch=false --configuration test --browsers=ChromeHeadless --code-coverage",
22 22 "lint": "ng lint",
23 23 "lint-fix": "ng lint --fix=true",
137 137 "@types/file-saver": "^2.0.1",
138 138 "@types/jasmine": "~3.6.0",
139 139 "@types/jasminewd2": "~2.0.8",
140 140 "@types/js-cookie": "2.2.6",
141 141 "@types/lodash": "^4.14.165",
142 142 "@types/node": "^14.14.9",
143 143 "axe-core": "^4.3.3",
144 144 "codelyzer": "^6.0.0",
145 145 "compression-webpack-plugin": "^3.0.1",
146 146 "copy-webpack-plugin": "^6.4.1",
147 + "cross-env": "^7.0.3",
147 148 "css-loader": "3.4.0",
148 149 "cssnano": "^4.1.10",
149 150 "cypress": "8.6.0",
150 151 "cypress-axe": "^0.13.0",
151 152 "debug-loader": "^0.0.1",
152 153 "deep-freeze": "0.0.1",
153 154 "dotenv": "^8.2.0",
154 155 "fork-ts-checker-webpack-plugin": "^6.0.3",
155 156 "html-loader": "^1.3.2",
156 157 "html-webpack-plugin": "^4.5.0",

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut