{"name":"@gatsbyjs/parcel-namer-relative-to-cwd","version":"2.16.0","author":{"name":"Michal Piechowiak","email":"misiek.piechowiak@gmail.com"},"license":"MIT","_id":"@gatsbyjs/parcel-namer-relative-to-cwd@2.16.0","maintainers":[{"name":"pieh","email":"misiek.piechowiak@gmail.com"},{"name":"mlgualtieri-gatsby","email":"mike.gualtieri@netlify.com"},{"name":"gatsby_integrations","email":"integrations-collab-squad@gatsbyjs.com"},{"name":"kathmbeck","email":"katherine.beck@netlify.com"},{"name":"seanroberts","email":"sean.roberts90@gmail.com"},{"name":"serhalp-netlify","email":"philippe.serhal@netlify.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":"f84b5cd5d80079342febb954cf2219e02723ab52","tarball":"http://registry-npm.ywwl.com/@gatsbyjs/parcel-namer-relative-to-cwd/download/@gatsbyjs/parcel-namer-relative-to-cwd-2.16.0.tgz","fileCount":5,"integrity":"sha512-E05myRVDUgUXS41wWxBOc0wPub1WAty3M6bO2vGctToXO11Lw9tci9banlSQojBB12ExsmRqNW90FxtVNTbfQA==","signatures":[{"sig":"MEUCIQCLJ4u1Sugbbes2H8UmNdtENPD7/5V8kO1d7cn7YtL9hgIgLpw/K451qO3xDAdqNHVqHVYzeqFfQeAL8TMY1/Bftm8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16651,"size":4023,"noattachment":false,"key":"/@gatsbyjs/parcel-namer-relative-to-cwd/-/@gatsbyjs/parcel-namer-relative-to-cwd-2.16.0.tgz"},"main":"lib/index.js","engines":{"node":">=18.0.0 <26","parcel":"2.x"},"gitHead":"92d6c67dcf10b641adf5fcc81ebeec5f50b75e40","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@v22.19.0+arm64 (darwin)","description":"Parcel namer that preserves directory structures to stabilize output and keep the hierarchy.","directories":{},"_nodeVersion":"22.19.0","dependencies":{"@babel/runtime":"^7.20.13","@parcel/plugin":"2.8.3","gatsby-core-utils":"^4.16.0","@parcel/namer-default":"2.8.3"},"_hasShrinkwrap":false,"devDependencies":{"cross-env":"^7.0.3","@babel/cli":"^7.20.7","@babel/core":"^7.20.12","babel-preset-gatsby-package":"^3.16.0"},"_npmOperationalInternal":{"tmp":"tmp/parcel-namer-relative-to-cwd_2.16.0_1769459243097_0.3215017395692017","host":"s3://npm-registry-packages-npm-production"},"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":1769459243237,"_cnpm_publish_time":1769459243237,"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"}}