Skip to content

Commit

Permalink
Merge pull request #1715 from stripe/anniel-merge-master
Browse files Browse the repository at this point in the history
Merge master into beta branch
  • Loading branch information
richardm-stripe committed Mar 17, 2023
2 parents a7895da + adbe777 commit 98c07d4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions cjs/package.json

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

1 change: 1 addition & 0 deletions esm/package.json

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

19 changes: 14 additions & 5 deletions package.json
Expand Up @@ -60,8 +60,8 @@
"license": "MIT",
"scripts": {
"build": "yarn build-esm && yarn build-cjs",
"build-esm": "mkdir -p esm && tsc -p tsconfig.esm.json",
"build-cjs": "mkdir -p cjs && tsc -p tsconfig.json",
"build-esm": "mkdir -p esm && tsc -p tsconfig.esm.json && echo '{\"type\":\"module\"}' > esm/package.json",
"build-cjs": "mkdir -p cjs && tsc -p tsconfig.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json",
"clean": "rm -rf ./.nyc_output ./node_modules/.cache ./coverage ./esm ./cjs",
"prepack": "yarn install && yarn build",
"mocha": "nyc mocha",
Expand All @@ -75,8 +75,17 @@
},
"exports": {
"types": "./types/index.d.ts",
"browser": "./cjs/stripe.cjs.worker.js",
"worker": "./cjs/stripe.cjs.worker.js",
"default": "./cjs/stripe.cjs.node.js"
"browser": {
"import": "./esm/stripe.esm.worker.js",
"require": "./cjs/stripe.cjs.worker.js"
},
"worker": {
"import": "./esm/stripe.esm.worker.js",
"require": "./cjs/stripe.cjs.worker.js"
},
"default": {
"import": "./esm/stripe.esm.node.js",
"require": "./cjs/stripe.cjs.node.js"
}
}
}

0 comments on commit 98c07d4

Please sign in to comment.