|
@@ -2,8 +2,7 @@
|
|
"name": "system-api",
|
|
"name": "system-api",
|
|
"version": "0.7.4",
|
|
"version": "0.7.4",
|
|
"description": "",
|
|
"description": "",
|
|
- "exports": "./dist/server.js",
|
|
|
|
- "type": "module",
|
|
|
|
|
|
+ "exports": "./dist/server.bundle.js",
|
|
"engines": {
|
|
"engines": {
|
|
"node": ">=14.16"
|
|
"node": ">=14.16"
|
|
},
|
|
},
|
|
@@ -13,20 +12,18 @@
|
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
"test": "jest --colors",
|
|
"test": "jest --colors",
|
|
"test:watch": "jest --watch",
|
|
"test:watch": "jest --watch",
|
|
- "build": "rm -rf dist && swc ./src -d dist",
|
|
|
|
- "build:watch": "swc ./src -d dist --watch",
|
|
|
|
- "start:dev": "NODE_ENV=development && nodemon --experimental-specifier-resolution=node --trace-deprecation --trace-warnings --watch dist dist/server.js",
|
|
|
|
|
|
+ "build": "rm -rf dist && node esbuild.js",
|
|
|
|
+ "build:watch": "node esbuild.js --sourcemap --watch",
|
|
|
|
+ "start:dev": "NODE_ENV=development && nodemon --watch dist dist/server.bundle.js",
|
|
"dev": "concurrently \"npm run build:watch\" \"npm run start:dev\"",
|
|
"dev": "concurrently \"npm run build:watch\" \"npm run start:dev\"",
|
|
- "start": "NODE_ENV=production && node --experimental-specifier-resolution=node dist/server.js",
|
|
|
|
- "typeorm": "node --experimental-specifier-resolution=node --loader ts-node/esm ./node_modules/typeorm/cli.js -d ormconfig.ts",
|
|
|
|
- "migration:generate": "npm run typeorm migration:generate ./src/config/migrations/$npm_config_name",
|
|
|
|
- "migration:create": "node --experimental-specifier-resolution=node --loader ts-node/esm ./node_modules/typeorm/cli.js migration:create ./src/config/migrations/$npm_config_name"
|
|
|
|
|
|
+ "start": "NODE_ENV=production && node dist/server.bundle.js",
|
|
|
|
+ "start:test": "NODE_ENV=test && node dist/server.bundle.js",
|
|
|
|
+ "typeorm": "typeorm-ts-node-commonjs -d ./ormconfig.ts",
|
|
|
|
+ "migration:generate": "npm run typeorm migration:generate"
|
|
},
|
|
},
|
|
"author": "",
|
|
"author": "",
|
|
"license": "ISC",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"dependencies": {
|
|
- "@apollo/utils.keyvadapter": "^1.1.2",
|
|
|
|
- "@keyv/redis": "^2.5.3",
|
|
|
|
"apollo-server-core": "^3.10.0",
|
|
"apollo-server-core": "^3.10.0",
|
|
"apollo-server-express": "^3.9.0",
|
|
"apollo-server-express": "^3.9.0",
|
|
"argon2": "^0.29.1",
|
|
"argon2": "^0.29.1",
|
|
@@ -40,15 +37,13 @@
|
|
"graphql-type-json": "^0.3.2",
|
|
"graphql-type-json": "^0.3.2",
|
|
"http": "0.0.1-security",
|
|
"http": "0.0.1-security",
|
|
"jsonwebtoken": "^8.5.1",
|
|
"jsonwebtoken": "^8.5.1",
|
|
- "keyv": "^4.5.2",
|
|
|
|
- "node-cache": "^5.1.2",
|
|
|
|
"node-cron": "^3.0.1",
|
|
"node-cron": "^3.0.1",
|
|
"pg": "^8.7.3",
|
|
"pg": "^8.7.3",
|
|
"redis": "^4.3.1",
|
|
"redis": "^4.3.1",
|
|
"reflect-metadata": "^0.1.13",
|
|
"reflect-metadata": "^0.1.13",
|
|
"semver": "^7.3.7",
|
|
"semver": "^7.3.7",
|
|
"type-graphql": "^1.1.1",
|
|
"type-graphql": "^1.1.1",
|
|
- "typeorm": "^0.3.6",
|
|
|
|
|
|
+ "typeorm": "^0.3.11",
|
|
"uuid": "^9.0.0",
|
|
"uuid": "^9.0.0",
|
|
"validator": "^13.7.0",
|
|
"validator": "^13.7.0",
|
|
"winston": "^3.7.2",
|
|
"winston": "^3.7.2",
|
|
@@ -56,8 +51,6 @@
|
|
},
|
|
},
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
"@faker-js/faker": "^7.3.0",
|
|
"@faker-js/faker": "^7.3.0",
|
|
- "@swc/cli": "^0.1.57",
|
|
|
|
- "@swc/core": "^1.2.210",
|
|
|
|
"@types/cors": "^2.8.12",
|
|
"@types/cors": "^2.8.12",
|
|
"@types/express": "^4.17.13",
|
|
"@types/express": "^4.17.13",
|
|
"@types/fs-extra": "^9.0.13",
|
|
"@types/fs-extra": "^9.0.13",
|
|
@@ -72,18 +65,20 @@
|
|
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
"@typescript-eslint/parser": "^5.22.0",
|
|
"@typescript-eslint/parser": "^5.22.0",
|
|
"concurrently": "^7.1.0",
|
|
"concurrently": "^7.1.0",
|
|
|
|
+ "esbuild": "^0.16.6",
|
|
"eslint": "^8.13.0",
|
|
"eslint": "^8.13.0",
|
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
|
|
+ "glob": "^8.0.3",
|
|
"graphql-import-node": "^0.0.5",
|
|
"graphql-import-node": "^0.0.5",
|
|
"jest": "^28.1.0",
|
|
"jest": "^28.1.0",
|
|
"nodemon": "^2.0.15",
|
|
"nodemon": "^2.0.15",
|
|
"prettier": "2.6.2",
|
|
"prettier": "2.6.2",
|
|
"rimraf": "^3.0.2",
|
|
"rimraf": "^3.0.2",
|
|
"ts-jest": "^28.0.2",
|
|
"ts-jest": "^28.0.2",
|
|
- "ts-node": "^10.8.2",
|
|
|
|
|
|
+ "ts-node": "^10.9.1",
|
|
"typescript": "4.6.4"
|
|
"typescript": "4.6.4"
|
|
}
|
|
}
|
|
}
|
|
}
|