@0xflydev/labz 1.0.17 → 1.0.18

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 (19) hide show
  1. package/dist/index.js +14 -0
  2. package/package.json +1 -1
  3. package/base-template/deploy/.gitkeep +0 -0
  4. /package/templates/buildable/projects/age-gate/{scripts → deploy}/deploy.ts.tmpl +0 -0
  5. /package/templates/buildable/projects/auction/{scripts → deploy}/deploy.ts.tmpl +0 -0
  6. /package/templates/buildable/projects/blind-match/{scripts → deploy}/deploy.ts.tmpl +0 -0
  7. /package/templates/buildable/projects/counter/{scripts → deploy}/deploy.ts.tmpl +0 -0
  8. /package/templates/buildable/projects/dark-pool/{scripts → deploy}/deploy.ts.tmpl +0 -0
  9. /package/templates/buildable/projects/dice-game/{scripts → deploy}/deploy.ts.tmpl +0 -0
  10. /package/templates/buildable/projects/escrow/{scripts → deploy}/deploy.ts.tmpl +0 -0
  11. /package/templates/buildable/projects/lottery/{scripts → deploy}/deploy.ts.tmpl +0 -0
  12. /package/templates/buildable/projects/mystery-box/{scripts → deploy}/deploy.ts.tmpl +0 -0
  13. /package/templates/buildable/projects/poker/{scripts → deploy}/deploy.ts.tmpl +0 -0
  14. /package/templates/buildable/projects/prediction-market/{scripts → deploy}/deploy.ts.tmpl +0 -0
  15. /package/templates/buildable/projects/quadratic-vote/{scripts → deploy}/deploy.ts.tmpl +0 -0
  16. /package/templates/buildable/projects/salary-proof/{scripts → deploy}/deploy.ts.tmpl +0 -0
  17. /package/templates/buildable/projects/sealed-tender/{scripts → deploy}/deploy.ts.tmpl +0 -0
  18. /package/templates/buildable/projects/token/{scripts → deploy}/deploy.ts.tmpl +0 -0
  19. /package/templates/buildable/projects/voting/{scripts → deploy}/deploy.ts.tmpl +0 -0
package/dist/index.js CHANGED
@@ -1618,6 +1618,20 @@ async function writeProject(outputDir, result, base, templatesDir) {
1618
1618
  pkg.name = path4.basename(outputDir);
1619
1619
  fs4.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2), "utf-8");
1620
1620
  }
1621
+ cleanupGitkeep(outputDir);
1622
+ }
1623
+ function cleanupGitkeep(dir) {
1624
+ const entries = fs4.readdirSync(dir, { withFileTypes: true });
1625
+ for (const entry of entries) {
1626
+ const fullPath = path4.join(dir, entry.name);
1627
+ if (entry.isDirectory()) {
1628
+ cleanupGitkeep(fullPath);
1629
+ const files = fs4.readdirSync(fullPath);
1630
+ if (files.includes(".gitkeep") && files.length > 1) {
1631
+ fs4.unlinkSync(path4.join(fullPath, ".gitkeep"));
1632
+ }
1633
+ }
1634
+ }
1621
1635
  }
1622
1636
  function copyDirSync(src, dest) {
1623
1637
  if (!fs4.existsSync(dest)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xflydev/labz",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Lab-Z CLI - Generate composable FHEVM smart contracts",
5
5
  "author": "0xflydev",
6
6
  "license": "MIT",
File without changes