@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.
- package/dist/index.js +14 -0
- package/package.json +1 -1
- package/base-template/deploy/.gitkeep +0 -0
- /package/templates/buildable/projects/age-gate/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/auction/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/blind-match/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/counter/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/dark-pool/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/dice-game/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/escrow/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/lottery/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/mystery-box/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/poker/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/prediction-market/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/quadratic-vote/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/salary-proof/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/sealed-tender/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /package/templates/buildable/projects/token/{scripts → deploy}/deploy.ts.tmpl +0 -0
- /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
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|