PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, October 16, 2022

[FIXED] What package versions are installed when running vite build?

 October 16, 2022     build-tools, vite, vue.js     No comments   

Issue

This is probably a pretty basic question, but I can't find an answer:

If I have a project with a dependency in package.json listed as foobar: ^3.2.1, what version of that dependency will be installed when I run vite build, assuming that the latest available version of the package is 3.4.5?


Solution

First thing first, vite build won't change anything to your dependencies. I won't install ones nor update them. It will only build your project (i.e. compile / transpile / minify / bundle etc.) using your source code and the code it imports (likely within the node_modules).

It will build locally, so using your local dependencies in the node_modules folder.


To check the current package version you have installed, you can run:

npm list --depth=0 | grep foobar

(The grep part is optional)

You can also open your package-lock.json or yarn.lock file and search for your package to know to what version your package has been fixed to.

To understand about the semantic version with npm, read this documentation: https://docs.npmjs.com/about-semantic-versioning



Answered By - Kapcash
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing