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
+46-23
Original file line number
Diff line number
Diff line change
@@ -61,41 +61,46 @@ files.
61
61
62
62
### Heroku
63
63
64
-
For `patch-package` to work on Heroku applications, you must specify [`NPM_CONFIG_PRODUCTION=false` or `YARN_PRODUCTION=false`](https://devcenter.heroku.com/articles/nodejs-support#package-installation). See [this issue](https://github.com/ds300/patch-package/issues/130) for more details.
64
+
For `patch-package` to work on Heroku applications, you must specify
65
+
[`NPM_CONFIG_PRODUCTION=false` or `YARN_PRODUCTION=false`](https://devcenter.heroku.com/articles/nodejs-support#package-installation).
66
+
See [this issue](https://github.com/ds300/patch-package/issues/130) for more
67
+
details.
65
68
66
69
### Docker and CI
67
70
68
71
- If having errors about working directory ("cannot run in wd [...]") when
69
72
building in Docker, you might need to adjust configuration in `.npmrc`. See
- In your `Dockerfile`, remember to copy over the patch files *before* running
74
+
- In your `Dockerfile`, remember to copy over the patch files _before_ running
72
75
`[npm|yarn] install`
73
76
- If you cache `node_modules` rather than running `yarn install` every time,
74
77
make sure that the `patches` dir is included in your cache key somehow.
75
78
Otherwise if you update a patch then the change may not be reflected on
76
79
subsequent CI runs.
80
+
77
81
78
-
#### CircleCI example
79
-
Create a hash of your patches before loading/saving your cache. If using a Linux machine, run `md5sum patches/* > patches.hash`. If running on a macOS machine, use `md5 patches/* > patches.hash`
80
-
```yaml
81
-
- run:
82
-
name: patch-package hash
83
-
command: md5sum patches/* > patches.hash
84
-
```
85
-
86
-
Then, update your hash key to include a checksum of that file:
Create a hash of your patches before loading/saving your cache. If using a Linux machine, run `md5sum patches/* > patches.hash`. If running on a macOS machine, use `md5 patches/* > patches.hash`
84
+
```yaml
85
+
- run:
86
+
name: patch-package hash
87
+
command: md5sum patches/* > patches.hash
88
+
```
89
+
90
+
Then, update your hash key to include a checksum of that file:
0 commit comments