Skip to content

chore: add additional meta data to package.json#48

Merged
rmi22186 merged 2 commits into
feat/add-rokt-kitfrom
ci/no-jira-update-packagejson
Dec 19, 2025
Merged

chore: add additional meta data to package.json#48
rmi22186 merged 2 commits into
feat/add-rokt-kitfrom
ci/no-jira-update-packagejson

Conversation

@rmi22186

Copy link
Copy Markdown
Member

Background

Adding a publishConfig option to package.json to future proof our npm publish releases in case we ever scope the package, which is currently called cordova-plugin-mparticle to @mparticle/cordova-plugin or similar. The original cordova plugin was published to npm prior to scoping of packages existing and we had just kept it this way.

What Has Changed

  • update package.json

Screenshots/Video

  • {Include any screenshots or video demonstrating the new feature or fix, if applicable}

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Additional Notes

  • {Any additional information or context relevant to this PR}

Reference Issue (For employees only. Ignore if you are an outside contributor)

Comment thread plugin/package.json
Comment thread plugin/package.json Outdated
@@ -5,6 +5,9 @@
"homepage": "https://www.mparticle.com",
"repository": "mParticle/cordova-plugin-mparticle",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this enough?
Don't we need the full repo url like

"repository": {
    "type": "git",
    "url": "https://github.com/mParticle/cordova-plugin-mparticle"
  }

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good call - I forgot we ran into this error when releasing the react native rokt sdk previously.

Comment thread plugin/package.json Outdated
"repository": "mParticle/cordova-plugin-mparticle",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need?

"provenance": true,
"registry": "https://registry.npmjs.org"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good question - I actually originally had this since its what we had put for a few other repos. I was re-reviewing the docs and it states:

When you publish using trusted publishing, npm automatically generates and publishes [provenance attestations](https://docs.npmjs.com/generating-provenance-statements) for your package. This happens by default—you don't need to add the --provenance flag to your publish command.

And we technically don't need the registry because its in the workflow. However, I agree that it doesn't hurt to have both of these in package.json so I'ill include, as it'll be consistent w workflows we know definitely work

@rmi22186

Copy link
Copy Markdown
Member Author

@thomson-t updated, please have another look

@rmi22186 rmi22186 merged commit 7414125 into feat/add-rokt-kit Dec 19, 2025
10 of 11 checks passed
@rmi22186 rmi22186 deleted the ci/no-jira-update-packagejson branch December 19, 2025 18:14
jamesnrokt added a commit that referenced this pull request Jan 13, 2026
* feat: Add Rokt Kit package

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Remove check for VERSION file changes

Co-authored-by: Thomson Thomas <125323226+thomson-t@users.noreply.github.com>

* Separate functions for easier testing

* Add token to PR creation

Co-authored-by: Robert Ing <ring@mparticle.com>

* Change contents permission

* Add symlink for README in plugin

* Add track conversion button to match Ads docs

* Namespace Rokt functionality

* Add prepublish step

* chore: add additional meta data to package.json (#48)

* Apply suggestions from code review

Co-authored-by: Robert Ing <ring@mparticle.com>

* Update code format

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Thomson Thomas <125323226+thomson-t@users.noreply.github.com>
Co-authored-by: Robert Ing <ring@mparticle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants