diff --git a/package.json b/package.json index 1eb1a81..d9fa91b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "bin": "bin/typeorm-model-generator", "scripts": { "start": "ts-node ./src/index.ts", - "build": "npm run clean && tsc && ncp src/templates/ dist/src/templates/", + "build": "npm run clean && tsc && ncp src/templates/ dist/src/templates/ && ncp package.json dist/package.json", "prepare": "npm run build", "pretest": "tsc --noEmit", "test": "nyc --reporter=lcov ts-node ./node_modules/mocha/bin/_mocha test/**/*.test.ts -- --bail", diff --git a/tsconfig.json b/tsconfig.json index 5d766ab..93cff05 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,9 @@ "lib": [ "es2019","es2019.array" ], + "typeRoots": [ + "./node_modules/@types" + ], "resolveJsonModule": true, }, "include": [