@npmcli/template-oss 4.24.2 → 4.24.4

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.
package/lib/config.js CHANGED
@@ -160,8 +160,8 @@ const getFullConfig = async ({
160
160
  pkgPath,
161
161
  pkgDir: posixDir(pkgPath),
162
162
  pkgGlob: posixGlob(pkgPath),
163
- pkgFlags: isWorkspace ? `-w ${pkg.pkgJson.name}` : '',
164
- allFlags: isMono ? '-ws -iwr --if-present' : '',
163
+ pkgFlags: isWorkspace ? `--workspace ${pkg.pkgJson.name}` : '',
164
+ allFlags: isMono ? '--workspaces --include-workspace-root --if-present' : '',
165
165
  workspacePaths,
166
166
  workspaceGlobs: workspacePaths.map(posixGlob),
167
167
  // type
@@ -157,6 +157,7 @@ module.exports = {
157
157
  allowDistPaths: true,
158
158
  allowPaths: [
159
159
  '/.eslintrc.local.*',
160
+ '/.eslint.config.js',
160
161
  '**/.gitignore',
161
162
  '/docs/',
162
163
  '/tap-snapshots/',
@@ -31,7 +31,7 @@ jobs:
31
31
  else
32
32
  # strip leading slash from directory so it works as a
33
33
  # a path to the workspace flag
34
- echo "workspace=-w ${dependabot_dir#/}" >> $GITHUB_OUTPUT
34
+ echo "workspace=--workspace ${dependabot_dir#/}" >> $GITHUB_OUTPUT
35
35
  fi
36
36
 
37
37
  - name: Apply Changes
@@ -17,11 +17,13 @@ on:
17
17
  secrets:
18
18
  PUBLISH_TOKEN:
19
19
  required: true
20
- {{/if}}
20
+ {{/if}}
21
21
 
22
22
  permissions:
23
23
  contents: read
24
+ {{#if publish}}
24
25
  id-token: write
26
+ {{/if}}
25
27
 
26
28
  jobs:
27
29
  publish:
@@ -68,7 +68,7 @@ class ReleaseManager {
68
68
  .replace(/<X\.Y\.Z>/g, release.version)
69
69
  .replace(/<GITHUB-RELEASE-LINK>/g, release.url)
70
70
  .replace(/<PUBLISH-FLAGS>/g, release.flags)
71
- .replace(/^(\s*\S.*)(-w <WS-PKG-N>)$/gm, workspaces.map(w => `$1${w.flags}`).join('\n'))
71
+ .replace(/^(\s*\S.*)(--workspace <WS-PKG-N>)$/gm, workspaces.map(w => `$1${w.flags}`).join('\n'))
72
72
  .trim()
73
73
 
74
74
  return `### Release Checklist for ${release.tag}\n\n${checklist}`
@@ -150,7 +150,9 @@ class ReleaseManager {
150
150
  version: rawVersion,
151
151
  major: version.major,
152
152
  url: `https://github.com/${pullRequest.base.repo.full_name}/releases/tag/${tag}`,
153
- flags: [workspaces[name] ? `-w ${workspaces[name]}` : null, `--tag=${publishTag}`].filter(Boolean).join(' '),
153
+ flags: [workspaces[name] ? `--workspace ${workspaces[name]}` : null, `--tag=${publishTag}`]
154
+ .filter(Boolean)
155
+ .join(' '),
154
156
  }
155
157
  }
156
158
 
@@ -221,7 +223,7 @@ class ReleaseManager {
221
223
  1. Publish workspaces
222
224
 
223
225
  ${block('sh')}
224
- npm publish -w <WS-PKG-N>
226
+ npm publish --workspace <WS-PKG-N>
225
227
  ${block()}
226
228
 
227
229
  1. Publish
@@ -261,7 +263,7 @@ class ReleaseManager {
261
263
  Release Please will run on the just pushed release commit and create GitHub releases and tags for each package.
262
264
 
263
265
  ${block('sh')}
264
- gh run watch ${R} $(gh run list ${R} -w release -b <BASE-BRANCH> -L 1 --json databaseId -q ".[0].databaseId")
266
+ gh run watch ${R} $(gh run list ${R} --workspace release -b <BASE-BRANCH> -L 1 --json databaseId -q ".[0].databaseId")
265
267
  ${block()}
266
268
  `
267
269
  /* eslint-enable max-len */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/template-oss",
3
- "version": "4.24.2",
3
+ "version": "4.24.4",
4
4
  "description": "templated files used in npm CLI team oss projects",
5
5
  "main": "lib/content/index.js",
6
6
  "bin": {
@@ -20,8 +20,8 @@
20
20
  "postinstall": "template-oss-apply",
21
21
  "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
22
22
  "prettier": "prettier \"**/*.{js,cjs,ts,mjs,jsx,tsx,json}\"",
23
- "test-all": "npm run test -ws -iwr --if-present",
24
- "lint-all": "npm run lint -ws -iwr --if-present"
23
+ "test-all": "npm run test --workspaces --include-workspace-root --if-present",
24
+ "lint-all": "npm run lint --workspaces --include-workspace-root --if-present"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",