Skip to content

Commit 46b6631

Browse files
authored
Develop (#71)
* chore: reproduction with collectCoverageFrom and moduleNameMapper * test: bundle more formats
1 parent 6c9fc61 commit 46b6631

File tree

8 files changed

+274
-47
lines changed

8 files changed

+274
-47
lines changed

package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,27 @@
1010
"packages/*"
1111
],
1212
"scripts": {
13-
"build": "tsc -b",
14-
"test": "jest",
13+
"build": "run-p build:*",
14+
"build:bundle": "r -x eslint-plugin-react/lib/rules/no-unescaped-entities",
15+
"build:ts": "tsc -b",
16+
"lint": "run-p lint:*",
1517
"lint:es": "eslint . --ext js,md,ts -f friendly",
1618
"lint:ts": "tslint -p . -t stylish",
17-
"lint": "run-p lint:*",
19+
"lint:tsc": "tsc",
20+
"test": "jest",
1821
"type-coverage": "type-coverage --cache --ignore-catch --detail --ignore-files *.d.ts --strict"
1922
},
2023
"devDependencies": {
2124
"@1stg/babel-preset": "^0.7.0",
2225
"@1stg/commitlint-config": "^0.1.0",
23-
"@1stg/eslint-config": "^0.12.10",
26+
"@1stg/eslint-config": "^0.12.12",
2427
"@1stg/husky-config": "^0.3.0",
2528
"@1stg/lint-staged": "^0.7.4",
2629
"@1stg/prettier-config": "^0.2.0",
2730
"@1stg/remark-config": "^0.2.1",
28-
"@1stg/tsconfig": "^0.5.1",
29-
"@1stg/tslint-config": "^0.3.3",
31+
"@1stg/rollup-config": "^0.9.6",
32+
"@1stg/tsconfig": "^0.5.4",
33+
"@1stg/tslint-config": "^0.3.4",
3034
"@babel/core": "^7.6.0",
3135
"@commitlint/cli": "^8.2.0",
3236
"@types/cosmiconfig": "^5.0.3",
@@ -44,8 +48,11 @@
4448
"lint-staged": "^9.3.0",
4549
"npm-run-all": "^4.1.5",
4650
"prettier": "1.18.2",
51+
"prettier-plugin-pkg": "^0.3.0",
4752
"react": "^16.9.0",
53+
"rollup": "^1.21.4",
4854
"ts-jest": "^24.1.0",
55+
"ts-node": "^8.4.1",
4956
"tslint": "^5.20.0",
5057
"type-coverage": "^2.3.0",
5158
"typescript": "^3.6.3"

packages/eslint-mdx/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"engines": {
1010
"node": ">=7.0.0"
1111
},
12-
"main": "lib",
12+
"main": "lib/es",
13+
"module": "lib/esm",
14+
"es2015": "lib/es2015",
15+
"types": "lib/types",
1316
"files": [
1417
"lib",
1518
"typings.d.ts"
@@ -28,6 +31,7 @@
2831
"espree": "^6.1.1",
2932
"remark-mdx": "^1.4.5",
3033
"remark-parse": "^7.0.1",
34+
"tslib": "^1.10.0",
3135
"unified": "^8.4.0"
3236
}
3337
}

packages/eslint-mdx/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"composite": true,
55
"rootDir": "src",
6-
"outDir": "lib"
6+
"outDir": "lib/es",
7+
"declarationDir": "lib/types"
78
}
89
}

packages/eslint-plugin-mdx/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"engines": {
1010
"node": ">=7.0.0"
1111
},
12-
"main": "lib",
12+
"main": "lib/es",
13+
"module": "lib/esm",
14+
"es2015": "lib/es2015",
15+
"types": "lib/types",
1316
"files": [
1417
"lib",
1518
"typings.d.ts"
@@ -31,6 +34,7 @@
3134
"remark-mdx": "^1.4.5",
3235
"remark-parse": "^7.0.1",
3336
"remark-stringify": "^7.0.3",
37+
"tslib": "^1.10.0",
3438
"unified": "^8.4.0",
3539
"vfile": "^4.0.1"
3640
},

packages/eslint-plugin-mdx/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"composite": true,
55
"rootDir": "src",
6-
"outDir": "lib"
6+
"outDir": "lib/es",
7+
"declarationDir": "lib/types"
78
}
89
}

tsconfig.base.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
2-
"extends": "@1stg/tsconfig/tsconfig",
2+
"extends": "@1stg/tsconfig/loose",
33
"compilerOptions": {
44
"module": "commonjs",
5-
"skipLibCheck": true,
6-
"strictFunctionTypes": false,
7-
"strictNullChecks": false
5+
"pretty": true
86
}
97
}

tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"extends": "./tsconfig.base.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"incremental": false,
6+
"noEmit": true
7+
},
38
"references": [
49
{
510
"path": "packages/eslint-mdx"

0 commit comments

Comments
 (0)