Select to view content in your preferred language

@arcgis/create - package-lock.json in .gitignore

330
2
Jump to solution
03-16-2026 05:50 AM
NicolasGIS
Honored Contributor

Hello,

Just tested @arcgis/create: thanks JS team, great initiative !

I was surprised though to find out that `package-lock.json` is in .gitignore by default.

According to npm, this file is meant to be commited:

https://docs.npmjs.com/cli/v11/configuring-npm/package-lock-json

```

This file is intended to be committed into source repositories, and serves various purposes

```

Obviously, you did it on purpose for a reason and I would curious to know why.

 

Thanks

 

1 Solution

Accepted Solutions
OmarKawach
Esri Contributor

Nice catch!

We developed the application templates part of the `@arcgis/create` CLI to be package manager-agnostic, which is why lock files are not included by us. Another reason is that Dependabot is enabled by default in https://github.com/Esri/jsapi-resources, and adding `package-lock.json` to `.gitignore` reduces noise. We still monitor things elsewhere outside the repository.

However, we can see how this would be an inconvenience. 

We'll update the `.gitignore` files now and report back once complete.

Thanks,

- Omar Kawach

UPDATE: https://github.com/Esri/jsapi-resources/commit/47dbd4d551581ad3bf5d122d04c02fa8f1f3437d

 

View solution in original post

2 Replies
OmarKawach
Esri Contributor

Nice catch!

We developed the application templates part of the `@arcgis/create` CLI to be package manager-agnostic, which is why lock files are not included by us. Another reason is that Dependabot is enabled by default in https://github.com/Esri/jsapi-resources, and adding `package-lock.json` to `.gitignore` reduces noise. We still monitor things elsewhere outside the repository.

However, we can see how this would be an inconvenience. 

We'll update the `.gitignore` files now and report back once complete.

Thanks,

- Omar Kawach

UPDATE: https://github.com/Esri/jsapi-resources/commit/47dbd4d551581ad3bf5d122d04c02fa8f1f3437d

 

NicolasGIS
Honored Contributor

Thanks for your quick reply and fix @OmarKawach !

0 Kudos