pkg-pr-new 0.0.12 → 0.0.14
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/dist/index.js +9 -11
- package/index.ts +10 -8
- package/package.json +1 -1
- package/template.ts +1 -1
package/index.ts
CHANGED
|
@@ -60,7 +60,11 @@ const main = defineCommand({
|
|
|
60
60
|
},
|
|
61
61
|
run: async ({ args }) => {
|
|
62
62
|
const paths = (args._.length ? args._ : ["."])
|
|
63
|
-
.flatMap((p) =>
|
|
63
|
+
.flatMap((p) =>
|
|
64
|
+
fg.isDynamicPattern(p)
|
|
65
|
+
? fg.sync(p, { onlyDirectories: true })
|
|
66
|
+
: p,
|
|
67
|
+
)
|
|
64
68
|
.map((p) => path.resolve(p.trim()));
|
|
65
69
|
|
|
66
70
|
const templates = (
|
|
@@ -68,7 +72,11 @@ const main = defineCommand({
|
|
|
68
72
|
? [args.template]
|
|
69
73
|
: ([...(args.template || [])] as string[])
|
|
70
74
|
)
|
|
71
|
-
.flatMap((p) =>
|
|
75
|
+
.flatMap((p) =>
|
|
76
|
+
fg.isDynamicPattern(p)
|
|
77
|
+
? fg.sync(p, { onlyDirectories: true })
|
|
78
|
+
: p,
|
|
79
|
+
)
|
|
72
80
|
.map((p) => path.resolve(p.trim()));
|
|
73
81
|
|
|
74
82
|
const formData = new FormData();
|
|
@@ -163,12 +171,6 @@ const main = defineCommand({
|
|
|
163
171
|
if (!pJson.name) {
|
|
164
172
|
throw new Error(`"name" field in ${pJsonPath} should be defined`);
|
|
165
173
|
}
|
|
166
|
-
if (pJson.private) {
|
|
167
|
-
console.log(
|
|
168
|
-
`skipping ${templateDir} because the package is private`,
|
|
169
|
-
);
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
174
|
|
|
173
175
|
console.log("preparing template:", pJson.name);
|
|
174
176
|
|
package/package.json
CHANGED
package/template.ts
CHANGED