Skip to content

Commit 65ec3d8

Browse files
voxpelliAriPerkkio
andauthored
feat: compile to target the actual feature set of Node >=12 (#173)
* Use recommended tsconfig base for node 12 * Emit declaration maps * build: update tsconfig.json * build: update lockfile * test: update snapshots Co-authored-by: Ari Perkkiö <[email protected]>
1 parent 3c32e33 commit 65ec3d8

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"devDependencies": {
5050
"@commitlint/cli": "^12.1.1",
5151
"@commitlint/config-conventional": "^12.1.1",
52+
"@tsconfig/node12": "^1.0.8",
5253
"@types/babel__code-frame": "^7.0.2",
5354
"@types/eslint": "^7.2.2",
5455
"@types/jest": "^26.0.15",

test/integration/integration.action-exports.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('integration - compare action exports', () => {
5858
export { RESULT_COMPARISON_CACHE, RESULTS_COMPARISON_CACHE_LOCATION, } from './file-client/file-constants';
5959
export { default as validateConfig } from './config/validator';
6060
export { Config, ConfigToValidate } from './config/types';
61-
"
61+
//# sourceMappingURL=exports-for-compare-action.d.ts.map"
6262
`);
6363
});
6464
});

tsconfig.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
2+
"extends": "./node_modules/@tsconfig/node12/tsconfig.json",
23
"compilerOptions": {
3-
"strict": true,
4-
"module": "commonjs",
5-
"target": "es6",
64
"outDir": "dist",
75
"moduleResolution": "node",
8-
"esModuleInterop": true,
96
"allowSyntheticDefaultImports": true,
107
"noImplicitAny": true,
118
"jsx": "react",
129
"declaration": true,
10+
"declarationMap": true,
1311
"baseUrl": ".",
1412
"paths": {
1513
"@config": ["lib/config"],

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,11 @@
707707
dependencies:
708708
defer-to-connect "^1.0.1"
709709

710+
"@tsconfig/node12@^1.0.8":
711+
version "1.0.8"
712+
resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.8.tgz#a883d62f049a64fea1e56a6bbe66828d11c6241b"
713+
integrity sha512-LM6XwBhjZRls1qJGpiM/It09SntEwe9M0riXRfQ9s6XlJQG0JPGl92ET18LtGeYh/GuOtafIXqwZeqLOd0FNFQ==
714+
710715
"@types/babel__code-frame@^7.0.2":
711716
version "7.0.2"
712717
resolved "https://registry.yarnpkg.com/@types/babel__code-frame/-/babel__code-frame-7.0.2.tgz#e0c0f1648cbc09a9d4e5b4ed2ae9a6f7c8f5aeb0"

0 commit comments

Comments
 (0)