feat(medusa-js): Bundle package using Rollup (#2964)

This commit is contained in:
Kasper Fabricius Kristensen
2023-01-10 08:44:25 -05:00
committed by GitHub
parent f3ced106ad
commit f6c81dab9e
6 changed files with 198 additions and 30 deletions

View File

@@ -2,20 +2,21 @@
"name": "@medusajs/medusa-js",
"version": "1.3.5",
"description": "Client for Medusa Commerce Rest API",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"files": [
"dist/**/*"
],
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --build",
"build": "rollup -c --bundleConfigAsCjs",
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests"
},
"author": "Oliver Juhl",
"license": "MIT",
"dependencies": {
"axios": "^0.24.0",
"axios": "0.26.1",
"form-data": "^4.0.0",
"qs": "^6.10.3",
"retry-axios": "^2.6.0"
@@ -33,9 +34,14 @@
},
"devDependencies": {
"@medusajs/medusa": "^1.7.1",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@types/jest": "^26.0.19",
"cross-env": "^7.0.3",
"jest": "^26.6.3",
"rollup": "^3.9.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.34.1",
"typescript": "^4.1.3"
},
"gitHead": "cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e",