Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrolloop",
"version": "0.5.0",
"version": "0.5.1",
"repository": {
"type": "git",
"url": "git+https://github.com/976520/scrolloop.git"
Expand All @@ -10,6 +10,7 @@
"workspaces": [
"packages/*"
],
"bundle": true,
"packageManager": "pnpm@10.20.0",
"main": "./packages/react/dist/index.cjs",
"module": "./packages/react/dist/index.mjs",
Expand Down Expand Up @@ -97,5 +98,9 @@
"vitepress": "^1.6.4",
"vitest": "^2.0.0",
"vue": "^3.5.26"
},
"dependencies": {
"@scrolloop/core": "workspace:*",
"@scrolloop/shared": "workspace:*"
}
Comment on lines +102 to 105
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since @scrolloop/core and @scrolloop/shared are configured to be bundled into the build output (as indicated by the noExternal setting in tsup.config.ts), they should be moved to devDependencies. Listing them in dependencies will cause them to be installed as separate runtime packages by consumers, which is redundant and increases the installation footprint unnecessarily when the code is already included in the bundle.

}
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
clean: true,
minify: true,
external: ["react", "react-dom"],
noExternal: ["@scrolloop/core", "@scrolloop/shared"],
outExtension({ format }) {
return {
js: format === "esm" ? ".mjs" : ".cjs",
Expand Down
Loading