{"name":"@gatsbyjs/parcel-namer-relative-to-cwd","version":"2.14.0","author":{"name":"Michal Piechowiak","email":"misiek.piechowiak@gmail.com"},"license":"MIT","_id":"@gatsbyjs/parcel-namer-relative-to-cwd@2.14.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":"46556c54c7c958528c1fdf9bda2a3d96886bdd2c","tarball":"http://registry-npm.ywwl.com/@gatsbyjs/parcel-namer-relative-to-cwd/download/@gatsbyjs/parcel-namer-relative-to-cwd-2.14.0.tgz","fileCount":5,"integrity":"sha512-BWIIsz4oPLIUVAWr4Lgw4BGtJjjhb39+oTrXUa6rN0A+vS5qXrpkx1nGzVb5PJ2RJY9Paf4hNLZVW9LaLnGLBA==","signatures":[{"sig":"MEUCIDCWWEz4rWvYLaWiHt42eDnFRcg+fPc0Kjeg9ZSk61zbAiEAoxTjueVQs5G+/Y5GrZwOcv3c9bKPqzMB+tZxdV1Ap6A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15993,"size":3992,"noattachment":false,"key":"/@gatsbyjs/parcel-namer-relative-to-cwd/-/@gatsbyjs/parcel-namer-relative-to-cwd-2.14.0.tgz"},"main":"lib/index.js","engines":{"node":">=18.0.0","parcel":"2.x"},"gitHead":"5397fbf5554ec3d937cc5a9042f2141b698d9eab","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.14.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.14.0"},"_npmOperationalInternal":{"tmp":"tmp/parcel-namer-relative-to-cwd_2.14.0_1730923222846_0.39983280270556887","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":1730923223169,"_cnpm_publish_time":1730923223169,"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"}}