{"name":"@gatsbyjs/parcel-namer-relative-to-cwd","version":"2.15.0-next.0","author":{"name":"Michal Piechowiak","email":"misiek.piechowiak@gmail.com"},"license":"MIT","_id":"@gatsbyjs/parcel-namer-relative-to-cwd@2.15.0-next.0","maintainers":[{"name":"serhalp-netlify","email":"philippe.serhal@netlify.com"},{"name":"seanroberts","email":"sean.roberts90@gmail.com"},{"name":"kathmbeck","email":"katherine.beck@netlify.com"},{"name":"pieh","email":"misiek.piechowiak@gmail.com"},{"name":"tylerbarnes","email":"tyler@known.design"},{"name":"daniellewgatsby","email":"daniel.lew@gatsbyjs.com"},{"name":"mlgualtieri-gatsby","email":"mike.gualtieri@netlify.com"},{"name":"gatsby_integrations","email":"integrations-collab-squad@gatsbyjs.com"}],"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-parcel-namer-relative-to-cwd#readme","bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dist":{"shasum":"b6f9d24bb095e76124fd1b5a5605997cc1e10998","tarball":"http://registry-npm.ywwl.com/@gatsbyjs/parcel-namer-relative-to-cwd/download/@gatsbyjs/parcel-namer-relative-to-cwd-2.15.0-next.0.tgz","fileCount":5,"integrity":"sha512-EtR7SZFmW3Pleay+tnIseXU58aaz/ifsHrpWVdtivMhVOrFtTxcEzql4NsDcDKQxI36/U0cigC6yjTnD2cSpPQ==","signatures":[{"sig":"MEYCIQCMVz0FDuLWeouiutPFR0OWvUygOqN/AO4ZBXiDt7Ok4wIhAJovTdFnjrcVzlZTEcJrHrPCv56ls1SZlsPicTWt+Fud","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16341,"size":4015,"noattachment":false,"key":"/@gatsbyjs/parcel-namer-relative-to-cwd/-/@gatsbyjs/parcel-namer-relative-to-cwd-2.15.0-next.0.tgz"},"main":"lib/index.js","engines":{"node":">=18.0.0","parcel":"2.x"},"gitHead":"17baffb1fb7333b8a45745b7d9a0bb4bb2f0f491","scripts":{"build":"babel src --out-dir lib/ --ignore \"**/__tests__\" --extensions \".ts\"","watch":"babel -w src --out-dir lib/ --ignore \"**/__tests__\" --extensions \".ts\"","prepare":"cross-env NODE_ENV=production npm run build"},"_npmUser":{"name":"serhalp-netlify","email":"philippe.serhal@netlify.com"},"repository":{"url":"git+https://github.com/gatsbyjs/gatsby.git","type":"git","directory":"packages/gatsby-parcel-namer-relative-to-cwd"},"_npmVersion":"lerna/3.22.1/node@v20.11.1+arm64 (darwin)","description":"Parcel namer that preserves directory structures to stabilize output and keep the hierarchy.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@babel/runtime":"^7.20.13","@parcel/plugin":"2.8.3","gatsby-core-utils":"^4.15.0-next.0","@parcel/namer-default":"2.8.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"cross-env":"^7.0.3","@babel/cli":"^7.20.7","@babel/core":"^7.20.12","babel-preset-gatsby-package":"^3.15.0-next.0"},"_npmOperationalInternal":{"tmp":"tmp/parcel-namer-relative-to-cwd_2.15.0-next.0_1731006032884_0.19582155389436617","host":"s3://npm-registry-packages"},"readme":"# `@gatsbyjs/parcel-namer-relative-to-cwd`\n\nThis [namer plugin](https://parceljs.org/plugin-system/namer/) is used by [Gatsby](https://www.gatsbyjs.com/) internally. You can reuse it inside your app if you want.\n\nIf you're just using Gatsby, you don't need to care about this package/plugin.\n\n## Usage\n\n```shell\nnpm install --save-dev @gatsbyjs/parcel-namer-relative-to-cwd\n```\n\nAnd inside your `.parcelrc`:\n\n```\n{\n  \"extends\": \"@parcel/config-default\",\n  \"namers\": [\"@gatsbyjs/parcel-namer-relative-to-cwd\", \"...\"]\n}\n```\n\n## Why & How\n\nBy default, Parcel is trying to find common/shared directories between entries and output paths that are impacted by it. See [this issue comment](https://github.com/parcel-bundler/parcel/issues/5476#issuecomment-769058504) for more information.\n\nWith these inputs files:\n\n```\na.html\nsub/b.html\n```\n\nYou get:\n\n- `parcel build a.html` => `dist/a.html`\n- `parcel build sub/b.html` => `dist/b.html`\n- `parcel build a.html sub/b.html` => `dist/a.html`, `dist/sub/b.html`\n\nYou can see that `sub/b.html` entry might result in either `dist/b.html` or `dist/sub/b.html` (depending wether `a.html` is entry or not). This makes builds not deterministic, which is very problematic where entries are \"optional\".\n\nThis namer plugin stabilizes the output, so inside `distDir` the hierarchy is the same as entry file in relation to current working directory (CWD):\n\n- `parcel build a.html` => `dist/a.html`\n- `parcel build sub/b.html` => `dist/sub/b.html`\n- `parcel build a.html sub/b.html` => `dist/a.html`, `dist/sub/b.html`\n","publish_time":1731006033161,"_cnpm_publish_time":1731006033161,"dist-tags":{"alpha-9689ff":"1.8.0-alpha-9689ff.25","alpha-mdx-v2":"1.3.0-alpha-mdx-v2.68","alpha-transformer-json":"2.0.0-alpha-transformer-json.20740","alpha-v5":"2.0.0-alpha-v5.d20221012t101120.57","drupal-proxyurl":"2.0.0-alpha-drupal-proxyurl.14","drupal-self-reference":"1.3.0-alpha-drupal-self-reference.18","latest":"2.16.0","latest-v4":"1.10.0","mdxv4-rc":"1.5.0-mdxv4-rc.124","next":"2.17.0-next.0","preview-gh-api":"1.8.0-alpha-preview-gh-api.26","wp-image-cdn-auth":"1.1.0-alpha-wp-image-cdn-auth.20253"}}