Skip to content

Commit

Permalink
fix: drop esm5 build from package
Browse files Browse the repository at this point in the history
BREAKING CHANGE: es5 build is no longer shipped.
  • Loading branch information
lacolaco committed May 25, 2022
1 parent afd4835 commit 30ca6f5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
/tmp
/out-tsc
/bundles
/esm5
/esm2015
/esm

# dependencies
/node_modules
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@
"scripts": {
"test": "jest --watch",
"test:ci": "jest",
"prebuild": "rimraf {dist,esm5,esm2015}",
"prebuild": "rimraf {dist,esm}",
"build": "run-p 'tsc:*'",
"tsc:main": "tsc -p tsconfig.json --outDir dist",
"tsc:esm5": "tsc -p tsconfig.esm5.json --outDir esm5",
"tsc:esm2015": "tsc -p tsconfig.esm2015.json --outDir esm2015",
"tsc:esm2015": "tsc -p tsconfig.esm.json --outDir esm",
"format": "prettier --write 'src/**/*.ts'",
"format:check": "prettier --check 'src/**/*.ts'",
"lint": "yarn lint:eslint && yarn format:check",
"lint:eslint": "eslint 'src/**/*.ts'"
},
"main": "dist/index.js",
"module": "esm5/index.js",
"es2015": "esm2015/index.js",
"typings": "dist/index.d.ts",
"exports": {
"import": "./dist/index.js",
"require": "./esm/index.js"
},
"types": "dist/index.d.ts",
"peerDependencies": {
"rxjs": "^6.0.0 || ^7.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion tsconfig.esm5.json → tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "es5",
"module": "es2015",
}
}
7 changes: 0 additions & 7 deletions tsconfig.esm2015.json

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compileOnSave": false,
"compilerOptions": {
"target": "es5",
"target": "es2015",
"module": "commonjs",
"sourceMap": true,
"declaration": true,
Expand Down

0 comments on commit 30ca6f5

Please sign in to comment.