Skip to content

Commit

Permalink
feat: add bin to package
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kohler authored and Christian Kohler committed Nov 8, 2019
1 parent da9032e commit 9c360f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{
"name": "papertown",
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"main": "dist/index.js",
"scripts": {
"start": "ncc run src/index.ts",
"build": "ncc build src/index.ts -m",
"test": "echo \"Error: no test specified\" && exit 0"
},
"files": ["dist/*"],
"files": [
"dist/*"
],
"bin": {
"papertown": "dist/index.js"
},
"author": "",
"license": "ISC",
"devDependencies": {
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 { getMasterArticlesWithMasterId } from "./masterArticles/master-articles";
import { MasterArticle } from "./masterArticles/MasterArticle";
import { syncBlogPlatformsWithMasters } from "./sync/sync";
Expand Down

0 comments on commit 9c360f9

Please sign in to comment.