Skip to content

Commit a337282

Browse files
committed
fix: fix publishing the templates to npm
1 parent b7c7009 commit a337282

File tree

9 files changed

+1
-4
lines changed

9 files changed

+1
-4
lines changed

β€Žsrc/create.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ export default async function create(argv: yargs.Arguments<any>) {
148148
const files = await fs.readdir(source);
149149

150150
for (const f of files) {
151-
const target = path.join(
152-
dest,
153-
ejs.render(f.startsWith('__') ? f : f.replace(/^_/, '.'), options)
154-
);
151+
const target = path.join(dest, ejs.render(f.replace(/^$/, ''), options));
155152

156153
const file = path.join(source, f);
157154
const stats = await fs.stat(file);
File renamed without changes.

0 commit comments

Comments
Β (0)