-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathsyncpack.config.js
More file actions
39 lines (38 loc) · 1.48 KB
/
syncpack.config.js
File metadata and controls
39 lines (38 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// @ts-check
// https://jamiemason.github.io/syncpack/
/** @type {import('syncpack').RcFile} */
const config = {
dependencyTypes: ["dev", "prod"],
versionGroups: [
{
label: "lage deps use workspace protocol",
dependencies: ["@lage-run/**"],
packages: ["**"],
specifierTypes: ["workspace-protocol"],
},
],
semverGroups: [
{
// See below for explanation (this must come first in order)
label: "non-pinned dependencies",
range: "^",
dependencyTypes: ["prod"],
// glob-hasher is a runtime dependency of lage since it publishes binaries.
dependencies: ["glob-hasher"],
},
{
// lage bundles its dependencies, so any updates should to dependencies should be explicit
// so that they trigger a new lage version (with proper documentation of included updates).
// The standard approach of using ^ dependencies and allowing implicit updates via the lock file
// (which with a published bundle, are guaranteed to affect consumers) makes it very hard to
// track when an issue was introduced if it's discovered in another repo, so we pin deps locally.
// But since pinned deps are not great for anyone consuming the sub-packages directly, the
// beachball config includes a prepublish hook to unpin them.
label: "pin dependencies",
range: "",
dependencyTypes: ["prod"],
packages: ["!@lage-run/docs", "!@lage-run/monorepo-scripts"],
},
],
};
module.exports = config;