Skip to content

Commit 93574a4

Browse files
authored
[Chore] Prepare to release (#6)
1 parent 4dd1292 commit 93574a4

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pnpm install --save-dev typescript-coverage chalk glob
4646
}
4747
```
4848

49-
2. Create a `type-coverage.config.json` file in the root of your project to customize the coverage calculation (optional).
49+
2. Create a `typescript-coverage.config.json` file in the root of your project to customize the coverage calculation (optional).
5050
When no config was found, the following defaults will be used:
5151

5252
```json5

package.json

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,40 @@
11
{
22
"name": "typescript-coverage",
3-
"version": "1.0.0",
3+
"version": "0.1.0",
44
"type": "module",
55
"main": "./dist/es/index.js",
6+
"module": "./dist/es/index.js",
67
"types": "./dist/types/index.d.ts",
78
"bin": {
89
"typescript-coverage": "./dist/executable.js"
910
},
10-
"description": "",
11-
"keywords": [],
11+
"description": "A dead-simple criteria to track your Typescript migration",
12+
"keywords": [
13+
"typescript",
14+
"ts",
15+
"typescript-coverage",
16+
"type",
17+
"coverage",
18+
"type-coverage",
19+
"node"
20+
],
1221
"author": "Dmitrii Novozhilov <dmitrii.novozhilov@prosehair.com>",
22+
"repository": {
23+
"type": "git",
24+
"url": "https://github.com/prosehair/typescript-coverage.git"
25+
},
26+
"bugs": {
27+
"url": "https://github.com/prosehair/typescript-coverage/issues"
28+
},
29+
"homepage": "https://github.com/prosehair/typescript-coverage",
1330
"license": "MIT",
31+
"files": [
32+
"dist"
33+
],
1434
"scripts": {
15-
"e2e": "pnpm build && ./dist/executable.js",
35+
"prepublishOnly": "pnpm build",
36+
"e2e": "pnpm build && chmod +x ./dist/executable.js && ./dist/executable.js",
1637
"build": "rm -rf dist && pnpm type:generate && rollup -c",
17-
"postbuild": "chmod +x ./dist/executable.js",
1838
"type:generate": "tsc --project tsconfig.declarations.json",
1939
"type:check": "tsc --noEmit",
2040
"test": "jest",

src/__tests__/e2e.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('E2E Test on src code', () => {
2626
const stderr = stripFormatting(rawStderr);
2727

2828
expect(stderr).toContain('created dist/es, dist/executable.js');
29-
expect(stderr).toContain(`Couldn't find type-coverage.config.json file, using defaults`);
29+
expect(stderr).toContain(`Couldn't find typescript-coverage.config.json file, using defaults`);
3030

3131
expect(stdout).toContain('Including files from: src/**/*.{ts,tsx,js,jsx}');
3232
expect(stdout).toContain('Excluding files from: **/__tests__/**');

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import process from 'node:process';
66
import calculateValues from './calculate-values';
77
import normalizeConfig from './normalize-config';
88

9-
const configFileName = 'type-coverage.config.json';
9+
const configFileName = 'typescript-coverage.config.json';
1010

1111
try {
1212
const configPath = `${process.cwd()}/${configFileName}`;

0 commit comments

Comments
 (0)