Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

chore(dev): replace github dependency metalsmith-in-place #796

Merged
merged 3 commits into from
Oct 30, 2020

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Oct 30, 2020

  1. replace GitHub dependency with npm dependency
  2. use patch-package to make the small GitHub changes

Based on notification from Indiana Moreau (https://www.securityinnovation.com/)

I've checked and the exact npm version (1.4.4) seems to miss 'exposeConsolidate' which we use.
@Haroenv Haroenv force-pushed the chore/metalsmith-in-place branch from c6f639a to 81f885d Compare October 30, 2020 11:03
@@ -0,0 +1,24 @@
diff --git a/node_modules/metalsmith-in-place/lib/index.js b/node_modules/metalsmith-in-place/lib/index.js
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can test that this diff is correct by checking https://codeload.github.com/superwolff/metalsmith-in-place/tar.gz/7cb06e54142b8843f35178ceb5560946ae356049 which still exists today

I looked into updating to a newer version of metalsmith-in-place, but they added a bunch of dependencies that seemed hard to migrate towards

@Haroenv
Copy link
Contributor Author

Haroenv commented Oct 30, 2020

try this PR out by running yarn doc

Copy link
Contributor

@yannickcr yannickcr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix seems correct, but could you add a comment somewhere to explain why this patch is necessary ?

@Haroenv Haroenv merged commit 3eb8d39 into develop Oct 30, 2020
@Haroenv Haroenv deleted the chore/metalsmith-in-place branch October 30, 2020 12:03
Haroenv added a commit that referenced this pull request Nov 19, 2020
 * chore(dev): replace github dependency metalsmith-in-place (#796) 3eb8d39
 * feat(ts): fill in more of the types 34ae5cd
 * fix(ts): correct type for getNumericRefinements (#800) 0920d94
dhayab pushed a commit to algolia/instantsearch that referenced this pull request Jul 10, 2023
…goliasearch-helper-js#796)

* chore(dev): replace github dependency metalsmith-in-place

I've checked and the exact npm version (1.4.4) seems to miss 'exposeConsolidate' which we use.

* patch package for the small change in the github version

* add comment
dhayab pushed a commit to algolia/instantsearch that referenced this pull request Jul 10, 2023
 * chore(dev): replace github dependency metalsmith-in-place (algolia/algoliasearch-helper-js#796) algolia/algoliasearch-helper-js@b277cd6
 * feat(ts): fill in more of the types algolia/algoliasearch-helper-js@9a636ec
 * fix(ts): correct type for getNumericRefinements (algolia/algoliasearch-helper-js#800) algolia/algoliasearch-helper-js@44e16c8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants