jacobparis-insiders / sly

Monorepo for Sly CLI
https://sly-cli.fly.dev/
153 stars 11 forks source link

npm dependencies ask to install every time #30

Open jacobparis opened 7 months ago

jacobparis commented 7 months ago

A registry can provide a list of dependencies and devDependencies that will be installed from npm

export const libraryItemSchema = z.object({
  name: z.string(),
  dependencies: z.array(z.string()).optional().default([]),
  devDependencies: z.array(z.string()).optional().default([]),
  registryDependencies: z.array(z.string()).optional().default([]),
})

This is convenient for the first time you install something, but it will try to reinstall the dependency every time you add something, without checking to see if you already have it

image
jacobparis commented 7 months ago

If a user installs multiple components at a time, it will ask for the npm install once for each. Two solutions