Skip to content

Commit

Permalink
Update package.json
Browse files Browse the repository at this point in the history
I have no idea how to publish a Typescript package
it seems!
  • Loading branch information
tomfa committed Aug 1, 2020
1 parent e1b4ea9 commit 9ebeedb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
26 changes: 26 additions & 0 deletions package-dist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "git-csv-timesheet",
"version": "0.1.2",
"description": "Generate a CSV timesheet from your git repositories",
"main": "index.js",
"types": "index.d.ts",
"bin": {
"timesheet": "./bin/timesheet.js"
},
"repository": {
"type": "git",
"url": "https://github.com/tomfa/git-csv-timesheet.git"
},
"keywords": ["git", "time", "reporting", "csv", "timesheet", "hours"],
"author": "Tomas Fagerbekk",
"license": "MIT",
"bugs": {
"url": "https://github.com/tomfa/git-csv-timesheet/issues"
},
"homepage": "https://github.com/tomfa/git-csv-timesheet",
"dependencies": {
"commander": "^6.0.0",
"moment": "^2.10.6",
"nodegit": "^0.27.0"
}
}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@
"typescript": "^3.9.7"
},
"scripts": {
"timesheet": "yarn compile && node ./dist/bin/timesheet.js",
"test": "jest",
"lint": "eslint ./src",
"lint:no-warnings": "eslint ./src --quiet",
"lint:prettier": "prettier --check \"**/*.{js,jsx,ts,tsx,json,mdx,md}\"",
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,json,mdx,md}\"",
"compile": "rm -rf dist && tsc -b",
"prepublish": "yarn compile",
"release": "yarn prepublish && np"
"prepublish": "yarn compile && cp package-dist.json ./dist/package.json",
"release": "yarn prepublish && np --contents=dist"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 9ebeedb

Please sign in to comment.