preinstall -> configure

This commit is contained in:
Simon Larsen 2023-06-12 10:42:43 +01:00
parent 829a97ffbb
commit b5ac6c7f01
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
11 changed files with 10 additions and 10 deletions

View File

@ -24,7 +24,7 @@
"compile": "tsc", "compile": "tsc",
"start": "node --require ts-node/register Serve.ts", "start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low", "audit": "npm audit --audit-level=low",
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'", "configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'" "dep-check": "depcheck ./ --skip-missing=true'"
}, },
"browserslist": { "browserslist": {

View File

@ -2,7 +2,7 @@
"name": "oneuptime-homepage", "name": "oneuptime-homepage",
"version": "3.0.0", "version": "3.0.0",
"scripts": { "scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'", "configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "node --require ts-node/register Index.ts", "start": "node --require ts-node/register Index.ts",
"compile": "tsc", "compile": "tsc",
"dev": "npx nodemon", "dev": "npx nodemon",

View File

@ -32,7 +32,7 @@
"compile": "tsc", "compile": "tsc",
"start": "node --require ts-node/register Serve.ts", "start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low", "audit": "npm audit --audit-level=low",
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'", "configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'" "dep-check": "depcheck ./ --skip-missing=true'"
}, },
"browserslist": { "browserslist": {

View File

@ -4,7 +4,7 @@
"description": "Helm Chart Server for OneUptime", "description": "Helm Chart Server for OneUptime",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'", "configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "node --require ts-node/register Index.ts", "start": "node --require ts-node/register Index.ts",
"compile": "tsc", "compile": "tsc",
"dev": "npx nodemon", "dev": "npx nodemon",

View File

@ -2,7 +2,7 @@
"name": "oneuptime-homepage", "name": "oneuptime-homepage",
"version": "3.0.0", "version": "3.0.0",
"scripts": { "scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'", "configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "node --require ts-node/register Index.ts", "start": "node --require ts-node/register Index.ts",
"compile": "tsc", "compile": "tsc",
"dev": "npx nodemon", "dev": "npx nodemon",

View File

@ -22,7 +22,7 @@
"winston": "^3.6.0" "winston": "^3.6.0"
}, },
"scripts": { "scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'", "configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "node --require ts-node/register Index.ts", "start": "node --require ts-node/register Index.ts",
"compile": "tsc", "compile": "tsc",
"dev": "npx nodemon", "dev": "npx nodemon",

View File

@ -40,7 +40,7 @@ Deploy a single-server instance in one line on Debian / Ubuntu with Docker (we o
git clone https://github.com/OneUptime/oneuptime git clone https://github.com/OneUptime/oneuptime
cd oneuptime cd oneuptime
git checkout release git checkout release
bash preinstall.sh bash configure.sh
``` ```
Please look at config.env and change these values, Please look at config.env and change these values,

View File

@ -26,7 +26,7 @@
"compile": "tsc", "compile": "tsc",
"start": "node --require ts-node/register Serve.ts", "start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low", "audit": "npm audit --audit-level=low",
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'", "configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'" "dep-check": "depcheck ./ --skip-missing=true'"
}, },
"browserslist": { "browserslist": {

View File

@ -13,7 +13,7 @@ fi
set -e set -e
bash preinstall.sh bash configure.sh
# Load env values from config.env # Load env values from config.env
export $(grep -v '^#' config.env | xargs) export $(grep -v '^#' config.env | xargs)

View File

@ -38,7 +38,7 @@
"config-to-ci": "ts-node-esm ./Scripts/Install/ReplaceValueInConfig.ts ENVIRONMENT ci", "config-to-ci": "ts-node-esm ./Scripts/Install/ReplaceValueInConfig.ts ENVIRONMENT ci",
"config-to-test": "ts-node-esm ./Scripts/Install/ReplaceValueInConfig.ts ENVIRONMENT test && ts-node-esm ./Scripts/Install/ReplaceValueInConfig.ts APP_TAG test", "config-to-test": "ts-node-esm ./Scripts/Install/ReplaceValueInConfig.ts ENVIRONMENT test && ts-node-esm ./Scripts/Install/ReplaceValueInConfig.ts APP_TAG test",
"config-to-production": "ts-node-esm ./Scripts/Install/ReplaceValueInConfig.ts ENVIRONMENT production", "config-to-production": "ts-node-esm ./Scripts/Install/ReplaceValueInConfig.ts ENVIRONMENT production",
"prerun": "bash preinstall.sh", "prerun": "bash configure.sh",
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js", "typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
"uninstall": "bash uninstall.sh", "uninstall": "bash uninstall.sh",
"lint": "ejslint home/views/*.ejs && eslint '**/*.ts*' -c .eslintrc.json --ignore-path .eslintignore ", "lint": "ejslint home/views/*.ejs && eslint '**/*.ts*' -c .eslintrc.json --ignore-path .eslintignore ",