cockpit-project / cockpit-files

A Featureful File Browser for Cockpit (Modernized and tested version of https://github.com/45Drives/cockpit-navigator)
GNU Lesser General Public License v2.1
27 stars 23 forks source link

package.json: drop unused devDependency on deep-equal #600

Closed jelly closed 2 weeks ago

jelly commented 2 weeks ago

Nothing in Files uses this.

martinpitt commented 2 weeks ago

I suggest doing a cockpit lib bump first to include the migration to dequal, and then put that into dependencies. As a devDependency it's indeed wrong.

jelly commented 2 weeks ago

I suggest doing a cockpit lib bump first to include the migration to dequal, and then put that into dependencies. As a devDependency it's indeed wrong.

Hmm but it is not needed, the issue here is that we run tsc on pkg/lib in cockpit plugins. @allisonkarlitskaya mentioned this a few days ago in standup :)

test/static-code needs fixing imo.

jelly commented 2 weeks ago

I sent https://github.com/cockpit-project/cockpit/pull/20664 which partially fixes it, but as we import hooks.ts we still need to know about deep-equal sadly although we don't use anything which uses deep-equal.

[jelle@t14s][~/projects/cockpit-files]%./test/static-code
not ok 10 /static-code/test-typescript
# pkg/lib/hooks.ts(22,24): error TS7016: Could not find a declaration file for module 'deep-equal'. '/home/jelle/projects/cockpit-files/node_modules/deep-equal/index.js' implicitly has an 'any' type.
#   Try `npm i --save-dev @types/deep-equal` if it exists or add a new declaration (.d.ts) file containing `declare module 'deep-equal';`

This feels very annoying as it means yet another devDependency and yet more churn of keeping it updated.

allisonkarlitskaya commented 2 weeks ago

I think this is superseded by #603.