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
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ scaleway-lib is a set of NPM packages used at Scaleway.
14
14
-[Available packages](#available-packages)
15
15
-[Development](#development)
16
16
-[Locally](#locally)
17
-
-[Link against another project (with `yalc`) => FAVORED](#link-against-another-project-with-yalc-favored)
17
+
-[Link against another project (with `yalc`) => FAVORED](#link-against-another-project-with-yalc--favored)
18
18
-[Link against another project (with `yarn link`)](#link-against-another-project-with-yarn-link)
19
19
-[Linting](#linting)
20
20
-[Unit Test](#unit-test)
@@ -100,17 +100,19 @@ $ yarn global add yalc # Make sure to have the yalc binary
100
100
```
101
101
102
102
```bash
103
-
$ yarn run build # Build the package
104
-
$ cd packages/example_package&& yalc publish
103
+
$ cd scaleway-lib/packages/example_package
104
+
$ yarn build&& yalc publish
105
105
$ # Now it's ready to install in your project
106
-
$ cd ../project-something
106
+
$ cd ../../../project-something
107
107
$ yalc add @scaleway/package-name --yarn
108
+
$ cd ../scaleway-lib/packages/example_package
108
109
$ # If you do some changes into your package
109
-
$ yarn run build
110
-
$ cd packages/example_package && yalc publish --push # --push will automatically update the package on projects where it have been added
110
+
$ yarn build && yalc publish --push --sig # --push will automatically update the package on projects where it have been added, --sig updates the signature hash to trigger webpack update
111
111
```
112
112
113
-
> :warning:`yalc` create a `yalc.lock` and updates the `package.json` in the target project. Make sure to not commit these changes
113
+
> :warning: since [1.0.0.pre.51 (2021-04-23)](https://github.com/wclr/yalc/blob/master/CHANGELOG.md#100pre51-2021-04-23), `yalc publish` needs the `--sig` option to trigger webpack module actual update.
114
+
115
+
> :warning:`yalc` create a `yalc.lock` and updates the `package.json` in the target project. **Make sure to not commit these changes**
114
116
115
117
### Link against another project (with `yarn link`)
0 commit comments