@gatsbyjs/parcel-namer-relative-to-cwd
Parcel namer that preserve directory structure to stabilize output and keep the hierarchy.
Last updated 2 years ago by pieh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @gatsbyjs/parcel-namer-relative-to-cwd 
SYNC missed versions from official npm registry.

@gatsbyjs/parcel-namer-relative-to-cwd

Parcel by default is trying to find common/shared directory between entries and output paths are impacted by it. See https://github.com/parcel-bundler/parcel/issues/5476#issuecomment-769058504.

With these inputs files:

a.html
sub/b.html

You get:

  • parcel build a.html => dist/a.html
  • parcel build sub/b.html => dist/b.html
  • parcel build a.html sub/b.html => dist/a.html, dist/sub/b.html

We 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".

This namer plugin stabilize output, so inside distDir the hierarchy is the same as entry file in relation to current working directory (CWD):

  • parcel build a.html => dist/a.html
  • parcel build sub/b.html => dist/sub/b.html
  • parcel build a.html sub/b.html => dist/a.html, dist/sub/b.html

Current Tags

  • 1.8.0-alpha-9689ff.25                                ...           alpha-9689ff (2 years ago)
  • 1.3.0-alpha-mdx-v2.68                                ...           alpha-mdx-v2 (2 years ago)
  • 2.0.0-alpha-transformer-json.20740                                ...           alpha-transformer-json (2 years ago)
  • 2.0.0-alpha-v5.d20221012t101120.57                                ...           alpha-v5 (2 years ago)
  • 2.0.0-alpha-drupal-proxyurl.14                                ...           drupal-proxyurl (2 years ago)
  • 1.3.0-alpha-drupal-self-reference.18                                ...           drupal-self-reference (2 years ago)
  • 2.13.1                                ...           latest (10 months ago)
  • 1.10.0                                ...           latest-v4 (2 years ago)
  • 1.5.0-mdxv4-rc.124                                ...           mdxv4-rc (2 years ago)
  • 2.14.0-next.2                                ...           next (10 months ago)
  • 1.8.0-alpha-preview-gh-api.26                                ...           preview-gh-api (2 years ago)
  • 1.1.0-alpha-wp-image-cdn-auth.20253                                ...           wp-image-cdn-auth (2 years ago)

101 Versions

  • 2.13.1                                ...           10 months ago
  • 2.14.0-next.2                                ...           10 months ago
  • 2.14.0-next.1                                ...           10 months ago
  • 2.13.0                                ...           a year ago
  • 2.14.0-next.0                                ...           a year ago
  • 2.13.0-next.1                                ...           a year ago
  • 2.12.1                                ...           a year ago
  • 2.12.0                                ...           a year ago
  • 2.13.0-next.0                                ...           a year ago
  • 2.12.0-next.1                                ...           a year ago
  • 2.11.0                                ...           a year ago
  • 2.12.0-next.0                                ...           a year ago
  • 2.11.0-next.1                                ...           a year ago
  • 2.10.0                                ...           a year ago
  • 2.11.0-next.0                                ...           a year ago
  • 2.10.0-next.2                                ...           2 years ago
  • 2.10.0-next.1                                ...           2 years ago
  • 2.9.0                                ...           2 years ago
  • 2.10.0-next.0                                ...           2 years ago
  • 2.9.0-next.1                                ...           2 years ago
  • 2.8.0                                ...           2 years ago
  • 2.9.0-next.0                                ...           2 years ago
  • 2.7.0                                ...           2 years ago
  • 2.8.0-next.0                                ...           2 years ago
  • 2.6.0                                ...           2 years ago
  • 2.7.0-next.0                                ...           2 years ago
  • 2.5.0                                ...           2 years ago
  • 2.6.0-next.0                                ...           2 years ago
  • 2.5.0-next.1                                ...           2 years ago
  • 2.4.0                                ...           2 years ago
  • 2.5.0-next.0                                ...           2 years ago
  • 2.4.0-next.2                                ...           2 years ago
  • 2.3.1                                ...           2 years ago
  • 2.4.0-next.1                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.4.0-next.0                                ...           2 years ago
  • 1.10.0                                ...           2 years ago
  • 2.3.0-next.2                                ...           2 years ago
  • 2.3.0-next.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.3.0-next.0                                ...           2 years ago
  • 2.0.0-alpha-drupal-proxyurl.14                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.2.0-next.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 2.1.0-next.0                                ...           2 years ago
  • 2.0.0-next.2                                ...           2 years ago
  • 2.0.0-next.1                                ...           2 years ago
  • 2.0.0-alpha-transformer-json.20740                                ...           2 years ago
  • 2.0.0-next.0                                ...           2 years ago
  • 2.0.0-alpha-v5.d20221012t101120.57                                ...           2 years ago
  • 2.0.0-alpha-v5.d20221010t183635.51                                ...           2 years ago
  • 2.0.0-alpha-v5.d20221007t081809.41                                ...           2 years ago
  • 2.0.0-alpha-v5.d20221005t111511.35                                ...           2 years ago
  • 2.0.0-alpha-v5.16                                ...           2 years ago
  • 1.9.0                                ...           2 years ago
  • 1.10.0-next.0                                ...           2 years ago
  • 1.9.0-next.1                                ...           2 years ago
  • 2.0.0-alpha-v5.26                                ...           2 years ago
  • 1.8.0                                ...           2 years ago
  • 1.8.0-alpha-preview-gh-api.26                                ...           2 years ago
  • 1.9.0-next.0                                ...           2 years ago
  • 1.8.0-alpha-v5.26                                ...           2 years ago
  • 1.8.0-alpha-9689ff.25                                ...           2 years ago
  • 2.0.0-alpha-v5.25                                ...           2 years ago
  • 2.0.0-alpha-v5.24                                ...           2 years ago
  • 1.7.0                                ...           2 years ago
  • 1.8.0-next.0                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.7.0-next.0                                ...           2 years ago
  • 1.6.0-next.2                                ...           2 years ago
  • 1.6.0-next.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.6.0-next.0                                ...           2 years ago
  • 1.5.0-mdxv4-rc.124                                ...           2 years ago
  • 1.5.0-mdxv4-rc.109                                ...           2 years ago
  • 1.3.0-mdxv4-rc.76                                ...           2 years ago
  • 1.3.0-alpha-drupal-self-reference.18                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.5.0-next.0                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0-mdxv4-rc.68                                ...           2 years ago
  • 1.4.0-next.2                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.4.0-next.1                                ...           2 years ago
  • 1.4.0-next.0                                ...           2 years ago
  • 1.3.0-alpha-mdx-v2.68                                ...           2 years ago
  • 1.3.0-alpha-mdx-v2.66                                ...           2 years ago
  • 1.3.0-next.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.3.0-next.0                                ...           2 years ago
  • 1.2.0-next.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.2.0-next.0                                ...           2 years ago
  • 1.1.0-next.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.1.0-alpha-wp-image-cdn-auth.20253                                ...           2 years ago
  • 1.1.0-next.0                                ...           2 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE