create-fhevm-playground-pro 1.0.8 → 1.0.10

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.
@@ -11,6 +11,7 @@
11
11
  "hardhat": "^2.19.4",
12
12
  "@nomicfoundation/hardhat-toolbox": "^4.0.0",
13
13
  "@nomicfoundation/hardhat-chai-matchers": "^2.0.0",
14
+ "@nomicfoundation/hardhat-ethers": "^3.0.0",
14
15
  "chai": "^4.3.10",
15
16
  "ethers": "^6.10.0",
16
17
  "typescript": "^5.5.0",
@@ -77,6 +77,14 @@ async function createExample(options) {
77
77
  else {
78
78
  console.log(chalk_1.default.yellow(`Example ${exampleDirName} not found; using base template contracts/tests`));
79
79
  }
80
+ // Ensure only hardhat.config.cjs exists (remove .ts, .js variants for ESM compatibility)
81
+ const hardhatConfigFiles = ['hardhat.config.ts', 'hardhat.config.js'];
82
+ for (const configFile of hardhatConfigFiles) {
83
+ const configPath = path_1.default.join(projectDir, configFile);
84
+ if (fs_extra_1.default.existsSync(configPath)) {
85
+ fs_extra_1.default.removeSync(configPath);
86
+ }
87
+ }
80
88
  // Update package.json name and description
81
89
  const pkgPath = path_1.default.join(projectDir, 'package.json');
82
90
  if (fs_extra_1.default.existsSync(pkgPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fhevm-playground-pro",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Premium scaffolding CLI for fhEVM Playground Pro – Zama bounty",
5
5
  "main": "dist/create-example.js",
6
6
  "bin": {