Skip to content

Commit

Permalink
fix: support also require (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Oct 16, 2023
1 parent d4f5701 commit e736afc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "unleash-proxy-client",
"version": "3.0.0",
"version": "3.1.0-beta.1",
"description": "A browser client that can be used together with the unleash-proxy.",
"type": "module",
"main": "./build/cjs/index.js",
"main": "./build/index.cjs",
"types": "./build/cjs/index.d.ts",
"browser": "./build/main.min.js",
"module": "./build/main.esm.js",
"exports": {
".": {
"import": "./build/main.esm.js",
"node": "./build/cjs/index.js",
"require": "./build/cjs/index.js",
"node": "./build/index.cjs",
"require": "./build/index.cjs",
"types": "./build/cjs/index.d.ts",
"default": "./build/main.min.js"
}
Expand All @@ -22,7 +22,7 @@
"src"
],
"scripts": {
"build": "rm -rf build && tsc && rollup -c rollup.config.mjs",
"build": "rm -rf build && rollup -c rollup.config.mjs",
"prepack": "yarn build",
"format": "prettier src --write --loglevel warn",
"lint": "prettier src --check && eslint src",
Expand Down
5 changes: 5 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export default {
file: './build/main.esm.js',
format: 'esm',
sourcemap: true,
},
{
file: './build/index.cjs',
format: 'cjs',
sourcemap: true,
}
],
plugins: [
Expand Down

0 comments on commit e736afc

Please sign in to comment.