Skip to content

Commit

Permalink
enhance: Target 2019 browser for lib build; remove need for babel run…
Browse files Browse the repository at this point in the history
…time
  • Loading branch information
ntucker committed Feb 9, 2024
1 parent 0e1e90c commit 76d46e0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"README.md"
],
"scripts": {
"build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2018' babel src --out-dir lib --source-maps inline --extensions '.ts,.tsx,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'",
"build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2019' babel src --out-dir lib --source-maps inline --extensions '.ts,.tsx,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'",
"build:types": "tsc --emitDeclarationOnly -p ./src",
"build:bundle": "run build:js:node && run build:js:browser",
"build:js:node": "BROWSERSLIST_ENV=node12 rollup -c",
Expand All @@ -27,9 +27,9 @@
"lint": "eslint --ext .ts,.tsx",
"format": "eslint --fix \"src/**/*.{js,ts,tsx}\"",
"test": "NODE_ENV=test jest",
"test:ci": "run test -- --ci",
"test:watch": "run test -- --watch",
"test:coverage": "run test -- --coverage",
"test:ci": "run test --ci",
"test:watch": "run test --watch",
"test:coverage": "run test --coverage",
"changelog": "npx auto-changelog --stdout",
"beforeStage": "npx auto-changelog -p && git add CHANGELOG.md"
},
Expand Down Expand Up @@ -106,7 +106,6 @@
}
},
"dependencies": {
"@babel/runtime": "^7.23.9",
"@types/hoist-non-react-statics": "^3.3.5",
"hoist-non-react-statics": "^3.3.2"
},
Expand Down

0 comments on commit 76d46e0

Please sign in to comment.