@npmcli/template-oss
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -7,2 +7,4 @@ const { join } = require('path') | ||
const globify = pattern => pattern.split('\\').join('/') | ||
// target paths need to be joinsed with dir and templated | ||
@@ -37,3 +39,3 @@ const fullTarget = (dir, file, options) => join(dir, template(file, options)) | ||
for (const target of files.map((t) => fullTarget(dir, t, options))) { | ||
for (const file of await glob(target, { cwd: dir })) { | ||
for (const file of await glob(globify(target), { cwd: dir })) { | ||
res.push(await fn(file)) | ||
@@ -40,0 +42,0 @@ } |
{ | ||
"name": "@npmcli/template-oss", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "templated files used in npm CLI team oss projects", | ||
@@ -39,2 +39,3 @@ "main": "lib/content/index.js", | ||
"diff": "^5.0.0", | ||
"glob": "^8.0.1", | ||
"handlebars": "^4.7.7", | ||
@@ -41,0 +42,0 @@ "hosted-git-info": "^5.0.0", |
Sorry, the diff of this file is not supported yet
57592
1238
15
+ Addedglob@^8.0.1