Skip to content

fix(release): source test vector values from one file so npm 12 can run scripts#1683

Merged
lucasmcdonald3 merged 4 commits into
masterfrom
fix-master-npm12-config
Jul 22, 2026
Merged

fix(release): source test vector values from one file so npm 12 can run scripts#1683
lucasmcdonald3 merged 4 commits into
masterfrom
fix-master-npm12-config

Conversation

@lucasmcdonald3

@lucasmcdonald3 lucasmcdonald3 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

npm 12 removed support for the config block (for some reason). Put them into a shell file, then use them in CI targets.

These variables are used in CI targets for this PR so this PR validates these work.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

npm 12 rejects the package.json 'config' keys as unknown config, breaking
every 'npm run'. Inline the four values into the scripts and drop the block.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the root package.json npm scripts to avoid relying on package.json’s config block and $npm_package_config_* expansion, which breaks under npm 12 (EUNKNOWNCONFIG) and causes npm run build to fail in publishing workflows.

Changes:

  • Inlines four previously-configured integration constants (test vector zip path, encrypt manifest URL, key manifest URL, decrypt oracle URL) directly into the scripts that consume them.
  • Removes the config block from package.json to prevent npm 12 from erroring on unknown config keys.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Replace the inlined values with a single util/integration-test-vectors.sh
that the integration-* and verdaccio-* scripts source.
@lucasmcdonald3 lucasmcdonald3 changed the title fix(release): inline integration config so npm 12 can run scripts fix(release): source test vector values from one file so npm 12 can run scripts Jul 22, 2026
Lucas McDonald added 2 commits July 22, 2026 15:27
Chain with && so a failed build stops the script, and quote the variable
expansions so paths with spaces work.
@lucasmcdonald3
lucasmcdonald3 merged commit a05aa80 into master Jul 22, 2026
24 checks passed
@lucasmcdonald3
lucasmcdonald3 deleted the fix-master-npm12-config branch July 22, 2026 22:58
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