From 7b67150681e9a5fb917e939d17bac9185080fc10 Mon Sep 17 00:00:00 2001 From: Andrey Briginets Date: Sun, 12 May 2024 04:10:43 +0300 Subject: [PATCH] chore: update package.json commands --- jest.js | 18 +++++++++--------- package.json | 20 +++++++++----------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/jest.js b/jest.js index 66aa2cd3..e45c48e3 100644 --- a/jest.js +++ b/jest.js @@ -1,11 +1,11 @@ module.exports = { - preset: 'ts-jest', - rootDir: '../', - moduleDirectories: ['node_modules', 'src'], - globals: { - 'ts-jest': { - isolatedModules: true - } + preset: 'ts-jest', + rootDir: '../', + moduleDirectories: ['node_modules', 'src'], + globals: { + 'ts-jest': { + isolatedModules: true, }, - collectCoverage: true -} + }, + collectCoverage: true, +}; diff --git a/package.json b/package.json index da51c180..db5584e4 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,7 @@ "name": "umbress", "version": "1.3.4", "description": "Blazing fast ExpressJS anti-DDoS middleware ⚡", - "main": "server/dist/index.js", - "scripts": { - "build": "run-s build-server build-client test", - "lint": "eslint src/**/*.ts", - "lint:fix": "eslint src/**/*.ts --fix", - "packages:update": "npx npm-check-updates -u -t minor" - }, + "main": "dist/src/main.js", "keywords": [ "ddos", "mitigation", @@ -19,19 +13,23 @@ "ddos-protection" ], "files": [ - "server/dist", - "templates/compiled", - "public/dist", + "dist", "README.md", "LICENSE" ], - "types": "server/dist/index.d.ts", + "types": "dist/src/main.d.ts", "repository": { "type": "git", "url": "git+https://github.com/JamesJGoodwin/umbress.git" }, "author": "JamesJGoodwin", "license": "MIT", + "scripts": { + "build": "tsc", + "lint": "eslint src/**/*.ts", + "lint:fix": "eslint src/**/*.ts --fix", + "packages:update": "npx npm-check-updates -u -t minor" + }, "dependencies": { "cache-manager": "^5.2.3", "defaults": "^2.0.2",