Skip to content

Commit

Permalink
feat: 🎸 release a single es2020 target
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 🧨 Produce only es2020 release artifacts
  • Loading branch information
streamich committed Apr 27, 2024
1 parent 8fa60fb commit 87a9fb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Checks
name: Checks

on:
push:
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es6",
"target": "es2020",
"module": "commonjs",
"moduleResolution": "Node",
"removeComments": false,
Expand Down

0 comments on commit 87a9fb1

Please sign in to comment.