diff --git a/.gitignore b/.gitignore index 04c01ba..0f6d69f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -dist/ \ No newline at end of file +dist/ +lib/ \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 8a44ad6..2babe26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ts-express-cli", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -184,12 +184,6 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "command-exists": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", - "integrity": "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==", - "dev": true - }, "commander": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", diff --git a/package.json b/package.json index 7008af3..76f6481 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-express-cli", - "version": "0.0.2 ", + "version": "0.0.4", "description": "A simple cli tool to generate a minimal NodeJs express server with TypeScript", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -17,8 +17,6 @@ "prepare": "npm run build", "prepublishOnly": "npm test", "version": "git add -A src", - "patch-release": "npm version patch && npm publish && git push --follow-tags", - "prepublish": "npm run build", "postversion": "git push && git push --tags" }, "repository": { @@ -41,7 +39,6 @@ "homepage": "https://github.com/idawud/ts-express-cli#readme", "devDependencies": { "@types/node": "^14.0.14", - "command-exists": "^1.2.9", "prettier": "^2.0.5", "ts-node": "^8.10.2", "tslint": "^6.1.2", diff --git a/src/inject.ts b/src/inject.ts index aecfd22..2734e8b 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -1,8 +1,6 @@ import { Ioptions } from './interface'; const fse = require('fs-extra'); const chalk = require('chalk'); -const { exec } = require('child_process'); -const { commandExistsSync } = require('command-exists').sync; const print = (msg: string, type: string) => { const error = chalk.red; diff --git a/tsconfig.json b/tsconfig.json index 8daf7b1..d2f48cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,9 @@ "outDir": "./lib", "strict": true, "lib": ["es2017", "dom"], - + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true }, "include": ["src"], "exclude": ["node_modules", "**/__tests__/*"]