You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -506,6 +506,7 @@ In this case we override the package with its local copy, which should have a `s
506
506
507
507
```yaml
508
508
workspace:
509
+
packageSet:
509
510
registry: 41.2.0
510
511
extraPackages:
511
512
aff:
@@ -538,6 +539,7 @@ In this case, we can just change the override to point to some commit of our for
538
539
539
540
```yaml
540
541
workspace:
542
+
packageSet:
541
543
registry: 41.2.0
542
544
extraPackages:
543
545
aff:
@@ -560,7 +562,8 @@ There are a few possible scenarios - the most straightforward is when a package
560
562
561
563
```
562
564
workspace:
563
-
registry: 41.2.0
565
+
packageSet:
566
+
registry: 41.2.0
564
567
extraPackages:
565
568
some-package-from-the-registry: 4.0.0
566
569
```
@@ -569,6 +572,7 @@ Another possibility is that the package is not in the registry (maybe it's your
569
572
570
573
```yaml
571
574
workspace:
575
+
packageSet:
572
576
registry: 41.2.0
573
577
extraPackages:
574
578
facebook:
@@ -584,6 +588,7 @@ The last possible case is the one picking up a local folder as a package (note:
584
588
585
589
```yaml
586
590
workspace:
591
+
packageSet:
587
592
registry: 41.2.0
588
593
extraPackages:
589
594
facebook:
@@ -831,6 +836,9 @@ The `--package` flag is also available for many more commands, such as `build`,
831
836
832
837
An important property of this "monorepo setup" is that the `output` folder will be shared between all the packages: they will share the same build package set (or build plan when using the solver) and they will be all build together.
833
838
839
+
> [!NOTE]\
840
+
> Remember that you can't have multiple modules with the same name in a single project. This usually happens with the `Main` module being defined multiple times. Rename these modules to something unique.
841
+
834
842
### Polyrepo support
835
843
836
844
There might be cases where you want to have multiple loosely-connected codebases in the same repository that do _not_ necessarily build together all the time. This is sometimes called [a "polyrepo"][monorepo-tools].
@@ -1617,9 +1625,9 @@ packages, you should run the appropriate package-manager for that (e.g. npm).
1617
1625
1618
1626
Spago dropped support for the --watch flag in `spago build` and `spago test`.
1619
1627
1620
-
VSCode users are recommended to use the [Purescript IDE](purescript-ide) extension for seamless experiences with automatic rebuilds.
1628
+
VSCode users are recommended to use the [Purescript IDE][ide-purescript] extension for seamless experiences with automatic rebuilds.
1621
1629
1622
-
Users of other editors, e.g. vim, emacs, etc., can make use of the underlying [LSP plugin](purescript-language-server).
1630
+
Users of other editors, e.g. vim, emacs, etc., can make use of the underlying [LSP plugin][purescript-language-server].
1623
1631
1624
1632
If you want a very simple drop in replacement for `spago test --watch`, you can use a general purpose tool such as [watchexec]:
1625
1633
@@ -1656,6 +1664,6 @@ and similarly for the `test` folder, using that for the test sources.
0 commit comments