create-express-dex 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/bin/index.js +6 -1
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -62,7 +62,12 @@ async function init() {
62
62
  console.log(chalk.blue(`\nScaffolding project in ${targetDir}...`));
63
63
  // Copy template
64
64
  try {
65
- await fs.copy(templateDir, targetDir);
65
+ await fs.copy(templateDir, targetDir, {
66
+ filter: (src) => {
67
+ // Exclude .gitkeep files
68
+ return !src.endsWith('.gitkeep');
69
+ }
70
+ });
66
71
  if (await fs.pathExists(path.join(targetDir, "_gitignore"))) {
67
72
  await fs.move(path.join(targetDir, "_gitignore"), path.join(targetDir, ".gitignore"));
68
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-express-dex",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A fast CLI to scaffold Express.js backend projects with TypeScript or JavaScript",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",