build: transition to Typescript without Babel #252

Merged
mcataford merged 6 commits from ts-via-tsc-without-babel into master 2021-06-05 15:29:16 +00:00
4 changed files with 83 additions and 30 deletions
Showing only changes of commit 99e0f37844 - Show all commits

View file

@ -1,3 +1,8 @@
module.exports = {
transformIgnorePatterns: ['.test.js'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
roots: ['<rootDir>/src'],
testMatch: ['**/*.test.ts'],
}

View file

@ -56,6 +56,7 @@
"eslint-plugin-prettier": "^3.1.2",
"jest": "^26.0.1",
"prettier": "^2.0.5",
"ts-jest": "^26",
"typescript": "^4.1.3"
}
}

107
yarn.lock
View file

@ -2279,6 +2279,15 @@ __metadata:
languageName: node
linkType: hard
"bs-logger@npm:0.x":
version: 0.2.6
resolution: "bs-logger@npm:0.2.6"
dependencies:
fast-json-stable-stringify: 2.x
checksum: f5f2f1315d6ceac655c3945d149086a5f5a90b3c908780757e12e938aad0125a7aa563cae2f7153ccf43443adb1b88a44960a61063903c3973e1dfdda6fc2d8c
languageName: node
linkType: hard
"bser@npm:2.1.1":
version: 2.1.1
resolution: "bser@npm:2.1.1"
@ -2288,7 +2297,7 @@ __metadata:
languageName: node
linkType: hard
"buffer-from@npm:^1.0.0":
"buffer-from@npm:1.x, buffer-from@npm:^1.0.0":
version: 1.1.1
resolution: "buffer-from@npm:1.1.1"
checksum: 540ceb79c4f5bfcadaabbc18324fa84c50dc52905084be7c03596a339cf5a88513bee6831ce9b36ddd046fab09257a7c80686e129d0559a0cfd141da196ad956
@ -3346,7 +3355,7 @@ __metadata:
languageName: node
linkType: hard
"fast-json-stable-stringify@npm:^2.0.0":
"fast-json-stable-stringify@npm:2.x, fast-json-stable-stringify@npm:^2.0.0":
version: 2.1.0
resolution: "fast-json-stable-stringify@npm:2.1.0"
checksum: 7df3fabfe445d65953b2d9d9d3958bd895438b215a40fb87dae8b2165c5169a897785eb5d51e6cf0eb03523af756e3d82ea01083f6ac6341fe16db532fee3016
@ -4676,7 +4685,7 @@ __metadata:
languageName: node
linkType: hard
"jest-util@npm:^26.6.2":
"jest-util@npm:^26.1.0, jest-util@npm:^26.6.2":
version: 26.6.2
resolution: "jest-util@npm:26.6.2"
dependencies:
@ -4868,6 +4877,17 @@ __metadata:
languageName: node
linkType: hard
"json5@npm:2.x, json5@npm:^2.1.2":
version: 2.2.0
resolution: "json5@npm:2.2.0"
dependencies:
minimist: ^1.2.5
bin:
json5: lib/cli.js
checksum: 07b1f90c2801dc52df2b0ac8d606cc400a85cda79130e754780fa2ab9805d0fb85a0e61b6a5cdd68e88e5d0c8f9109ec415af08283175556cdccaa8563853908
languageName: node
linkType: hard
"json5@npm:^1.0.1":
version: 1.0.1
resolution: "json5@npm:1.0.1"
@ -4879,17 +4899,6 @@ __metadata:
languageName: node
linkType: hard
"json5@npm:^2.1.2":
version: 2.2.0
resolution: "json5@npm:2.2.0"
dependencies:
minimist: ^1.2.5
bin:
json5: lib/cli.js
checksum: 07b1f90c2801dc52df2b0ac8d606cc400a85cda79130e754780fa2ab9805d0fb85a0e61b6a5cdd68e88e5d0c8f9109ec415af08283175556cdccaa8563853908
languageName: node
linkType: hard
"jsprim@npm:^1.2.2":
version: 1.4.1
resolution: "jsprim@npm:1.4.1"
@ -5013,10 +5022,10 @@ __metadata:
languageName: node
linkType: hard
"lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.20":
version: 4.17.20
resolution: "lodash@npm:4.17.20"
checksum: c62101d2500c383b5f174a7e9e6fe8098149ddd6e9ccfa85f36d4789446195f5c4afd3cfba433026bcaf3da271256566b04a2bf2618e5a39f6e67f8c12030cb6
"lodash@npm:4.x, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.20":
version: 4.17.21
resolution: "lodash@npm:4.17.21"
checksum: 4983720b9abca930a4a46f18db163d7dad8dd00dbed6db0cc7b499b33b717cce69f80928b27bbb1ff2cbd3b19d251ee90669a8b5ea466072ca81c2ebe91e7468
languageName: node
linkType: hard
@ -5048,6 +5057,13 @@ __metadata:
languageName: node
linkType: hard
"make-error@npm:1.x":
version: 1.3.6
resolution: "make-error@npm:1.3.6"
checksum: 2c780bab8409b865e8ee86697c599a2bf2765ec64d21eb67ccda27050e039f983feacad05a0d43aba3c966ea03d305d2612e94fec45474bcbc61181f57c5bb88
languageName: node
linkType: hard
"makeerror@npm:1.0.x":
version: 1.0.11
resolution: "makeerror@npm:1.0.11"
@ -5186,7 +5202,7 @@ __metadata:
languageName: node
linkType: hard
"mkdirp@npm:^1.0.3":
"mkdirp@npm:1.x, mkdirp@npm:^1.0.3":
version: 1.0.4
resolution: "mkdirp@npm:1.0.4"
bin:
@ -5592,6 +5608,7 @@ __metadata:
eslint-plugin-prettier: ^3.1.2
jest: ^26.0.1
prettier: ^2.0.5
ts-jest: ^26
typescript: ^4.1.3
bin:
packwatch: ./dist/cli.js
@ -6303,6 +6320,17 @@ __metadata:
languageName: node
linkType: hard
"semver@npm:7.x, semver@npm:^7.2.1, semver@npm:^7.3.2":
version: 7.3.5
resolution: "semver@npm:7.3.5"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: c53624ddf4b9779bcbf55a1eb8b37074cc44bfeca416f3cc263429408202a8a3c59b00eef8c647d697303bc39b95c022a5c61959221d3814bfb1270ff7c14986
languageName: node
linkType: hard
"semver@npm:^6.0.0, semver@npm:^6.3.0":
version: 6.3.0
resolution: "semver@npm:6.3.0"
@ -6312,17 +6340,6 @@ __metadata:
languageName: node
linkType: hard
"semver@npm:^7.2.1, semver@npm:^7.3.2":
version: 7.3.4
resolution: "semver@npm:7.3.4"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: f2c7f9aeb976d1484b2f39aa7afc8332a1d21fd32ca4a6fbf650e1423455ebf3e7029f6e2e7ba0cd71935b85942521f1ec25b6cc2c031b953c8ca4ff2d7a823d
languageName: node
linkType: hard
"set-blocking@npm:^2.0.0, set-blocking@npm:~2.0.0":
version: 2.0.0
resolution: "set-blocking@npm:2.0.0"
@ -6917,6 +6934,29 @@ __metadata:
languageName: node
linkType: hard
"ts-jest@npm:^26":
version: 26.5.6
resolution: "ts-jest@npm:26.5.6"
dependencies:
bs-logger: 0.x
buffer-from: 1.x
fast-json-stable-stringify: 2.x
jest-util: ^26.1.0
json5: 2.x
lodash: 4.x
make-error: 1.x
mkdirp: 1.x
semver: 7.x
yargs-parser: 20.x
peerDependencies:
jest: ">=26 <27"
typescript: ">=3.8 <5.0"
bin:
ts-jest: cli.js
checksum: fd32a8b256091d45d850c491fd090f74a368d44bccc8fedfa0dd074757727e7f07621eb2a69ebf081428f44a357a879237a2cf0aef970896410d454d0bf87ac6
languageName: node
linkType: hard
"tsconfig-paths@npm:^3.9.0":
version: 3.9.0
resolution: "tsconfig-paths@npm:3.9.0"
@ -7371,6 +7411,13 @@ typescript@^4.1.3:
languageName: node
linkType: hard
"yargs-parser@npm:20.x":
version: 20.2.7
resolution: "yargs-parser@npm:20.2.7"
checksum: 124e7f1c24c9609d5d1c343f14b83289634e19bb43770708ebb6a19852647aaa0f89edcbf0e5b18a21bee77f54513ab5051518b2950cda69eb607a7c6251aa4f
languageName: node
linkType: hard
"yargs-parser@npm:^18.1.2":
version: 18.1.3
resolution: "yargs-parser@npm:18.1.3"