@npmcli/template-oss 4.6.0 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ const run = ({ pkg, path, config: { requiredPackages = {} } }) => {
36
36
 
37
37
  return {
38
38
  title: `The following required ${location} were not found:`,
39
- body: specs.map((s) => s.rawSpec ? `${s.name}@${s.rawSpec}` : s.name),
39
+ body: specs.map((s) => s.rawSpec === '*' ? s.name : `${s.name}@${s.rawSpec}`),
40
40
  // solution is to remove any existing all at once but add back in by --save-<location>
41
41
  solution: [
42
42
  rmCommand(specs),
@@ -45,7 +45,7 @@ jobs:
45
45
  # This only sets the conventional commit prefix. This workflow can't reliably determine
46
46
  # what the breaking change is though. If a BREAKING CHANGE message is required then
47
47
  # this PR check will fail and the commit will be amended with stafftools
48
- if [[ "$\{{ steps.dependabot-metadata.outputs.update-type }}" == "version-update:semver-major" ]]; then
48
+ if [[ "$\{{ steps.metadata.outputs.update-type }}" == "version-update:semver-major" ]]; then
49
49
  prefix='feat!'
50
50
  else
51
51
  prefix='chore!'
@@ -69,7 +69,7 @@ jobs:
69
69
  # and attempt to commit and push again. This is helpful because we will have a commit
70
70
  # with the correct prefix that we can then --amend with @npmcli/stafftools later.
71
71
  - name: Push All Changes Except Workflows
72
- if: steps.apply.outputs.changes && steps.push-all.outcome == 'failure'
72
+ if: steps.apply.outputs.changes && steps.push.outcome == 'failure'
73
73
  env:
74
74
  GITHUB_TOKEN: $\{{ secrets.GITHUB_TOKEN }}
75
75
  run: |
@@ -20,10 +20,6 @@ const getSpecVersion = (spec, where) => {
20
20
  switch (arg.type) {
21
21
  case 'range':
22
22
  return new semver.Range(arg.fetchSpec)
23
- case 'tag': {
24
- // special case an empty spec to mean any version
25
- return arg.rawSpec === '' && new semver.Range('*')
26
- }
27
23
  case 'version':
28
24
  return new semver.SemVer(arg.fetchSpec)
29
25
  case 'directory': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/template-oss",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "description": "templated files used in npm CLI team oss projects",
5
5
  "main": "lib/content/index.js",
6
6
  "bin": {
@@ -46,7 +46,7 @@
46
46
  "just-deep-map-values": "^1.1.1",
47
47
  "just-diff": "^5.0.1",
48
48
  "lodash": "^4.17.21",
49
- "npm-package-arg": "^9.0.1",
49
+ "npm-package-arg": "^10.0.0",
50
50
  "proc-log": "^3.0.0",
51
51
  "release-please": "npm:@npmcli/release-please@^14.2.6",
52
52
  "semver": "^7.3.5",