Skip to content

Commit 3bc53c4

Browse files
committed
[chore] remove typescript-definition-tester, use tsc directly
1 parent 43bbb63 commit 3bc53c4

File tree

5 files changed

+10
-71
lines changed

5 files changed

+10
-71
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ script:
66
- npm run flow -- check
77
- npm run test:ci
88
- npm run build
9+
- npm run tsc --noEmit src/__tests__/typescript/*
910
after_success:
1011
- npm run test:coverage

husky.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ module.exports = {
55
'post-checkout': `if [[ $HUSKY_GIT_PARAMS =~ 1$ ]]; then ${runYarnLock}; fi`,
66
'post-merge': runYarnLock,
77
'post-rebase': 'yarn install',
8-
'pre-commit': 'yarn flow check && yarn lint-staged'
8+
'pre-commit': 'yarn typecheck && yarn lint-staged'
99
}
1010
};

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
"typings": "index.d.ts",
3030
"sideEffects": false,
3131
"scripts": {
32-
"build": "npm run clean && npm-run-all --parallel build:*",
32+
"build": "npm run clean && run-p build:*",
3333
"build:development": "NODE_ENV=development rollup -c",
3434
"build:production": "NODE_ENV=production rollup -c",
3535
"clean": "rimraf dist",
3636
"flow": "flow",
37+
"flow:ci": "flow check",
3738
"lint": "yarn lint:cmd --fix",
3839
"lint:ci": "yarn lint:cmd",
3940
"lint:cmd": "eslint . --ext '.js,.json,.snap' --cache",
@@ -42,7 +43,9 @@
4243
"prepublishOnly": "npm run build",
4344
"test": "jest",
4445
"test:ci": "jest --ci",
45-
"test:coverage": "npm run test -- --coverage && cat ./coverage/lcov.info | coveralls"
46+
"test:coverage": "npm run test -- --coverage && cat ./coverage/lcov.info | coveralls",
47+
"tsc:ci": "tsc --noEmit src/__tests__/typescript/*",
48+
"typecheck": "run-p flow:ci tsc:ci"
4649
},
4750
"author": "Paul Armstrong",
4851
"contributors": [
@@ -76,8 +79,7 @@
7679
"rollup-plugin-babel": "^4.0.1",
7780
"rollup-plugin-filesize": "^6.1.0",
7881
"rollup-plugin-terser": "^5.0.0",
79-
"typescript": "^3.4.5",
80-
"typescript-definition-tester": "^0.0.6"
82+
"typescript": "^3.4.5"
8183
},
8284
"dependencies": {}
8385
}

src/__tests__/typescript.test.js

-9
This file was deleted.

yarn.lock

+2-57
Original file line numberDiff line numberDiff line change
@@ -918,10 +918,6 @@ assert-plus@^0.2.0:
918918
version "0.2.0"
919919
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234"
920920

921-
assertion-error@^1.0.1:
922-
version "1.1.0"
923-
resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b"
924-
925921
assign-symbols@^1.0.0:
926922
version "1.0.0"
927923
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
@@ -1224,7 +1220,7 @@ boxen@^2.0.0:
12241220
term-size "^1.2.0"
12251221
widest-line "^2.0.0"
12261222

1227-
brace-expansion@^1.0.0, brace-expansion@^1.1.7:
1223+
brace-expansion@^1.1.7:
12281224
version "1.1.8"
12291225
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292"
12301226
dependencies:
@@ -1781,13 +1777,6 @@ delegates@^1.0.0:
17811777
version "1.0.0"
17821778
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
17831779

1784-
detect-indent@^0.2.0:
1785-
version "0.2.0"
1786-
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-0.2.0.tgz#042914498979ac2d9f3c73e4ff3e6877d3bc92b6"
1787-
dependencies:
1788-
get-stdin "^0.1.0"
1789-
minimist "^0.1.0"
1790-
17911780
detect-indent@^4.0.0:
17921781
version "4.0.0"
17931782
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208"
@@ -1819,14 +1808,6 @@ domexception@^1.0.0:
18191808
dependencies:
18201809
webidl-conversions "^4.0.2"
18211810

1822-
dts-bundle@^0.2.0:
1823-
version "0.2.0"
1824-
resolved "https://registry.yarnpkg.com/dts-bundle/-/dts-bundle-0.2.0.tgz#e165e494b00f81a3b6eb64385cbf6d1b486b7a99"
1825-
dependencies:
1826-
detect-indent "^0.2.0"
1827-
glob "^4.0.2"
1828-
mkdirp "^0.5.0"
1829-
18301811
duplexer@^0.1.1:
18311812
version "0.1.1"
18321813
resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1"
@@ -2432,10 +2413,6 @@ get-own-enumerable-property-symbols@^3.0.0:
24322413
resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.0.tgz#b877b49a5c16aefac3655f2ed2ea5b684df8d203"
24332414
integrity sha512-CIJYJC4GGF06TakLg8z4GQKvDsx9EMspVxOYih7LerEL/WosUnFIww45CGfxfeKHqlg3twgUrYRT1O3WQqjGCg==
24342415

2435-
get-stdin@^0.1.0:
2436-
version "0.1.0"
2437-
resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-0.1.0.tgz#5998af24aafc802d15c82c685657eeb8b10d4a91"
2438-
24392416
get-stdin@^6.0.0:
24402417
version "6.0.0"
24412418
resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b"
@@ -2485,15 +2462,6 @@ glob-parent@^2.0.0:
24852462
dependencies:
24862463
is-glob "^2.0.0"
24872464

2488-
glob@^4.0.2:
2489-
version "4.5.3"
2490-
resolved "https://registry.yarnpkg.com/glob/-/glob-4.5.3.tgz#c6cb73d3226c1efef04de3c56d012f03377ee15f"
2491-
dependencies:
2492-
inflight "^1.0.4"
2493-
inherits "2"
2494-
minimatch "^2.0.1"
2495-
once "^1.3.0"
2496-
24972465
glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2:
24982466
version "7.1.2"
24992467
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
@@ -3744,10 +3712,6 @@ lodash.sortby@^4.7.0:
37443712
version "4.7.0"
37453713
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
37463714

3747-
lodash@^3.6.0:
3748-
version "3.10.1"
3749-
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
3750-
37513715
lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.4:
37523716
version "4.17.5"
37533717
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
@@ -3922,12 +3886,6 @@ mimic-response@^1.0.0:
39223886
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b"
39233887
integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==
39243888

3925-
minimatch@^2.0.1:
3926-
version "2.0.10"
3927-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-2.0.10.tgz#8d087c39c6b38c001b97fca7ce6d0e1e80afbac7"
3928-
dependencies:
3929-
brace-expansion "^1.0.0"
3930-
39313889
minimatch@^3.0.0, minimatch@^3.0.3, minimatch@^3.0.4:
39323890
version "3.0.4"
39333891
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
@@ -3938,10 +3896,6 @@ [email protected], minimist@~0.0.1:
39383896
version "0.0.8"
39393897
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
39403898

3941-
minimist@^0.1.0:
3942-
version "0.1.0"
3943-
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.1.0.tgz#99df657a52574c21c9057497df742790b2b4c0de"
3944-
39453899
minimist@^1.1.1, minimist@^1.2.0:
39463900
version "1.2.0"
39473901
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
@@ -3953,7 +3907,7 @@ mixin-deep@^1.2.0:
39533907
for-in "^1.0.2"
39543908
is-extendable "^1.0.1"
39553909

3956-
"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1:
3910+
"mkdirp@>=0.5 0", mkdirp@^0.5.1:
39573911
version "0.5.1"
39583912
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
39593913
dependencies:
@@ -5620,15 +5574,6 @@ type-fest@^0.4.1:
56205574
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.4.1.tgz#8bdf77743385d8a4f13ba95f610f5ccd68c728f8"
56215575
integrity sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw==
56225576

5623-
typescript-definition-tester@^0.0.6:
5624-
version "0.0.6"
5625-
resolved "https://registry.yarnpkg.com/typescript-definition-tester/-/typescript-definition-tester-0.0.6.tgz#097b02ac08ab9ebc2ca26b929273460130864dd9"
5626-
integrity sha512-DTUerqJ5DFtqkjggKCVVdYZGyXozqM+c+TKORm02ol3gwVcLOxeMkeBHKOBL/VnqeWWSnfoniw+AVDrl9lhVHw==
5627-
dependencies:
5628-
assertion-error "^1.0.1"
5629-
dts-bundle "^0.2.0"
5630-
lodash "^3.6.0"
5631-
56325577
typescript@^3.4.5:
56335578
version "3.4.5"
56345579
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.5.tgz#2d2618d10bb566572b8d7aad5180d84257d70a99"

0 commit comments

Comments
 (0)