@npmcli/template-oss 2.4.2 → 2.4.3

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.
@@ -89,6 +89,8 @@ const copyContent = async (path, rootPath, config) => {
89
89
  // copy and edit workspace repo file (ci github action)
90
90
  const workspacePkg = (await PackageJson.load(path)).content
91
91
  const workspaceName = workspacePkg.name
92
+ let workspaceFile = `ci-${workspaceName.replace(/\//g, '-')}.yml`
93
+ workspaceFile = workspaceFile.replace(/@/g, '')
92
94
  const workflowPath = join(rootPath, '.github', 'workflows')
93
95
  await fs.mkdir(workflowPath, {
94
96
  owner: 'inherit',
@@ -105,7 +107,7 @@ const copyContent = async (path, rootPath, config) => {
105
107
  workflowData = workflowData.replace(/%%pkgpath%%/g, relPath)
106
108
  workflowData = workflowData.replace(/%%pkgname%%/g, workspaceName)
107
109
 
108
- await fs.writeFile(join(workflowPath, `ci-${workspaceName}.yml`), workflowData)
110
+ await fs.writeFile(join(workflowPath, workspaceFile), workflowData)
109
111
  }
110
112
  }
111
113
  copyContent.moduleFiles = moduleFiles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/template-oss",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "templated files used in npm CLI team oss projects",
5
5
  "main": "lib/index.js",
6
6
  "bin": {