🐛 fix (pre) install scripts

This commit is contained in:
Flam3rboy 2021-09-23 16:03:50 +02:00
parent e9c3f7ee1c
commit c398c1512e
8 changed files with 12 additions and 12 deletions

View File

@ -5,7 +5,7 @@
"main": "dist/Server.js",
"types": "dist/Server.d.ts",
"scripts": {
"prepare": "ts-patch install -s",
"prepare": "",
"test:only": "jest --coverage --verbose --forceExit ./tests",
"test": "npm run build && npm run test:only",
"test:watch": "jest --watch",
@ -13,7 +13,7 @@
"build": "npx tsc -b .",
"build-docker": "tsc -p tsconfig-docker.json",
"dev": "tsnd --respawn src/start.ts",
"patch": "npx patch-package",
"patch": "ts-patch install -s && npx patch-package",
"postinstall": "npm run patch",
"generate:docs": "node scripts/generate_openapi.ts",
"generate:schema": "node scripts/generate_schema.ts"

BIN
bundle/package-lock.json generated

Binary file not shown.

View File

@ -5,7 +5,7 @@
"main": "src/start.js",
"scripts": {
"prepare": "ts-patch install -s",
"preinstall": "cd ../util && npm i && cd ../api && npm i && cd ../cdn && npm i && cd ../gateway && npm i",
"preinstall": "cd ../util && npm --production=false i && cd ../api && npm --production=false i && cd ../cdn && npm --production=false i && cd ../gateway && npm --production=false i",
"build": "npm run build:util && npm run build:api && npm run build:cdn && npm run build:gateway && npm run build:bundle",
"build:bundle": "npx tsc -b .",
"build:util": "cd ../util/ && npm run build",

BIN
cdn/package-lock.json generated

Binary file not shown.

View File

@ -1,26 +1,26 @@
{
"name": "@fosscord/cdn",
"version": "1.0.0",
"description": "cdn for discord clone",
"description": "cdn for fosscord",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prepare": "ts-patch install -s",
"postinstall": "ts-patch install -s",
"test": "npm run build && jest --coverage ./tests",
"build": "npx tsc -b .",
"start": "npm run build && node dist/start.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/discord-open-source/discord-cdn.git"
"url": "git+https://github.com/fosscord/fosscord-server.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/discord-open-source/discord-cdn/issues"
"url": "https://github.com/fosscord/fosscord-server/issues"
},
"homepage": "https://github.com/discord-open-source/discord-cdn#readme",
"homepage": "https://github.com/fosscord/fosscord-server#readme",
"devDependencies": {
"@types/amqplib": "^0.8.1",
"@types/body-parser": "^1.19.0",

Binary file not shown.

View File

@ -4,7 +4,7 @@
"description": "",
"main": "dist/index.js",
"scripts": {
"prepare": "ts-patch install -s",
"postinstall": "ts-patch install -s",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npm run build && node dist/start.js",
"build": "npx tsc -b .",

View File

@ -12,19 +12,19 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/fosscord/fosscord-server-util.git"
"url": "git+https://github.com/fosscord/fosscord-server.git"
},
"keywords": [
"discord",
"fosscord",
"fosscord-server-util",
"fosscord-server",
"discord open source",
"discord-open-source"
],
"author": "Fosscord",
"license": "GPLV3",
"bugs": {
"url": "https://github.com/fosscord/fosscord-server-util/issues"
"url": "https://github.com/fosscord/fosscord-server/issues"
},
"homepage": "https://docs.fosscord.com/",
"devDependencies": {