From 2e82de0b78b1fdac34fd92cb0c025702fd3cf0c8 Mon Sep 17 00:00:00 2001 From: q_h Date: Tue, 2 Mar 2021 14:24:07 +0300 Subject: [PATCH] build: set ts target to ES2018 minimum supported NodeJS version is now 10.10.0 BREAKING CHANGE: drop NodeJS v8.x support --- package.json | 2 +- tsconfig.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 883c7a0..afbee0c 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "repository": "kukhariev/diskinfo", "engines": { - "node": ">= 8.0.0" + "node": ">= 10.10.0" }, "license": "MIT", "files": [ diff --git a/tsconfig.json b/tsconfig.json index bd4aca1..05798e7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,11 +3,10 @@ "compilerOptions": { "module": "commonjs", "outDir": "./lib", - "target": "es2015", + "target": "ES2018", "declaration": true, "noImplicitAny": true }, "include": ["./src/**/*"], - "exclude": ["./test/*.spec.ts"], - + "exclude": ["./test/*.spec.ts"] }