Skip to content

Commit

Permalink
Simplify babel again, workarounds no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
zewish committed Nov 24, 2023
1 parent 2966178 commit eca8442
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 82 deletions.
70 changes: 0 additions & 70 deletions babel-build.mjs

This file was deleted.

180 changes: 178 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-remember",
"version": "4.2.1",
"version": "4.2.2",
"description": "Saves and loads your redux state from a key-value store of your choice",
"author": "Iskren Slavov <[email protected]>",
"license": "MIT",
Expand All @@ -25,8 +25,8 @@
"clean": "rimraf -V es lib dist",
"typecheck": "tsc --noEmit",
"build:umd": "rollup -c ./rollup.config.ts --configPlugin rollup-plugin-ts",
"build:lib": "node ./babel-build.mjs lib",
"build:es": "node ./babel-build.mjs es",
"build:lib": "BABEL_ENV=lib babel --extensions '.ts' src --source-maps --out-dir lib",
"build:es": "BABEL_ENV=es babel --extensions '.ts' src --source-maps --out-dir es",
"build:types": "tsc --pretty --declaration --declarationMap --emitDeclarationOnly --outDir types && rimraf -V ./types/__tests__",
"build": "npm run build:lib && npm run build:es && npm run build:umd && npm run build:types",
"prepare": "npm run clean && npm run typecheck && npm run test && npm run build",
Expand All @@ -39,13 +39,16 @@
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"transform": {
"^.+\\.ts$": ["ts-jest", {
"useESM": true,
"extensionsToTreatAsEsm": [
".js",
".ts"
]
}]
"^.+\\.ts$": [
"ts-jest",
{
"useESM": true,
"extensionsToTreatAsEsm": [
".js",
".ts"
]
}
]
}
},
"files": [
Expand Down Expand Up @@ -81,6 +84,7 @@
"react-native"
],
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.3",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.23.3",
Expand Down

0 comments on commit eca8442

Please sign in to comment.