create-fhevm-playground-pro 1.0.32 → 1.0.34

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/dist/scaffolder.js +15 -0
  2. package/package.json +1 -1
@@ -13,7 +13,9 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
13
13
  const child_process_1 = require("child_process");
14
14
  const chalk_1 = __importDefault(require("chalk"));
15
15
  // Category ID to example directory name mapping
16
+ // Supports both short names (e.g., 'blind-dex') and full category keys (e.g., 'blind-dex-pro')
16
17
  const CATEGORY_TO_EXAMPLE_DIR = {
18
+ // Full official category names
17
19
  'basic-counter': 'basic-counter',
18
20
  'arithmetic': 'arithmetic',
19
21
  'comparisons': 'comparisons',
@@ -33,6 +35,19 @@ const CATEGORY_TO_EXAMPLE_DIR = {
33
35
  'yield-farming-pro': 'private-yield',
34
36
  'mev-arbitrage-pro': 'mev-arbitrage',
35
37
  'confidential-stablecoin-pro': 'confidential-stablecoin',
38
+ // Aliases: short names matching example directory prefixes for better UX
39
+ 'anti-patterns': 'anti-patterns',
40
+ 'blind-dex': 'blind-dex',
41
+ 'confidential-stablecoin': 'confidential-stablecoin',
42
+ 'dao-voting': 'dao-voting',
43
+ 'encrypted-poker': 'encrypted-poker',
44
+ 'erc7984': 'erc7984',
45
+ 'input-proofs': 'input-proofs',
46
+ 'mev-arbitrage': 'mev-arbitrage',
47
+ 'private-erc20': 'private-erc20',
48
+ 'private-lending': 'private-lending',
49
+ 'private-yield': 'private-yield',
50
+ 'yield-farming': 'private-yield', // alias for yield-farming-pro
36
51
  };
37
52
  async function createExample(options) {
38
53
  const projectDir = path_1.default.resolve(process.cwd(), options.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fhevm-playground-pro",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Premium scaffolding CLI for fhEVM Playground Pro – Zama bounty",
5
5
  "main": "dist/create-example.js",
6
6
  "bin": {