From a3f27b85f19db17e7a6c395c3979659b627d20b2 Mon Sep 17 00:00:00 2001 From: Uiolee <22849383+uiolee@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:30:15 +0800 Subject: [PATCH] build: upgrade ecmascript version (#5507) * build: upgrade ecmascript version * ci: adjust conditions of check --- .github/workflows/linter.yml | 1 - .github/workflows/tester.yml | 3 ++- tsconfig.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index a4f1c7cfd1..0432976eb7 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -4,7 +4,6 @@ on: push: branches: - "master" - - "v7.0.0" paths: - "lib/**" - "test/**" diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 700cda5872..7c443e7418 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -4,17 +4,18 @@ on: push: branches: - "master" - - "v7.0.0" paths: - "lib/**" - "test/**" - "package.json" + - "tsconfig.json" - ".github/workflows/tester.yml" pull_request: paths: - "lib/**" - "test/**" - "package.json" + - "tsconfig.json" - ".github/workflows/tester.yml" permissions: diff --git a/tsconfig.json b/tsconfig.json index 78046e5376..6277f08394 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "target": "es6", + "target": "es2020", "sourceMap": true, "outDir": "dist", "declaration": true, @@ -17,4 +17,4 @@ "exclude": [ "node_modules" ] -} \ No newline at end of file +}