Skip to content

Instantly share code, notes, and snippets.

@Falieson
Last active May 31, 2018 22:01
Show Gist options
  • Save Falieson/c6b9d4bd0d0323549270818da9555696 to your computer and use it in GitHub Desktop.
Save Falieson/c6b9d4bd0d0323549270818da9555696 to your computer and use it in GitHub Desktop.
S5. F02. Package.json Settings (ARTICLE: TS-Module w/ Declarations (Part 1/4))
/** TS-Module w/ Declarations (Part 1/4)
* http://TGRstack.com/#ts-module_articles_part-1
* package settings (Section 5. Figure 02.)
* complete file: https://github.com/Falieson/2018-typescript-module/blob/master/package.json
// json5 file format to support comments
**/
{
"name": "ts-module",
"version": "1.0.0",
"description": "TGRStack TS-Module w/ Declarations, WebPack, and Opinions.",
"main": "dist/index.js", // # CHANGE THIS
"typings": "./dist/index", // # ADD THIS
"dependencies": {},
"devDependencies": {
"rimraf": "2.6.2",
"ts-node": "6.0.5",
"typescript": "2.9.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Falieson/2018-typescript-module.git"
},
// ... more stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment