Skip to content

Commit

Permalink
fix: verify built ecmascript versions with es-check
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Dec 30, 2021
1 parent 232e9c5 commit 58b6b12
Show file tree
Hide file tree
Showing 4 changed files with 497 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Build
run: yarn build

- name: ESCheck
run: yarn escheck

- name: Publish to Codecov
uses: codecov/codecov-action@v2.1.0
with:
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"escheck": "es-check es5 ./dist/index.es5.min.js && es-check es6 ./dist/index.min.js",
"format": "prettier --write .",
"lint": "tsc --noEmit && eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
Expand Down Expand Up @@ -56,6 +57,7 @@
"auto-changelog": "^2.3.0",
"axios": "~0.24.0",
"concurrently": "^6.4.0",
"es-check": "^6.1.1",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ const config = ({ output, esTarget, minimize, entry }) => ({
library: {
type: 'umd',
name: 'AxiosCacheInterceptor'
}
},
chunkFormat: 'module'
},

target: esTarget,

resolve: {
extensions: ['.ts', '.js']
},
Expand Down

0 comments on commit 58b6b12

Please sign in to comment.