Skip to content

Commit

Permalink
Reduce bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Jul 17, 2023
1 parent dd9b759 commit dbd4779
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/next-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/amannn/next-intl"
},
"scripts": {
"build": "rm -rf dist && dts build --entry src/client.tsx --entry src/index.react-server.tsx --entry src/index.tsx --entry src/link.react-server.tsx --entry src/link.tsx --entry src/middleware.tsx --entry src/plugin.tsx --entry src/server.react-server.tsx --entry src/server.tsx --entry src/config.tsx",
"build": "dts build --entry src/index.tsx && dts build --entry src/client.tsx --entry src/index.react-server.tsx --entry src/link.react-server.tsx --entry src/link.tsx --entry src/middleware.tsx --entry src/plugin.tsx --entry src/server.react-server.tsx --entry src/server.tsx --entry src/config.tsx --noClean",
"test": "TZ=Europe/Berlin vitest",
"lint": "eslint src test && tsc --noEmit",
"prepublishOnly": "CI=true turbo test && turbo lint && turbo build && cp ../../README.md .",
Expand Down Expand Up @@ -104,12 +104,12 @@
},
"size-limit": [
{
"path": "dist/index.cjs.production.min.js",
"limit": "13.8 KB"
"path": "dist/next-intl.cjs.production.min.js",
"limit": "14.00 KB"
},
{
"path": "dist/index.cjs.development.js",
"limit": "13.8 KB"
"path": "dist/next-intl.cjs.development.js",
"limit": "14.20 KB"
}
],
"engines": {
Expand Down
10 changes: 5 additions & 5 deletions packages/use-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/amannn/next-intl/tree/main/packages/use-intl"
},
"scripts": {
"build": "rm -rf dist && dts build --entry src/index.tsx --entry src/core.tsx --entry src/react.tsx",
"build": "dts build --entry src/index.tsx && dts build --entry src/core.tsx --entry src/react.tsx --noClean",
"test": "TZ=Europe/Berlin vitest",
"lint": "eslint src test && tsc --noEmit",
"prepublishOnly": "CI=true turbo test && turbo lint && turbo build",
Expand Down Expand Up @@ -65,12 +65,12 @@
},
"size-limit": [
{
"path": "dist/index.cjs.production.min.js",
"limit": "10.3 kB"
"path": "dist/use-intl.cjs.production.min.js",
"limit": "10.30 kB"
},
{
"path": "dist/index.cjs.development.js",
"limit": "10.3 kB"
"path": "dist/use-intl.cjs.development.js",
"limit": "10.30 kB"
}
],
"engines": {
Expand Down

0 comments on commit dbd4779

Please sign in to comment.