{"library":"liferay-npm-bundler-plugin-inject-peer-dependencies","type":"library","category":null,"description":"This package, `liferay-npm-bundler-plugin-inject-peer-dependencies`, is a plugin for `liferay-npm-bundler` that automates the injection of peer and undeclared dependencies into `package.json` files. It specifically targets dependencies found within AMD `define()` calls in module files, provided they are installed in `node_modules`. This functionality is crucial for ensuring peer dependencies operate correctly within Liferay's OSGi-based npm architecture and can also resolve certain incorrect setups that might otherwise work in a standard Node.js environment. The plugin determines dependency versions using the standard Node.js resolution algorithm from the module's context. The current stable version is 2.32.2. As part of the broader `liferay-frontend-projects` monorepo, its release cadence is tied to Liferay's development cycles, with frequent updates across various tooling components. Its key differentiator is its specialized function within the Liferay ecosystem, addressing specific challenges of module loading and dependency resolution in that platform.","language":"javascript","status":"active","version":"2.32.2","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install liferay-npm-bundler-plugin-inject-peer-dependencies","imports":["/* In your .npmbundlerrc */\n{\n\t\"*\": {\n\t\t\"plugins\": [\"inject-peer-dependencies\"]\n\t}\n}","/* In your .npmbundlerrc */\n{\n\t\"*\": {\n\t\t\"plugins\": [\n\t\t\t[\n\t\t\t\t\"inject-peer-dependencies\",\n\t\t\t\t{\n\t\t\t\t\t\"defineCall\": \"Liferay.Loader.define\"\n\t\t\t\t}\n\t\t\t]\n\t\t]\n\t}\n}"]},{"cmd":"yarn add liferay-npm-bundler-plugin-inject-peer-dependencies","imports":[]},{"cmd":"pnpm add liferay-npm-bundler-plugin-inject-peer-dependencies","imports":[]}],"homepage":null,"github":"https://github.com/liferay/liferay-frontend-projects","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/liferay-npm-bundler-plugin-inject-peer-dependencies","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/liferay-npm-bundler-plugin-inject-peer-dependencies/compatibility"}}