From 87a9fb137e589bd28947aeb29b934aba865e90c1 Mon Sep 17 00:00:00 2001 From: streamich Date: Sat, 27 Apr 2024 18:33:51 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20release=20a=20single=20e?= =?UTF-8?q?s2020=20target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: 🧨 Produce only es2020 release artifacts --- .github/workflows/checks.yml | 2 +- package.json | 13 ++++++------- tsconfig.json | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index f075f58..b5a5efd 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,4 +1,4 @@ -name: PR Checks +name: Checks on: push: diff --git a/package.json b/package.json index bcef8cb..eada3d7 100644 --- a/package.json +++ b/package.json @@ -8,16 +8,18 @@ }, "homepage": "https://github.com/streamich/thingies", "repository": "streamich/thingies", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, "license": "Unlicense", "engines": { "node": ">=10.18" }, "main": "lib/index.js", - "module": "es6/index.js", "files": [ "lib/", - "es6/", - "es2020/" + "LICENSE" ], "types": "lib/index.d.ts", "typings": "lib/index.d.ts", @@ -27,10 +29,7 @@ "tslint": "tslint 'src/**/*.{js,jsx,ts,tsx}' -t verbose", "lint": "yarn tslint", "clean": "rimraf lib es6 es2020 coverage typedocs gh-pages", - "build:cjs": "tsc", - "build:es6": "tsc --module commonjs --target es6 --outDir es6", - "build:es2020": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir es2020", - "build": "yarn build:cjs && yarn build:es6 && yarn build:es2020", + "build": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib", "test": "jest --no-cache --config='jest.config.js'", "coverage": "yarn test --collectCoverage", "typedoc": "npx typedoc@0.25.13 --tsconfig tsconfig.build.json", diff --git a/tsconfig.json b/tsconfig.json index 8ba7ec3..0b61e5f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es6", + "target": "es2020", "module": "commonjs", "moduleResolution": "Node", "removeComments": false,