-
Notifications
You must be signed in to change notification settings - Fork 21
Convert to TypeScript #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/index.d.ts
Outdated
@@ -0,0 +1,11 @@ | |||
export declare enum ProcessDataFlag { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will still want to keep ./typings/windows-process-tree.d.ts
and remove this file
@@ -0,0 +1,6 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulling the tslint.json from xterm.js would be good https://github.com/xtermjs/xterm.js/blob/master/tslint.json (I can do this after if there are a lot of changes)
.gitignore
Outdated
**/*.js | ||
**/*.map | ||
test.d.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this for?
package.json
Outdated
@@ -5,7 +5,8 @@ | |||
"main": "lib/index.js", | |||
"types": "typings/windows-process-tree.d.ts", | |||
"scripts": { | |||
"test": "mocha" | |||
"test": "mocha", | |||
"postinstall": "tsc -p ." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think tsc
implies tsc -p .
Let's also add these:
"prepublish": "tsc",
"watch": "tsc -w"
.gitignore
Outdated
node_modules | ||
**/*.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be more specific let's ignore lib
and then add them back in to package.json so both the TS and JS files are published to the module https://github.com/Tyriar/node-pty/blob/ad71e8989d7613e2e439cc191ede6d5e48600f58/package.json#L15-L21
READY : Update node-pre-gyp-github
Convert index and test files to TypeScript