Overview

I had the opportunity to publish a customized Mirador 4 as an npm package, so this is a memo of the process.

Fork

Fork the repository from the following official site.

https://github.com/projectmirador/mirador

The result looks like this:

Create a Branch

Clone and create a branch.

gcgidittmciclrhoaendceokrohutttp-sb:/f/egaittuhrueb-.acdodm-/inmamkeadmiuartae1l9y6-/pmriorpaedrotry

The following output appears:

Switchedtoanewbranch'feature-add-immediately-property'

Development

Make modifications as introduced in the following article.

Test

Test to confirm there are no issues.

pnpmtest

Commit

ggiittacdodmm.it-a-m"feat:addimmediatelyproperty"

Merge

Switch back to the master branch and merge the contents of feature-add-immediately-property.

ggiittcmheercgkeoufteamtausrtee-radd-immediately-property

Push

Push the changes on the master branch.

gitpush

Publish

Use the following command to temporarily ignore local changes. (There may be a better approach…)

gitupdate-index-assume-unchangedpackage.json

Change the package name to a different name.

{""""""]"nvdmmf,saeeaoi"imrsidlddescnueie"ir"lssE:oi:e"tfnp":"f""t":e@:id[cnoi"ta"nsdsk4"ti"a.:/s:m0ctu."j/fr0Aseaa-n/sl1as/s9lorse6ppcr,/he/cmani/i.-nir3sdna"oedd,uxeor.xrcj."esj,,"s,"w,eb-based'multi-up'viewerthatsupportszoom-pan-rotatefunctionality,abilitytodisplay/comparesimpleimages,andimageswithannotations.",

Publish.

pnpmpublish

As a result, it is published as follows:

P+re@snsakEaNmTuErRa1t9o6/ompiernadionr@t4h.e0.b0r-oawlspehra...3.

https://www.npmjs.com/package/@nakamura196/mirador

Summary

Regarding pull requests for the changes, I plan to do this separately after investigating the impact of the modifications made this time.

Some steps included here may not be ideal, but we hope this serves as a useful reference.