Skip to content

Commit 2c69df0

Browse files
committed
chore(info): add typescript support
1 parent 373a304 commit 2c69df0

File tree

9 files changed

+369
-24
lines changed

9 files changed

+369
-24
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"test": "nyc jest",
4343
"travis:integration": "npm run test && npm run reportCoverage",
4444
"travis:lint": "lerna bootstrap && npm run lint && npm run bundlesize",
45-
"tslint": "tslint -c tslint.json \"{packages}/**/!(node_modules)/*.ts\"",
45+
"tslint": "tslint -c tslint.json \"packages/**/*.ts\"",
4646
"watch": "tsc -w"
4747
},
4848
"lint-staged": {

packages/info/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js

packages/info/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.ts
2+
tsconfig.json

packages/info/index.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/info/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import * as envinfo from "envinfo";
2+
import * as process from "process";
3+
4+
/**
5+
* Prints debugging information for webpack issue reporting
6+
*/
7+
8+
export default async function info() {
9+
process.stdout.write(
10+
await envinfo.run({
11+
Binaries: ["Node", "Yarn", "npm"],
12+
Browsers: ["Chrome", "Firefox", "Safari"],
13+
System: ["OS", "CPU"],
14+
npmGlobalPackages: ["webpack", "webpack-cli"],
15+
npmPackages: "*webpack*",
16+
}),
17+
);
18+
}

0 commit comments

Comments
 (0)