Skip to content

Commit 8998a96

Browse files
committed
chore: improvements to package.json to prepare it for publishing on npm
1 parent bf29027 commit 8998a96

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# TypeScript algorithms and data structures
22

3+
Useful algorithms and Data structures written in typescript.
4+
35
[![Build Status](https://travis-ci.org/sularome/TypeScript-Algorithms-and-Data-Structures.svg?branch=master)](https://travis-ci.org/sularome/TypeScript-Algorithms-and-Data-Structures) [![Code Climate](https://codeclimate.com/github/sularome/JavaScript-Algorithms/badges/gpa.svg)](https://codeclimate.com/github/sularome/JavaScript-Algorithms) [![Test Coverage](https://codeclimate.com/github/sularome/JavaScript-Algorithms/badges/coverage.svg)](https://codeclimate.com/github/sularome/JavaScript-Algorithms/coverage) [![Issue Count](https://codeclimate.com/github/sularome/JavaScript-Algorithms/badges/issue_count.svg)](https://codeclimate.com/github/sularome/JavaScript-Algorithms)

package.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "javascript-algorithms",
2+
"name": "typescript-algorithms-and-datastructures",
33
"version": "0.0.1",
44
"description": "",
55
"main": "dist/index.js",
@@ -9,18 +9,21 @@
99
"clear": "npx rimraf dist",
1010
"test": "npx jest --config jestconfig.json",
1111
"build": "npm run clear && npx tsc",
12-
"lint": "npx tslint"
12+
"lint": "npx tslint",
13+
"prepare": "npm run build",
14+
"prepublishOnly": "npm test",
15+
"postversion": "git push && git push --tags"
1316
},
1417
"repository": {
1518
"type": "git",
16-
"url": "https://github.com/sularome/JavaScript-Algorithms.git"
19+
"url": "https://github.com/sularome/TypeScript-Algorithms-and-Data-Structures.git"
1720
},
1821
"author": "Yordan Stoev",
1922
"license": "ISC",
2023
"bugs": {
21-
"url": "https://github.com/sularome/JavaScript-Algorithms/issues"
24+
"url": "https://github.com/sularome/TypeScript-Algorithms-and-Data-Structures/issues"
2225
},
23-
"homepage": "https://github.com/sularome/JavaScript-Algorithms",
26+
"homepage": "https://github.com/sularome/TypeScript-Algorithms-and-Data-Structures",
2427
"devDependencies": {
2528
"@types/jest": "^24.0.11",
2629
"jest": "^24.5.0",

0 commit comments

Comments
 (0)