diff --git a/build.sh b/build.sh index d34956c2..0ec3cca2 100644 --- a/build.sh +++ b/build.sh @@ -10,8 +10,11 @@ mkdir dev/ dist/ echo "Target cleared..." -microbundle --define __ACI_DEV__=true -o dev/index.js --tsconfig tsconfig.build.json --generateTypes=false & -microbundle --define __ACI_DEV__=false -o dist/index.js --tsconfig tsconfig.build.json --generateTypes & +microbundle --define __ACI_DEV__=true -o dev/index.js --tsconfig tsconfig.build.json --generateTypes=false --target=node --format=esm,cjs,modern & +microbundle --define __ACI_DEV__=false -o dist/index.js --tsconfig tsconfig.build.json --generateTypes --target=node --format=esm,cjs,modern & + +microbundle --define __ACI_DEV__=true -o dev/index.js --tsconfig tsconfig.build.json --generateTypes=false --target=web --format=umd & +microbundle --define __ACI_DEV__=false -o dist/index.js --tsconfig tsconfig.build.json --generateTypes --target=web --format=umd & # Add a simple index.d.ts file to type all dev builds echo "export * from '../dist/index.js';" | tee dev/index.d.ts \ diff --git a/package.json b/package.json index 15381b09..8e2178ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "axios-cache-interceptor", - "version": "1.5.0", + "version": "1.5.1", "description": "Cache interceptor for axios", "keywords": [ "axios",