jest-canvas-mock icon indicating copy to clipboard operation
jest-canvas-mock copied to clipboard

feat: disable `package-lock.json`

Open LitoMore opened this issue 3 years ago • 4 comments

Since we ignored package-lock.json in .gitignore. Then we should turn off the lock file in .npmrc as well.

LitoMore avatar Apr 29 '22 15:04 LitoMore

maybe ignored by https://github.com/hustcc/jest-canvas-mock/blob/0a188324e3895d2b8cc87dcf332840ff7ec4f14f/package.json#L68-L72

hustcc avatar May 06 '22 08:05 hustcc

But it will be generated locally. We should disable it.

LitoMore avatar May 06 '22 08:05 LitoMore

The repo do not care the local development env.

hustcc avatar May 06 '22 08:05 hustcc

You should. For example the CI problem of #91, you won't notice the CI problem on your local. That's because you have a lockfile locally, which is inconsistent with the CI environment.

LitoMore avatar May 07 '22 03:05 LitoMore

loca

hustcc avatar Oct 21 '22 15:10 hustcc