Skip to content

Commit

Permalink
chore: inline rolldown package dependencies (rolldown#1527)
Browse files Browse the repository at this point in the history
yyx990803 authored Jul 5, 2024
1 parent f0de5f8 commit 5da6f32
Showing 3 changed files with 23 additions and 25 deletions.
10 changes: 5 additions & 5 deletions packages/rolldown/package.json
Original file line number Diff line number Diff line change
@@ -92,17 +92,17 @@
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\n"
},
"dependencies": {
"citty": "^0.1.6",
"colorette": "^2.0.20",
"consola": "^3.2.3",
"locate-character": "^3.0.0",
"mri": "^1.2.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@napi-rs/cli": "^3.0.0-alpha.55",
"@napi-rs/wasm-runtime": "^0.2.4",
"@rolldown/testing": "workspace:*",
"citty": "^0.1.6",
"colorette": "^2.0.20",
"consola": "^3.2.3",
"locate-character": "^3.0.0",
"mri": "^1.2.0",
"emnapi": "^1.2.0",
"execa": "^9.2.0",
"fs-extra": "^11.2.0",
8 changes: 3 additions & 5 deletions packages/rolldown/rolldown.config.mjs
Original file line number Diff line number Diff line change
@@ -21,11 +21,9 @@ const shared = defineConfig({
/rolldown-binding\..*\.wasm/,
/@rolldown\/binding-.*/,
/\.\/rolldown-binding\.wasi\.cjs/,
...Object.keys(pkgJson.dependencies).filter(
(dep) =>
// `locate-character` only exports esm. to support emitting rolldown of cjs version, we have to inline it.
dep !== 'locate-character',
),
// some dependencies, e.g. zod, cannot be inlined because their types
// are used in public APIs
...Object.keys(pkgJson.dependencies),
],
})

30 changes: 15 additions & 15 deletions pnpm-lock.yaml

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

0 comments on commit 5da6f32

Please sign in to comment.