Skip to content

Commit

Permalink
fix: make ts-express-cli globally accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
idawud committed Jul 6, 2020
1 parent cb54037 commit f9a7918
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
dist/
lib/
8 changes: 1 addition & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand All @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions src/inject.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"outDir": "./lib",
"strict": true,
"lib": ["es2017", "dom"],

"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*"]
Expand Down

0 comments on commit f9a7918

Please sign in to comment.