diff --git a/.npmignore b/.npmignore index 905264aa..b63e269b 100644 --- a/.npmignore +++ b/.npmignore @@ -8,5 +8,4 @@ ts wiki *.bat -*.*ignore -*.d.ts \ No newline at end of file +*.*ignore \ No newline at end of file diff --git a/README.md b/README.md index fd16f005..8117e101 100644 --- a/README.md +++ b/README.md @@ -52,16 +52,23 @@ You can learn and explore about TypeScript-STL more deeply with such below: ## Installation -Installing *TypeScript-STL* in **node** is very easy. Just install with **npm**. +Installing *TypeScript-STL* in **node** is very easy. Just install with **npm** and **tsd**. #### Node -``` npm install -g typescript-stl ``` +``` bash +# Install TypeScript-STL from NPM modules +npm install -g typescript-stl + +# Fetch definition (header) file from TSD +# If TSD is not installed, then type "npm install -g tsd" +tsd install typescript-stl +``` #### TypeScript Don't forget to referencing header files, ```typescript-stl.d.ts```. ``` typescript -/// +/// import std = require("typescript-stl"); let map: std.TreeMap = new std.TreeMap(); diff --git a/package.json b/package.json index fdf62cba..90a3c87d 100644 --- a/package.json +++ b/package.json @@ -1,29 +1,34 @@ { - "name": "typescript-stl", - "description": "TypeScript-STL (Standard Template Library, migrated from C++)", - "author": { - "name": "Jeongho Nam", - "email": "samchon@samchon.org", - "url": "http://samchon.org" - }, - "version": "1.0.0-rc.6", + "name": "typescript-stl", + "description": "TypeScript-STL (Standard Template Library, migrated from C++)", + "author": + { + "name": "Jeongho Nam", + "email": "samchon@samchon.org", + "url": "http://samchon.org" + }, + "version": "1.0.0-rc.8", - "main": "./lib/typescript-stl.js", - "homepage": "https://github.com/samchon/typescript-stl", - "repository": { - "type": "git", - "url": "https://github.com/samchon/typescript-stl.git" - }, - "bugs": { "url": "https://github.com/samchon/typescript-stl/issues" }, + "main": "./lib/typescript-stl.js", + "typings": "./lib/typescript-stl.d.ts", - "licenses": [ - { - "type": "BSD-3-Clause", - "url": "https://opensource.org/licenses/BSD-3-Clause" - } - ], - "keywords": [ - "stl", "standard template library", - "typescript", "standard", "template", "container", "library", - "vector", "deque", "list", "queue", "stack", "hash", "tree", "map", "set", "iterator"] + "homepage": "https://github.com/samchon/typescript-stl", + "repository": + { + "type": "git", + "url": "https://github.com/samchon/typescript-stl.git" + }, + "bugs": { "url": "https://github.com/samchon/typescript-stl/issues" }, + + "licenses": + [{ + "type": "BSD-3-Clause", + "url": "https://opensource.org/licenses/BSD-3-Clause" + }], + "keywords": + [ + "stl", "standard template library", + "typescript", "standard", "template", "container", "library", + "vector", "deque", "list", "queue", "stack", "hash", "tree", "map", "set", "iterator" + ] } \ No newline at end of file