diff --git a/package-lock.json b/package-lock.json index bbd9f19..be2f02b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "periodum_api", "version": "1.0.0", + "hasInstallScript": true, "dependencies": { "@prisma/client": "^3.9.2", "express": "^4.17.2", diff --git a/package.json b/package.json index e389742..02a7b27 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "start": "NODE_ENV=production ts-node src/app.ts", "test": "NODE_ENV=test mocha --check-leaks -r ts-node/register -r tsconfig-paths/register \"test/**/*.spec.ts\"", "test:watch": "NODE_ENV=test mocha --check-leaks -r ts-node/register -r tsconfig-paths/register \"test/**/*.spec.ts\" -w --watch-files \"test/**/*.spec.ts\",\"src/**/*.ts\"", + "postinstall": "prisma generate", "import:pubchem": "node dist/pubchem-import/index.js" }, "husky": {