Moved package script related files to their own folder

ref #59
This commit is contained in:
Nicolai Ort 2020-12-30 20:22:18 +01:00
parent 84a0bd2cd9
commit 395b0101a8
3 changed files with 5 additions and 5 deletions

View File

@ -75,8 +75,8 @@
"test:watch": "jest --watchAll",
"test:ci": "start-server-and-test dev http://localhost:4010/api/docs/openapi.json test",
"seed": "ts-node ./node_modules/typeorm/cli.js schema:sync && ts-node ./node_modules/typeorm-seeding/dist/cli.js seed",
"openapi:export": "ts-node src/openapi_export.ts",
"licenses:export": "node license_exporter.js"
"openapi:export": "ts-node scripts/openapi_export.ts",
"licenses:export": "node scripts/license_exporter.js"
},
"nodemonConfig": {
"ignore": [

View File

@ -4,9 +4,9 @@ import fs from "fs";
import "reflect-metadata";
import { createExpressServer, getMetadataArgsStorage } from "routing-controllers";
import { routingControllersToSpec } from 'routing-controllers-openapi';
import { config } from './config';
import authchecker from "./middlewares/authchecker";
import { ErrorHandler } from './middlewares/ErrorHandler';
import { config } from '../src/config';
import authchecker from "../src/middlewares/authchecker";
import { ErrorHandler } from '../src/middlewares/ErrorHandler';
const CONTROLLERS_FILE_EXTENSION = process.env.NODE_ENV === 'production' ? 'js' : 'ts';
createExpressServer({