Skip to content

Commit

Permalink
chore(info): add typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Jul 4, 2018
1 parent 373a304 commit 2c69df0
Show file tree
Hide file tree
Showing 9 changed files with 369 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"test": "nyc jest",
"travis:integration": "npm run test && npm run reportCoverage",
"travis:lint": "lerna bootstrap && npm run lint && npm run bundlesize",
"tslint": "tslint -c tslint.json \"{packages}/**/!(node_modules)/*.ts\"",
"tslint": "tslint -c tslint.json \"packages/**/*.ts\"",
"watch": "tsc -w"
},
"lint-staged": {
Expand Down
1 change: 1 addition & 0 deletions packages/info/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js
2 changes: 2 additions & 0 deletions packages/info/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.ts
tsconfig.json
21 changes: 0 additions & 21 deletions packages/info/index.js

This file was deleted.

18 changes: 18 additions & 0 deletions packages/info/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as envinfo from "envinfo";
import * as process from "process";

/**
* Prints debugging information for webpack issue reporting
*/

export default async function info() {
process.stdout.write(
await envinfo.run({
Binaries: ["Node", "Yarn", "npm"],
Browsers: ["Chrome", "Firefox", "Safari"],
System: ["OS", "CPU"],
npmGlobalPackages: ["webpack", "webpack-cli"],
npmPackages: "*webpack*",
}),
);
}
Loading

0 comments on commit 2c69df0

Please sign in to comment.