Created
June 22, 2015 15:05
-
-
Save rexim/1949ec8a0dea04eb812b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- mytits.json 2015-06-22 21:04:35.765208405 +0600 | |
+++ package.json 2015-06-22 20:50:51.645234253 +0600 | |
@@ -16,7 +16,7 @@ | |
}, | |
"repository": { | |
"type": "git", | |
- "url": "https://github.com/pspeter3/typescript-register.git" | |
+ "url": "git+https://github.com/pspeter3/typescript-register.git" | |
}, | |
"keywords": [ | |
"typescript", | |
@@ -43,11 +43,8 @@ | |
"mocha": "^2.1.0", | |
"tsd": "^0.6.0-beta.5" | |
}, | |
- "readme": "ERROR: No README data found!", | |
+ "readme": "# TypeScript Register [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage][coveralls-image]][coveralls-url]\n\nExtension to require TypeScript files from Node. This project is an alternative to [typescript-require][typescript-require]. The main differences are:\n\n- Dependencies are run in the same context as the parent\n- Uses the TypeScript API as opposed to forking `tsc`\n- Caches dependencies in `/tmp/typescript-register/:your/:path/:here`\n\n## Examples\n\n### foo.ts\n\n```ts\nexport var foo = 3;\n```\n\n### bar.js\n```js\nrequire('typescript-register');\nvar foo = require('./foo');\n\nconsole.log(foo.foo);\n```\n\n## Installation\n\nInstall with npm:\n\n```\nnpm install typescript-register\n```\n\n## Configuration\n\nThere are three configuration options which are read from environment variables. The configuration options are read each time a module is required so you can programatically set them with: \n\n```js\nprocess.env[':name'] = ':value';\n```\n\nThe values are:\n\n- `TYPESCRIPT_REGISTER_EMIT_ERROR`: Whether or not emit fatal TypeScript errors\n- `TYPESCRIPT_REGISTER_USE_CACHE`: Whether or not to use previously emitted files\n- `TYPESCRIPT_REGISTER_COMPILER_OPTIONS`: The JSON stringified TypeScript compiler options\n\n## Contributing\n\nFeel free to fork and submit pull requests for the code! Please follow the existing code as an example of style and make sure that all your code passes tests.\n\n[npm-url]: https://www.npmjs.org/package/typescript-register\n[npm-image]: http://img.shields.io/npm/v/typescript-register.svg?style=flat-square\n\n[travis-url]: http://travis-ci.org/Asana/pspeter3/typescript-register\n[travis-image]: http://img.shields.io/travis/pspeter3/typescript-register/master.svg?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/pspeter3/typescript-register\n[coveralls-image]: https://img.shields.io/coveralls/pspeter3/typescript-register/master.svg?style=flat-square\n\n[typescript-require]: https://github.com/eknkc/typescript-require\n", | |
+ "readmeFilename": "README.md", | |
"_id": "typescript-register@1.1.0", | |
- "dist": { | |
- "shasum": "a02c93676e7dd3863eaf670b88edf42d846a417c" | |
- }, | |
- "_from": "typescript-register@^1.1.0", | |
- "_resolved": "https://registry.npmjs.org/typescript-register/-/typescript-register-1.1.0.tgz" | |
-} | |
\ No newline at end of file | |
+ "_from": "typescript-register@>=1.1.0 <2.0.0" | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment