Skip to content

Commit

Permalink
Merge pull request gitsome#1 from ChristianMurphy/build/export-cli
Browse files Browse the repository at this point in the history
build: export CLI as part of the NPM package
  • Loading branch information
gitsome authored Sep 16, 2019
2 parents 37edad3 + ca38394 commit 8841539
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ yarn add json-schema-validators-typescript-interfaces -D
From the root of your project, you can invoke the module directly

```bash
node node_modules/json-schema-validators-typescript-interfaces/dist/index.js -s <path to your json schema source>
json-schema-validators-typescript-interfaces -s <path to your json schema source>
```

## Build Integration
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
100644 → 100755

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

2 changes: 1 addition & 1 deletion dist/index.js.map

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"files": [
"dist/index.js"
],
"bin": {
"json-schema-validators-typescript-interfaces": "./dist/index.js"
},
"repository": "https://github.com/gitsome/json-schema-validators-typescript-interfaces.git",
"author": "John David Martin <johndavidfive@gmail.com>",
"license": "MIT",
Expand All @@ -21,15 +24,15 @@
"dependencies": {
"ajv": "^6.10.2",
"ajv-pack": "^0.3.1",
"fs-extra": "^8.1.0",
"json-schema-to-typescript": "^7.1.0",
"yargs": "^14.0.0"
},
"devDependencies": {
"@types/jest": "^24.0.18",
"fs-extra": "^8.1.0",
"husky": "^3.0.5",
"jasmine": "^3.4.0",
"jasmine-terminal-reporter": "^1.0.3",
"json-schema-to-typescript": "^7.1.0",
"lint-staged": "^9.2.1",
"readdirp": "^3.1.2",
"ts-node": "^8.3.0",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import fs from 'fs-extra';
import path from 'path';
import yargs from 'yargs';
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,9 @@ merge-stream@^2.0.0:
integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==

merge2@^1.2.3:
version "1.2.4"
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.2.4.tgz#c9269589e6885a60cf80605d9522d4b67ca646e3"
integrity sha512-FYE8xI+6pjFOhokZu0We3S5NKCirLbCzSh2Usf3qEyr4X8U+0jNg9P8RZ4qz+V2UoECLVwSyzU3LxXBaLGtD3A==
version "1.3.0"
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.3.0.tgz#5b366ee83b2f1582c48f87e47cf1a9352103ca81"
integrity sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==

micromatch@^4.0.2:
version "4.0.2"
Expand Down Expand Up @@ -1742,9 +1742,9 @@ to-regex-range@^5.0.1:
is-number "^7.0.0"

ts-node@^8.3.0:
version "8.3.0"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.3.0.tgz#e4059618411371924a1fb5f3b125915f324efb57"
integrity sha512-dyNS/RqyVTDcmNM4NIBAeDMpsAdaQ+ojdf0GOLqE6nwJOgzEkdRNzJywhDfwnuvB10oa6NLVG1rUJQCpRN7qoQ==
version "8.4.1"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.4.1.tgz#270b0dba16e8723c9fa4f9b4775d3810fd994b4f"
integrity sha512-5LpRN+mTiCs7lI5EtbXmF/HfMeCjzt7DH9CZwtkr6SywStrNQC723wG+aOWFiLNn7zT3kD/RnFqi3ZUfr4l5Qw==
dependencies:
arg "^4.1.0"
diff "^4.0.1"
Expand Down

0 comments on commit 8841539

Please sign in to comment.