Skip to content

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

Merged
merged 2 commits into from
Mar 19, 2018
Merged

Convert to TypeScript #14

merged 2 commits into from
Mar 19, 2018

Conversation

RMacfarlane
Copy link
Contributor

Convert index and test files to TypeScript

@RMacfarlane RMacfarlane added this to the 0.2.0 milestone Mar 17, 2018
@RMacfarlane RMacfarlane self-assigned this Mar 17, 2018
@RMacfarlane RMacfarlane requested a review from Tyriar March 17, 2018 00:24
lib/index.d.ts Outdated
@@ -0,0 +1,11 @@
export declare enum ProcessDataFlag {
Copy link
Member

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 @@
{
Copy link
Member

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
Copy link
Member

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 ."
Copy link
Member

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
Copy link
Member

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

@RMacfarlane RMacfarlane merged commit 5761e0c into master Mar 19, 2018
@RMacfarlane RMacfarlane deleted the rmacfarlane/typescript branch March 19, 2018 17:26
vmihdal pushed a commit to vmihdal/vscode-windows-process-tree that referenced this pull request Aug 13, 2021
READY : Update node-pre-gyp-github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants