Skip to content

Commit

Permalink
Merge pull request #22 from mblink/es2020
Browse files Browse the repository at this point in the history
bump es target to es2020
  • Loading branch information
SuttonKyle authored Jun 7, 2024
2 parents 3812d53 + a73dd86 commit e0d9079
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/example.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { init } from '../dist/es2015';
import { init } from '../dist/es2020';

init('http://localhost:8080/pdf.worker.min.mjs');
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0-legacy",
"description": "PDF and MS Doc viewer written in TypeScript for React and vanilla JavaScript",
"main": "dist/lib/index.js",
"module": "dist/es2015/index.js",
"types": "dist/es2015/index.d.ts",
"module": "dist/es2020/index.js",
"types": "dist/es2020/index.d.ts",
"engines": {
"node": ">=18.15.0"
},
Expand All @@ -13,8 +13,8 @@
"styles"
],
"scripts": {
"build": "npm run build-es2015",
"build-es2015": "tsc -p tsconfig.json",
"build": "npm run build-es2020",
"build-es2020": "tsc -p tsconfig.json",
"build-example": "npm run build && tsc -p tsconfig.example.json && webpack",
"clean": "rimraf ./dist ./build",
"lint:no-fix": "eslint --config='.eslintrc.js' './src/*.{ts,tsx}' './tests/*.{ts,tsx}'",
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"jsx": "react",
"lib": [
"dom",
"es2015"
"es2020"
],
"module": "es2015",
"module": "es2020",
"moduleResolution": "node",
"noEmitOnError": true,
"noErrorTruncation": true,
Expand All @@ -21,10 +21,10 @@
"noUnusedLocals": false,
"noUnusedParameters": false,
"pretty": true,
"outDir": "./dist/es2015",
"outDir": "./dist/es2020",
"sourceMap": true,
"strict": true,
"target": "es2015"
"target": "es2020"
},
"include": [
"src/*"
Expand Down

0 comments on commit e0d9079

Please sign in to comment.