Which packages does it not install? Only the devdependecies or also some of dependencies?
PNPM Dependencies of Dependencies?
I thought it would be a great idea to refactor the dependencies of our client projects into the private npm package that I use to collect all the resources that all of our client projects use... (this way I don't have to manually update every project's package.json dependencies every time I update the core package). I'm starting to get super confused now though... Here's what I'm working with:
package.json file for my private @keddydigital/flighter npm package:
{
"name": "@keddydigital/flighter",
"version": "1.0.5",
"description": "The Flighter build stack.",
"repository": {
"type": "git",
"url": "https://git.jetbrains.space/keddy/flighter/core.git"
},
"publishConfig": {
"branch": "develop"
},
"scripts": {
...
},
"author": "Keddy Digital <[email protected]>",
"license": "ISC",
"dependencies": {
"@bugsnag/js": "^7.25.0",
"@bugsnag/plugin-vue": "^7.25.0",
"@flareapp/flare-client": "^3.0.5",
"@flareapp/flare-vue": "^3.0.5",
"@flareapp/vite-plugin-sourcemap-uploader": "^1.0.3",
"@gerhobbelt/markdown-it-modify-token": "1.0.2-2",
"@imgix/vue": "^3.1.1",
"@inertiajs/inertia": "^0.11.1",
"@inertiajs/server": "^0.1.0",
"@inertiajs/vue3": "^1.2.0",
"@opentelemetry/auto-instrumentations-node": "^0.47.1",
"@primevue/themes": "^4.0.5",
"@rushstack/eslint-patch": "^1.10.4",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.14",
"@tsconfig/node18": "^18.2.4",
"@types/jsdom": "^21.1.7",
"@typescript-eslint/parser": "^7.18.0",
"@vitejs/plugin-basic-ssl": "^1.1.0",
"@vitejs/plugin-vue": "^5.1.2",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"@vitest/coverage-istanbul": "^1.6.0",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/runtime-core": "^3.4.38",
"@vue/server-renderer": "^3.4.38",
"@vue/test-utils": "^2.4.6",
"alpinejs": "^3.14.1",
"autoprefixer": "^10.4.20",
"axios": "^1.7.4",
"bootstrap": "^5.3.3",
"browserslist": "^4.23.3",
"change-case": "^4.1.2",
"cloudflare-cli": "^4.2.0",
"cssnano": "^7.0.5",
"cypress": "^13.13.3",
"dotenv": "^16.4.5",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-cypress": "^3.5.0",
"eslint-plugin-vue": "^9.27.0",
"esm": "^3.2.25",
"espree": "^10.1.0",
"filepond": "^4.31.2",
"filepond-plugin-file-validate-type": "^1.2.9",
"filepond-plugin-image-crop": "^2.0.6",
"filepond-plugin-image-exif-orientation": "^1.0.11",
"filepond-plugin-image-preview": "^4.6.12",
"filepond-plugin-image-resize": "^2.0.10",
"filepond-plugin-image-transform": "^3.8.7",
"filepond-plugin-image-validate-size": "^1.2.7",
"from-env": "^1.1.4",
"fs-extra": "^11.2.0",
"git-describe": "^4.1.1",
"git-repo-info": "^2.1.1",
"globals": "^15.9.0",
"highlight.js": "github:highlightjs/highlight.js",
"jest": "^29.7.0",
"js-cookie": "^3.0.5",
"laravel-precognition": "^0.5.6",
"laravel-precognition-vue-inertia": "^0.5.6",
"laravel-vite-plugin": "^1.0.5",
"lodash": "^4.17.21",
"logrocket": "^8.1.2",
"lozad": "^1.16.0",
"markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.0.1",
"markdown-it-attrs": "^4.2.0",
"markdown-it-code-copy": "^0.1.2",
"markdown-it-container": "^4.0.0",
"markdown-it-highlightjs": "^4.1.0",
"markdown-it-sup": "^2.0.0",
"md5": "^2.3.0",
"moment": "^2.30.1",
"npm-run-all2": "^6.2.2",
"pinia": "^2.2.2",
"postcss": "^8.4.41",
"postcss-combine-media-query": "^1.0.1",
"primevue": "^4.0.5",
"rollbar": "^2.26.4",
"sass-loader": "^14.2.1",
"start-server-and-test": "^2.0.5",
"tailwindcss": "^3.4.10",
"ts-node": "^10.9.2",
"uid": "^2.0.2",
"unplugin-vue-components": "^0.27.4",
"vant": "^4.9.4",
"vite": "5.3.2",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-dynamic-import": "^1.5.0",
"vite-plugin-svgo": "^1.4.0",
"vite-tsconfig-paths": "^4.3.2",
"vue": "^3.4.38",
"vue-client-only": "^2.1.0",
"vue-filepond": "^7.0.4",
"vue-markdown-render": "github:KeddyDigital/vue-markdown-render",
"vue-moment": "^4.1.0",
"vue-tsx-support": "^3.2.0",
"vue3-carousel": "^0.3.3",
"vue3-markdown-it": "^1.0.10",
"vue3-popper": "^1.5.0",
"yn": "^5.0.0",
"ziggy-js": "^2.3.0"
},
"devDependencies": {
"@bugsnag/source-maps": "^2.3.3",
"@pinia/testing": "^0.1.5",
"@small-tech/vite-plugin-sri": "^1.0.1",
"@types/jest": "^29.5.12",
"@types/lozad": "^1.16.4",
"@types/markdown-it": "^14.1.2",
"@types/md5": "^2.3.5",
"@types/node": "^20.14.15",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vue/tsconfig": "^0.5.1",
"chokidar": "^3.6.0",
"eslint": "^8.57.0",
"jsdom": "^24.1.1",
"material-design-icons-iconfont": "^6.7.0",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"sass": "^1.77.8",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.5.4",
"vite-plugin-cjs-interop": "^2.1.2",
"vite-plugin-jspm": "^0.6.0",
"vite-plugin-manifest-sri": "^0.2.0",
"vite-svg-loader": "^5.1.0",
"vitepress": "1.2.3",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.29"
}
}
Within each project's package.json file I have:
"dependencies": {
"@keddydigital/flighter": "^1.0.5"
}
Why is pnpm not installing all of the dependencies of my @keddydigital/flighter package, and if possible, how do I get it to do just that? (Ideally, I'd love for it to install all the Flighter packages from dependencies, and also the devDependencies whenever pnpm would normally install those for the root project as well)
THANKS IN ADVANCE FOR YOUR HELP!
Solved this issue by setting: hoist-workspace-packages=true in my .npmrc file
Please or to participate in this conversation.