|
3 | 3 | "version": "1.793.0",
|
4 | 4 | "description": "BigCommerce Checkout JavaScript SDK",
|
5 | 5 | "license": "MIT",
|
6 |
| - "main": "dist/checkout-sdk.js", |
| 6 | + "main": "dist/cjs/checkout-sdk.js", |
| 7 | + "module": "dist/esm/checkout-sdk.js", |
7 | 8 | "typings": "dist/checkout-sdk.d.ts",
|
| 9 | + "exports": { |
| 10 | + ".": { |
| 11 | + "types": "./dist/checkout-sdk.d.ts", |
| 12 | + "import": "./dist/esm/checkout-sdk.js", |
| 13 | + "require": "./dist/cjs/checkout-sdk.js" |
| 14 | + }, |
| 15 | + "./essential": { |
| 16 | + "types": "./dist/checkout-sdk.d.ts", |
| 17 | + "import": "./dist/esm/checkout-sdk-essential.js", |
| 18 | + "require": "./dist/cjs/checkout-sdk-essential.js" |
| 19 | + }, |
| 20 | + "./integrations": { |
| 21 | + "types": "./dist/integrations.d.ts", |
| 22 | + "import": "./dist/esm/integrations.js", |
| 23 | + "require": "./dist/cjs/integrations.js" |
| 24 | + } |
| 25 | + }, |
8 | 26 | "files": [
|
9 | 27 | "dist/",
|
10 | 28 | "docs/"
|
|
32 | 50 | "build-cdn": "npx nx run core:build-cdn",
|
33 | 51 | "prebundle": "rm -rf dist",
|
34 | 52 | "bundle": "npx nx run core:build",
|
35 |
| - "bundle:analyze": "npm run --silent bundle -- --config-name umd --profile --json > webpack-stats.json && webpack-bundle-analyzer webpack-stats.json dist --default-sizes gzip", |
| 53 | + "bundle:analyze": "npx nx run core:build-analyze", |
36 | 54 | "bundle:watch": "export WATCH=true; npx nx run core:build-watch",
|
37 | 55 | "bundle-dts": "npx nx run core:build-dts",
|
38 | 56 | "docs": "npx nx run core:docs",
|
|
53 | 71 | },
|
54 | 72 | "dependencies": {
|
55 | 73 | "@bigcommerce/bigpay-client": "^5.28.1",
|
56 |
| - "@bigcommerce/data-store": "^1.0.1", |
| 74 | + "@bigcommerce/data-store": "^1.0.3", |
57 | 75 | "@bigcommerce/form-poster": "^1.5.0",
|
58 | 76 | "@bigcommerce/memoize": "^1.0.0",
|
59 | 77 | "@bigcommerce/request-sender": "^1.2.4",
|
|
122 | 140 | "typedoc": "^0.22.0",
|
123 | 141 | "typedoc-plugin-markdown": "^3.11.0",
|
124 | 142 | "typescript": "^4.7.2",
|
125 |
| - "webpack": "^5.72.0", |
| 143 | + "webpack": "^5.101.3", |
126 | 144 | "webpack-assets-manifest": "^5.1.0",
|
127 | 145 | "webpack-bundle-analyzer": "^4.5.0",
|
128 | 146 | "webpack-cli": "^4.9.2",
|
|
0 commit comments