PageSourceSearch

https://pnpm.io/assets/js/d54c1483.fadf0c80.js

js pnpm.io collected 2026-09-24 07:22:23 UTC 2,350 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["10778"],{432(e,n,t){t.r(n),t.d(n,{metadata:()=>i,default:()=>d,frontMatter:()=>l,contentTitle:()=>s,toc:()=>c,assets:()=>p});var i=JSON.parse('{"id":"cli/import","title":"pnpm import","description":"pnpm import generates a pnpm-lock.yaml from another package manager\'s lockfile. Supported source files:","source":"@site/versioned_docs/version-11.x/cli/import.md","sourceDirName":"cli","slug":"/cli/import","permalink":"/11.x/cli/import","draft":false,"unlisted":false,"editUrl":"https://github.com/pnpm/pnpm.io/edit/main/versioned_docs/version-11.x/cli/import.md","tags":[],"version":"11.x","lastUpdatedBy":"Zoltan Kochan","lastUpdatedAt":1788556519000,"frontMatter":{"id":"import","title":"pnpm import"},"sidebar":"docs","previous":{"title":"pnpm unlink","permalink":"/11.x/cli/unlink"},"next":{"title":"pnpm rebuild","permalink":"/11.x/cli/rebuild"}}'),r=t(91987),o=t(67008);let l={id:"import",title:"pnpm import"},s,p={},c=[];function a(e){let n={a:"a",code:"code",li:"li",p:"p",ul:"ul",...(0,o.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"pnpm import"})," generates a ",(0,r.jsx)(n.code,{children:"pnpm-lock.yaml"})," from another package manager's lockfile. Supported source files:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"package-lock.json"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"npm-shrinkwrap.json"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"yarn.lock"})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["Note that if you have workspaces you wish to import dependencies for, they will need to be declared in a ",(0,r.jsx)(n.a,{href:"/11.x/settings",children:"pnpm-workspace.yaml"})," file beforehand."]})]})}function d(e={}){let{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(a,{...e})}):a(e)}},67008(e,n,t){t.d(n,{R:()=>l,x:()=>s});var i=t(71763);let r={},o=i.createContext(r);function l(e){let n=i.useContext(o);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:l(e.components),i.createElement(o.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.